Re: [PATCH v3 03/16] index-helper: new daemon for caching index and related stuff
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 15, 2016, 01:31 UTC
- Message-ID
- <xmqqfuunejxy.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACsJy8C9wA=Yig6n4evqYnpOTqOWKbH4kXH5OaYTRvS_5a+a8A@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> We don't hold this memory forever though. If the daemon is idle for a > while, it exits, releasing memory back to system. And not using > mlock() already gives the OS more freedom in memory usage.
Yup, that is why I suspected you wanted to use something other than mlock().