epi2me-labs / kraken2-server

Kraken2 Server
Other
21 stars 3 forks source link

Advantages over pre-loading db into RAM? #6

Closed ChillarAnand closed 2 months ago

ChillarAnand commented 2 months ago

kraken2 provides --memory-mapping option. We can use /dev/shm/ (shared memory) to preload db and run classification continuously. I wrote a blog post about the same here https://avilpage.com/2024/07/mastering-kraken2-performance-optimisation.html

Any advantages of using kraken2-server over preload?

cjw85 commented 2 months ago

This project's primary aim was to create the server component to enable remote clients to perform classifications. It does have the side effect that it can be used in a manner similar to memory mapping files into shm; which is likely preferable if working on a single computer (there are overheads to the server-client setup).

ChillarAnand commented 2 months ago

I see. Thanks for the clarification, @cjw85