* Re: "Invalidate" not functional on Windows?
[not found] <CAHaS=QzLW_CcDATeZnWXPEiVEGRJr9UHdohyJo53M4pp+hh27g@mail.gmail.com>
@ 2012-08-14 4:57 ` Greg Sullivan
2012-08-14 13:06 ` Jens Axboe
0 siblings, 1 reply; 5+ messages in thread
From: Greg Sullivan @ 2012-08-14 4:57 UTC (permalink / raw)
To: fio
I need to perform reads without using any caching. I have the line
"invalidate=1" in my job file, however it is still using the cache. I
am running Windows 7 32-bit. Is the "invalidate" command supposed to
be functional on Windows? If so, what am I doing wrong?
That aside, what a great utility this is - thankyou!!
Regards.,
Greg.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "Invalidate" not functional on Windows?
2012-08-14 4:57 ` "Invalidate" not functional on Windows? Greg Sullivan
@ 2012-08-14 13:06 ` Jens Axboe
2012-08-14 17:33 ` Martin Steigerwald
0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2012-08-14 13:06 UTC (permalink / raw)
To: Greg Sullivan; +Cc: fio, Bruce Cran
On 08/14/2012 06:57 AM, Greg Sullivan wrote:
> I need to perform reads without using any caching. I have the line
> "invalidate=1" in my job file, however it is still using the cache. I
> am running Windows 7 32-bit. Is the "invalidate" command supposed to
> be functional on Windows? If so, what am I doing wrong?
>
> That aside, what a great utility this is - thankyou!!
As far as what I remember from talking/mailing with Bruce (CC'ed),
there's no way to invalidate the cache in Windows.
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "Invalidate" not functional on Windows?
2012-08-14 13:06 ` Jens Axboe
@ 2012-08-14 17:33 ` Martin Steigerwald
2012-08-14 17:40 ` Bruce Cran
2012-08-14 17:50 ` Martin Steigerwald
0 siblings, 2 replies; 5+ messages in thread
From: Martin Steigerwald @ 2012-08-14 17:33 UTC (permalink / raw)
To: Jens Axboe; +Cc: Greg Sullivan, fio, Bruce Cran
Am Dienstag, 14. August 2012 schrieb Jens Axboe:
> On 08/14/2012 06:57 AM, Greg Sullivan wrote:
> > I need to perform reads without using any caching. I have the line
> > "invalidate=1" in my job file, however it is still using the cache. I
> > am running Windows 7 32-bit. Is the "invalidate" command supposed to
> > be functional on Windows? If so, what am I doing wrong?
> >
> > That aside, what a great utility this is - thankyou!!
>
> As far as what I remember from talking/mailing with Bruce (CC'ed),
> there's no way to invalidate the cache in Windows.
invalidate discards the buffer cache before the job group is started.
During the job execution caches will be in use anyway. Unless using
direct I/O (direct=1). Don´t know whether direct I/O will work with
"windowsaio" I/O engine or in any other way on Windows.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "Invalidate" not functional on Windows?
2012-08-14 17:33 ` Martin Steigerwald
@ 2012-08-14 17:40 ` Bruce Cran
2012-08-14 17:50 ` Martin Steigerwald
1 sibling, 0 replies; 5+ messages in thread
From: Bruce Cran @ 2012-08-14 17:40 UTC (permalink / raw)
To: Martin Steigerwald; +Cc: Jens Axboe, Greg Sullivan, fio@vger.kernel.org
On 14/08/2012 18:33, Martin Steigerwald wrote:
> invalidate discards the buffer cache before the job group is started.
> During the job execution caches will be in use anyway. Unless using
> direct I/O (direct=1). Don´t know whether direct I/O will work with
> "windowsaio" I/O engine or in any other way on Windows.
On Windows (windowsaio) use sync=1 to disable buffering of writes. For
reads, use direct=1.
--
Bruce Cran
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "Invalidate" not functional on Windows?
2012-08-14 17:33 ` Martin Steigerwald
2012-08-14 17:40 ` Bruce Cran
@ 2012-08-14 17:50 ` Martin Steigerwald
1 sibling, 0 replies; 5+ messages in thread
From: Martin Steigerwald @ 2012-08-14 17:50 UTC (permalink / raw)
To: Jens Axboe; +Cc: Greg Sullivan, fio, Bruce Cran
Am Dienstag, 14. August 2012 schrieb Martin Steigerwald:
> Am Dienstag, 14. August 2012 schrieb Jens Axboe:
> > On 08/14/2012 06:57 AM, Greg Sullivan wrote:
> > > I need to perform reads without using any caching. I have the line
> > > "invalidate=1" in my job file, however it is still using the cache. I
> > > am running Windows 7 32-bit. Is the "invalidate" command supposed to
> > > be functional on Windows? If so, what am I doing wrong?
> > >
> > > That aside, what a great utility this is - thankyou!!
> >
> > As far as what I remember from talking/mailing with Bruce (CC'ed),
> > there's no way to invalidate the cache in Windows.
>
> invalidate discards the buffer cache before the job group is started.
> During the job execution caches will be in use anyway. Unless using
> direct I/O (direct=1). Don´t know whether direct I/O will work with
> "windowsaio" I/O engine or in any other way on Windows.
Hey, its even documented. Except from HOWTO:
direct=bool If value is true, use non-buffered io. This is usually
O_DIRECT. Note that ZFS on Solaris doesn't support direct io.
On Windows the synchronous ioengines don't support direct io.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-08-14 17:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAHaS=QzLW_CcDATeZnWXPEiVEGRJr9UHdohyJo53M4pp+hh27g@mail.gmail.com>
2012-08-14 4:57 ` "Invalidate" not functional on Windows? Greg Sullivan
2012-08-14 13:06 ` Jens Axboe
2012-08-14 17:33 ` Martin Steigerwald
2012-08-14 17:40 ` Bruce Cran
2012-08-14 17:50 ` Martin Steigerwald
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox