Zygo / bees

Best-Effort Extent-Same, a btrfs dedupe agent
GNU General Public License v3.0
654 stars 55 forks source link

Call munlock() on out of data and mlock() on crawl start #95

Open nefelim4ag opened 5 years ago

nefelim4ag commented 5 years ago

I have some servers with always running bees, and servers have some time when write not happens. So, call munlock() on crawl out of data, allow bees to free memory for other system, while bees are idle. As mlock() have some performance benefits and we just don't want disable it, so just do mlock() again on crawl start.

36