Re: New module proposal: tracker
- From: Alexander Larsson <alexl redhat com>
- To: Martyn Russell <martyn lanedo com>
- Cc: desktop-devel-list gnome org
- Subject: Re: New module proposal: tracker
- Date: Sat, 07 Nov 2009 18:47:50 +0100
On Sat, 2009-11-07 at 08:47 +0000, Martyn Russell wrote:
> On 06/11/09 19:22, Alexander Larsson 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...
>
> Yea. We don't index all 100Mb of the file. We only ever index n words of
> any file. This is configurable in $HOME/.config/tracker/tracker-fts.cfg.
> It is set to 10000 for now.
It was just an example. It might as well be 1000 files of 100kB, it
amounts to the same thing wrt cache use.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]