Re: [PATCH] fs: add fincore(2) (mincore(2) for file descriptors)

From: Andres Freund
Date: Thu Jan 28 2010 - 18:54:50 EST


On Thursday 28 January 2010 09:23:13 Andrew Morton wrote:
> On Wed, 27 Jan 2010 23:42:35 -0800 (PST) Steve VanDeBogart <vandebo-
lkml@xxxxxxxxxxx> wrote:
> > > Is it likely that these changes to SQLite and Gimp would be merged into
> > > the upstream applications?
> >
> > Changes to the GIMP fit nicely into the code structure, so it's feasible
> > to push this kind of optimization upstream. The changes in SQLite are
> > a bit more focused on the benchmark, but a more general approach is not
> > conceptually difficult. SQLite may not want the added complexity, but
> > other database may be interested in the performance improvement.
> >
> > Of course, these kernel changes are needed before any application can
> > optimize its IO as we did with libprefetch.
> That didn't really answer my question.
> If there's someone signed up and motivated to do the hard work of
> getting these changes integrated into the upstream applications then
> that makes us more interested. If, however it was some weekend
> proof-of-concept hack which shortly dies an instadeath then... meh,
> not so much.
There is somebody working on a POC contrib module for postgres to deliver
better cost estimates using mincore - as postgres doesnt use mmap itself
something like fincore would be rather nice there.

(While currently it would be contrib module the plan is to be able too hook it
into it without modifications to core pg code)

Andres
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/