* POSIX_FADV_DONTNEED
@ 2008-08-01 15:05 Trevor Woollacott [ MTN - Innovation Centre ]
2008-08-14 9:17 ` POSIX_FADV_DONTNEED Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woollacott [ MTN - Innovation Centre ] @ 2008-08-01 15:05 UTC (permalink / raw)
To: linux-kernel
Hi all
Does anyone know if posix_fadvise() with POSIX_FADV_DONTNEED is
blocking/unblocking?
Thanks,
Trevor
NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/default.aspx?pid=34411
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: POSIX_FADV_DONTNEED
2008-08-01 15:05 POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
@ 2008-08-14 9:17 ` Andrew Morton
2008-08-14 10:26 ` POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2008-08-14 9:17 UTC (permalink / raw)
To: Trevor Woollacott [ MTN - Innovation Centre ]; +Cc: linux-kernel
On Fri, 1 Aug 2008 17:05:39 +0200 "Trevor Woollacott [ MTN - Innovation Centre ]" <Woolla_T@mtn.co.za> wrote:
>
> Hi all
>
> Does anyone know if posix_fadvise() with POSIX_FADV_DONTNEED is
> blocking/unblocking?
It tries to be nonblocking and will mostly succeed in that. It might
occasionally block on a metadata read or journal congestion or
something, so it isn't guaranteed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: POSIX_FADV_DONTNEED
2008-08-14 9:17 ` POSIX_FADV_DONTNEED Andrew Morton
@ 2008-08-14 10:26 ` Trevor Woollacott [ MTN - Innovation Centre ]
2008-08-14 16:15 ` POSIX_FADV_DONTNEED Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woollacott [ MTN - Innovation Centre ] @ 2008-08-14 10:26 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Thanks for the response Andrew. Is there a way to check when the cached
data has been freed after fadvise has been called?
-----Original Message-----
From: Andrew Morton [mailto:akpm@linux-foundation.org]
Sent: Thursday, 14 August 2008 11:17 AM
To: Trevor Woollacott [ MTN - Innovation Centre ]
Cc: linux-kernel@vger.kernel.org
Subject: Re: POSIX_FADV_DONTNEED
On Fri, 1 Aug 2008 17:05:39 +0200 "Trevor Woollacott [ MTN - Innovation
Centre ]" <Woolla_T@mtn.co.za> wrote:
>
> Hi all
>
> Does anyone know if posix_fadvise() with POSIX_FADV_DONTNEED is
> blocking/unblocking?
It tries to be nonblocking and will mostly succeed in that. It might
occasionally block on a metadata read or journal congestion or
something, so it isn't guaranteed.
NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/default.aspx?pid=34411
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: POSIX_FADV_DONTNEED
2008-08-14 10:26 ` POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
@ 2008-08-14 16:15 ` Andrew Morton
2008-08-15 8:23 ` POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2008-08-14 16:15 UTC (permalink / raw)
To: Trevor Woollacott [ MTN - Innovation Centre ]; +Cc: linux-kernel
On Thu, 14 Aug 2008 12:26:28 +0200 "Trevor Woollacott [ MTN - Innovation Centre ]" <Woolla_T@mtn.co.za> wrote:
>
> > On Fri, 1 Aug 2008 17:05:39 +0200 "Trevor Woollacott [ MTN - Innovation
> > Centre ]" <Woolla_T@mtn.co.za> wrote:
(please don't top-post).
> > >
> > > Hi all
> > >
> > > Does anyone know if posix_fadvise() with POSIX_FADV_DONTNEED is
> > > blocking/unblocking?
> >
> > It tries to be nonblocking and will mostly succeed in that. It might
> > occasionally block on a metadata read or journal congestion or
> > something, so it isn't guaranteed.
> >
>
> Thanks for the response Andrew. Is there a way to check when the cached
> data has been freed after fadvise has been called?
>
I assume you meant "whether", not "when".
Not directly. I believe that the best way of obtaining that
information remains mmap()ing the file then querying the presence of
pages via mincore().
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: POSIX_FADV_DONTNEED
2008-08-14 16:15 ` POSIX_FADV_DONTNEED Andrew Morton
@ 2008-08-15 8:23 ` Trevor Woollacott [ MTN - Innovation Centre ]
0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woollacott [ MTN - Innovation Centre ] @ 2008-08-15 8:23 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
> On Thu, 14 Aug 2008 12:26:28 +0200 "Trevor Woollacott [ MTN -
Innovation Centre ]" <Woolla_T@mtn.co.za> wrote:
>
> >
> > > On Fri, 1 Aug 2008 17:05:39 +0200 "Trevor Woollacott [ MTN -
> > > Innovation Centre ]" <Woolla_T@mtn.co.za> wrote:
>
> (please don't top-post).
>
> > > >
> > > > Hi all
> > > >
> > > > Does anyone know if posix_fadvise() with POSIX_FADV_DONTNEED is
> > > > blocking/unblocking?
> > >
> > > It tries to be nonblocking and will mostly succeed in that. It
> > > might occasionally block on a metadata read or journal congestion
> > > or something, so it isn't guaranteed.
> > >
> >
> > Thanks for the response Andrew. Is there a way to check when the
> > cached data has been freed after fadvise has been called?
> >
>
> I assume you meant "whether", not "when".
>
> Not directly. I believe that the best way of obtaining that
> information remains mmap()ing the file then querying the presence of
> pages via mincore().
Thanks for the advice
NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/default.aspx?pid=34411
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-15 8:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 15:05 POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
2008-08-14 9:17 ` POSIX_FADV_DONTNEED Andrew Morton
2008-08-14 10:26 ` POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
2008-08-14 16:15 ` POSIX_FADV_DONTNEED Andrew Morton
2008-08-15 8:23 ` POSIX_FADV_DONTNEED Trevor Woollacott [ MTN - Innovation Centre ]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox