From: Wu Fengguang <fengguang.wu@intel.com>
To: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>
Subject: Re: [Bug #13726] fio sync read 4k block size 35% regression
Date: Mon, 13 Jul 2009 15:27:01 +0800 [thread overview]
Message-ID: <20090713072701.GA11630@localhost> (raw)
In-Reply-To: <1247453490.2560.574.camel@ymzhang>
On Mon, Jul 13, 2009 at 10:51:30AM +0800, Zhang, Yanmin wrote:
> On Fri, 2009-07-10 at 16:17 +0800, Wu Fengguang wrote:
> > On Fri, Jul 10, 2009 at 03:41:54PM +0800, Zhang, Yanmin wrote:
> > > On Fri, 2009-07-10 at 14:37 +0800, Wu Fengguang wrote:
> > > > On Tue, Jul 07, 2009 at 02:06:42PM +0800, Zhang, Yanmin wrote:
> > > > > On Tue, 2009-07-07 at 02:01 +0200, Rafael J. Wysocki wrote:
> > > > > > This message has been generated automatically as a part of a report
> > > > > > of recent regressions.
> > > > > >
> > > > > > The following bug entry is on the current list of known regressions
> > > > > > from 2.6.30. Please verify if it still should be listed and let me know
> > > > > > (either way).
> > > > > >
> > > > > >
> > > > > > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=13726
> > > > > > Subject : fio sync read 4k block size 35% regression
> > > > > > Submitter : Zhang, Yanmin <yanmin_zhang@linux.intel.com>
> > > > > > Date : 2009-07-01 11:25 (6 days old)
> > > > > > First-Bad-Commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=51daa88ebd8e0d437289f589af29d4b39379ea76
> > > > > > References : http://lkml.org/lkml/2009/6/30/679
> > > > > > Handled-By : Wu Fengguang <fengguang.wu@intel.com>
> > > > > Fengguang,
> > > > >
> > > > > I'm still working on it now. The new testing against 2.6.31-rc2 is ongoing.
> > > > > fio sync/mmap read has new behavior. I did collect some data. But suddenly
> > > > > with new created data, the fio_sync_read_4k regression disappeared, while
> > > >
> > > > Do you mean the fio_sync_read_4k regression disappeared because we are
> > > > collecting data with lots of printks?
> > > No. I recreated the data and the regression disappeared.
> >
> > OK. It's because you recreated the files, instead of upgrading to -rc2?
> Yes.
>
> >
> > > >
> > > > > fio_mmap_read is still there. Originally, the testing and bisect were stable.
> > > > > Let me check what happens firstly.
> > > >
> > > > Thanks! What's your fio_mmap_read job file and the readahead traces?
> > > I dumped trace data of fio and found the sync read isn't really sequential. I
> > > create many processes and every process could read a group of files. The trace
> > > shows fio reads a record of a file, then switch to another file to read. My
> > > original assumption is a process reads the complete file sequentially and then
> > > read the 2nd file. Now I upgrade fio the latest version and add parameter
> > > file_service_type=random:4000000 to rerun all testing.
> >
> > However you organize the workload, it is a regression. If you mean
> > "this workload is expected to create regressions", then let's improve
> > the algorithm to cover that workload?
> Thanks Fengguang. You work carefully and be ready to resolve any regression.
>
> When creating the workloads, I try to simulate _RealUsageModels_. For example,
> fio_mmap_sync_read and fio_sync_read are to simulate ftp/web server and media
> player to download big files. Such workloads mostly read files sequentially, not
> interspersally among many files. I also have other workloads, such like
Yes, file servers mostly read files sequentially. But they do not
necessarily spawn one thread/process for each client (eg. lighttpd).
So you are testing some real workloads :)
> fio_mmap_rand_read/write simulating small/medium databases, which need IO
> interspersally among a coulpe of files.
Hmm, it seems that both regressions have something to do with
"one process accessing several files".
> As for this report, my original testing reads files interspersally. It's hard to
> find the usage models. In other hand, sometimes a method to improve one workload
> might hurt other workloads. So let's focus on good workloads.
>
> With the latest version of fio and new parameters, I found some other regressions.
> I will check them and report if necessary.
>
> >
> > In your previous workload, what's the exact read pattern for any
> > single file over time?
> Sequential read, but read a block (4k64k/128k), then switch to next file to read
> another block. As for single file, read sequentially.
> If there are 3 files:
> 1) read 1st block of f1; then read 1st block of f2; then f3;
> 2) read 2nd block of f1; then read 2nd block of f2; then f3;
> 3) ...
In this case,
- one process process may issue IO for several files
aka. random seeking
- several processes may issue IO for the same file
aka. cooperative processes
The above IO patterns may well confuse the underlying CFQ io scheduler.
Would you please try rerun the test with
for param in /sys/block/sd?/queue/iosched/slice_idle
do
echo 0 > $param
done
> Such read scenario isn't good. I created it incorrectly because I misunderstood
> some parameters of fio.
>
> Pls. close the report.
No, you created a very good test scheme! Let's fix this regression :)
Thanks,
Fengguang
next prev parent reply other threads:[~2009-07-13 7:27 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 23:42 2.6.31-rc2: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-07-06 23:42 ` [Bug #13522] BUG: scheduling while atomic Rafael J. Wysocki
2009-07-07 16:27 ` Sergey Senozhatsky
2009-07-07 20:35 ` Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13643] Touchpad lost synchronization after resume from suspend to RAM Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13645] NULL pointer dereference at (null) (level2_spare_pgt) Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13656] 2.6.31-rc1 crashes randomly on my Machine Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13659] iwlagn (4965): no wireless due to RFKILL problem Rafael J. Wysocki
2009-07-07 19:28 ` Frans Pop
[not found] ` <200907072128.14131.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-07 20:36 ` Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13652] scheduling while atomic: pptpgw Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13650] Problem with alloc_arch_preferred_bootmem() on powerpc Rafael J. Wysocki
2009-07-08 23:12 ` Sean MacLennan
2009-07-06 23:49 ` [Bug #13657] Linux-2.6.31-rc1 Fails To Recognize Some USB Disks Rafael J. Wysocki
2009-07-15 7:42 ` Tarkan Erimer
2009-07-06 23:49 ` [Bug #13666] WARNING: at mm/page_alloc.c:1743 __alloc_pages_nodemask Rafael J. Wysocki
2009-07-07 4:23 ` David Rientjes
[not found] ` <alpine.DEB.2.00.0907062101330.31794-X6Q0R45D7oAcqpCFd4KODRPsWskHk0ljAL8bYrjMMd8@public.gmane.org>
2009-07-07 9:39 ` Mel Gorman
2009-07-06 23:49 ` [Bug #13667] drm: display arifacts when X.Org is stopped Rafael J. Wysocki
2009-07-08 0:32 ` Frans Pop
[not found] ` <200907080232.04551.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-08 2:50 ` Dave Airlie
[not found] ` <21d7e9970907071950n27979df6j44444edd8528a598-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-08 5:00 ` Frans Pop
[not found] ` <200907080700.33120.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-08 23:42 ` Dave Airlie
[not found] ` <21d7e9970907081642l3ef6df5blde31df656cd74432-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-09 1:28 ` Frans Pop
2009-07-09 17:09 ` Jesse Barnes
[not found] ` <200907090328.53643.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-25 16:33 ` Frans Pop
[not found] ` <200907251833.42598.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-30 10:40 ` Dave Airlie
[not found] ` <21d7e9970907300340t79e063e1n18cdba11538c2fdc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-30 11:40 ` Frans Pop
[not found] ` <200907301341.01693.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-08-01 2:28 ` Pallipadi, Venkatesh
[not found] ` <7E82351C108FA840AB1866AC776AEC466D66A552-osO9UTpF0URqS6EAlXoojrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2009-08-01 7:02 ` Frans Pop
2009-07-06 23:49 ` [Bug #13661] warning in smp_call_function_single while S2R Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13665] commit 69c854817566 causes OOMs Rafael J. Wysocki
2009-07-07 4:04 ` Minchan Kim
2009-07-07 4:25 ` Gene Heskett
2009-07-06 23:49 ` [Bug #13700] usb error flood in dmesg, makes kde use plenty of cpu - bisected Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13690] nodes_clear cause hugepage unusable on non-NUMA machine Rafael J. Wysocki
2009-07-07 0:06 ` Yinghai Lu
[not found] ` <4A529180.7090104-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2009-07-07 11:14 ` Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13673] HIGHMEM64G causes hang in PCI init on 32-bit x86 Rafael J. Wysocki
2009-07-07 9:18 ` Mikael Pettersson
[not found] ` <19027.4815.420637.375450-tgku4HJDRZih8lFjZTKsyTAV6s6igYVG@public.gmane.org>
2009-07-07 11:14 ` Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13728] 2.6.31-rc2 soft lockups, RPC-related Rafael J. Wysocki
2009-07-11 0:29 ` Paul Collins
2009-07-06 23:49 ` [Bug #13726] fio sync read 4k block size 35% regression Rafael J. Wysocki
2009-07-07 6:06 ` Zhang, Yanmin
2009-07-07 10:09 ` Wu Fengguang
2009-07-10 6:37 ` Wu Fengguang
2009-07-10 7:41 ` Zhang, Yanmin
2009-07-10 8:17 ` Wu Fengguang
2009-07-13 2:51 ` Zhang, Yanmin
2009-07-13 7:27 ` Wu Fengguang [this message]
2009-07-06 23:49 ` [Bug #13727] Cannot Recognize Empty DVD Media Rafael J. Wysocki
2009-07-15 7:19 ` Tarkan Erimer
[not found] ` <4A5D82EA.1070002-AMZSHK9Z0TXlajqSnzHT9w@public.gmane.org>
2009-07-15 17:53 ` Maciej Rutecki
2009-07-15 17:56 ` Maciej Rutecki
2009-07-06 23:49 ` [Bug #13716] The AIC-7892P controller does not work any more Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13731] Inconsistent {IN-RECLAIM_FS-W} -> {RECLAIM_FS-ON-W} usage Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13732] tty layer instabilities Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13733] 2.6.31-rc2: irq 16: nobody cared Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13729] kernel BUG at fs/notify/notification.c:93! Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13730] hitting lockdep limits Rafael J. Wysocki
2009-07-06 23:49 ` [Bug #13734] regression in 2.6.31-rcX since commit a1091aa Rafael J. Wysocki
2009-07-07 1:06 ` Larry Finger
[not found] ` <4A529F97.9080206-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2009-07-07 11:19 ` Rafael J. Wysocki
2009-07-07 1:25 ` 2.6.31-rc2: Reported regressions from 2.6.30 Andres Freund
2009-07-07 11:36 ` Rafael J. Wysocki
2009-07-10 1:46 ` John Dykstra
2009-07-10 2:10 ` Andres Freund
2009-07-07 19:25 ` Frans Pop
[not found] ` <200907072125.47762.elendil-EIBgga6/0yRmR6Xm/wNWPw@public.gmane.org>
2009-07-07 20:41 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-07-26 20:23 2.6.31-rc4: " Rafael J. Wysocki
2009-07-26 20:28 ` [Bug #13726] fio sync read 4k block size 35% regression Rafael J. Wysocki
2009-08-02 18:49 2.6.31-rc5: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-02 18:58 ` [Bug #13726] fio sync read 4k block size 35% regression Rafael J. Wysocki
2009-08-03 20:25 ` Christian Kujau
2009-08-03 20:58 ` Rafael J. Wysocki
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=20090713072701.GA11630@localhost \
--to=fengguang.wu@intel.com \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=yanmin_zhang@linux.intel.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;
as well as URLs for NNTP newsgroup(s).