Skip to content

Huge RAM consumption in DSLX interpreter #1897

Open
@rw1nkler

Description

@rw1nkler

Describe the bug

Running a DSLX interpreter can consume a huge amount of RAM for larger designs like ZSTD decoder.
Additionally, we noticed that the resources are not released between different test cases, and RAM consumption increases steadily over time.

To Reproduce

Steps to reproduce the behavior:

  1. Checkout to the zstd_compressed_block_dec branch
  2. Run any program for monitoring RAM usage (top, htop)
  3. Run bazel run -- //xls/modules/zstd:zstd_dec_dslx_test --logtostderr
  4. Observe growing RAM consumption

Expected behavior

The interpreter should not consume that much RAM on larger designs.
Ideally, for a correct design that reads data from all its channel queues, it should be possible to run the DSLX interpreter simulation infinitely with a (more or less) constant RAM consumption.

I will try to provide more debug/profiling information and append to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or is incorrectdslxDSLX (domain specific language) implementation / front-end

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions