From: Junio C Hamano Date: Fri, 15 Apr 2016 01:31:53 GMT Subject: Re: [PATCH v3 03/16] index-helper: new daemon for caching index and related stuff Message-ID: In-Reply-To: Duy Nguyen 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().