Subject: Re: [PATCH v3 03/16] index-helper: new daemon for caching index and related stuff

From: Junio C Hamano <[email-masked]>
Date: Thu, 14 Apr 2016 18:31:53 -0700

Duy Nguyen <[email-masked]> 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().