Skip to content

Can using "--mm" flag reduce memory usage? #272

@nzx9581

Description

@nzx9581

Dear Developer,

I am wondering whether using --mm could reduce memory usage. If I am not mistaken, --mm alters the way of memory mapping and allows sharing the index with other instances. In this scenario, multiple Centrifuge processes could use the same index, eliminating the need to load the index into memory for each process.

Initially, I ran five Centrifuge programs simultaneously using the command: centrifuge -q -1 $fq1 -2 $fq2 -p 5 -x nt, and the memory usage was up to ~700GB. Then I tried to use the command: centrifuge -q -1 $fq1 -2 $fq2 -x nt --mm, however, the memory usage didn't seem to decrease. So I'd like to ask how can I minimize memory usage while maintaining multiple threads or running multiple programs simultaneously. Thank you so much for your kind help!

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