Skip to content

Very high memory usage #41

@iowaguy

Description

@iowaguy

I am running greed on contract Ethereum 0x3DCb577A5d3bFAedb848F59ae5939e4d2D22d182, and the memory usage is extremely high. The machine has 188 GB RAM, and it is being killed by the OOM killer. In fact, this is just one of thousands of contracts that are seeing the same issue.

I am surprised by this as symbolic execution, in my experience, doesn't usually use so much memory, especially for small programs like solidity contracts. In our case, we are only checking the transfer() function, which is quite short.

Below is the output from the Memray python memory profiler.

memray-flamegraph-mev_tk_checker.py.21272.html

In particular, it seems that self.root_lambda_constraint.initiate(index) is doing most of the allocations.
Image

Any idea how we can decrease the memory footprint so we can complete a run of greed on these contracts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions