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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2016-04-12 at 11:05 -0700, Junio C Hamano wrote:
> > >  - access is slow (unless cached, but we can't be sure)
> > 
> > We could solve this (and the other problem) with mlock.
> 
> Probably you meant madvise(2)?
> 
> For something of a size comparable to the index file held by
> index-helper-daemon in-core, I'd expect we wouldn't page too
> badly.

No, I meant mlock -- but I guess that's not portable.  madvise with
MADV_WILLNEED will probably do the job.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]