Re: New module proposal: tracker
- From: Lennart Poettering <mztabzr 0pointer de>
- To: desktop-devel-list gnome org
- Subject: Re: New module proposal: tracker
- Date: Sun, 8 Nov 2009 16:03:57 +0100
On Fri, 06.11.09 20:22, Alexander Larsson (alexl redhat com) wrote:
> There is one problem with POSIX_FADV_DONTNEED. If you do it on a file
> the kernel will drop it from its caches. This is generally what you want
> if you just indexed a 100 meg text file that no other app cares about
> atm, since it means we won't throw out 100 megs of otherwise useful
> caches. However, if you're reading a file that some other app actually
> cares about this may be a problem, since you're now ensuring that the
> file has to be re-read the next time that app wants to use the file. Not
> sure if there is a better way though...
Shoudln't MADV_SEQUENTIAL do this? Enables aggressive read-ahead and
quick freeing according to the man page. Not sure though if the latter
is actually implemented by the VM in the way we'd want it here.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]