From: Steven Pratt <slpratt@austin.ibm.com>
To: Dan Le <wb.danle@gmail.com>
Cc: fio@vger.kernel.org
Subject: Re: How to flush the writing cache before a test with read
Date: Thu, 18 Nov 2010 16:12:10 -0600 [thread overview]
Message-ID: <4CE5A4BA.7030409@austin.ibm.com> (raw)
In-Reply-To: <AANLkTiknYzSOx8Othcvb4UA=Vvyb4WTPd8jy9t-2CV+b@mail.gmail.com>
Dan Le wrote:
> Greetings,
>
> FIO needs to write data files in order to read them. Without disabling
> the write-cache of the disk, I was wondering if there's a way to flush
> these data cache to disk right before FIO starts to read these files.
>
Fio does an fsync and an FADVISE_DONT_NEED call after file creation
phase which causes the cache to be dropped. I have never had a problem
with files still being in cache when a read test starts. The only one
to watch out for is if you repeat the test, the files may be in cache
from a previous read, as the default behavior is to not delete on
completion and to not re-create if they already exist.
Steve
> I don't want to run every second "sync && echo 3 >
> /proc/sys/vm/drop_caches" at the same time with FIO because of its
> incurred overhead. Please help.
>
> Thank you,
>
> Dan
> --
> To unsubscribe from this list: send the line "unsubscribe fio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2010-11-18 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 19:58 How to flush the writing cache before a test with read Dan Le
2010-11-18 21:13 ` Dan Le
2010-11-18 22:12 ` Steven Pratt [this message]
2010-11-18 22:32 ` Jenkins, Lee (ISS Houston)
2010-11-19 14:32 ` Dan Le
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE5A4BA.7030409@austin.ibm.com \
--to=slpratt@austin.ibm.com \
--cc=fio@vger.kernel.org \
--cc=wb.danle@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox