COMBINE-lab / pufferfish

An efficient index for the colored, compacted, de Bruijn graph
GNU General Public License v3.0
107 stars 19 forks source link

Compact_vector.hpp deserialize in read-only shared mmap. #24

Closed gmarcais closed 3 years ago

gmarcais commented 3 years ago

This largely fix a problem with the Salmon server where the fork would fail because there is not enough memory. Even with copy-on-write, the system check that there is enough memory available to duplicate the pages in case the child process modify them. By declaring the page "shared", a page is accounted for only once, instead of once per fork.