Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272469AbTHEHMF (ORCPT ); Tue, 5 Aug 2003 03:12:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272478AbTHEHMF (ORCPT ); Tue, 5 Aug 2003 03:12:05 -0400 Received: from anumail4.anu.edu.au ([150.203.2.44]:8654 "EHLO anu.edu.au") by vger.kernel.org with ESMTP id S272469AbTHEHMB (ORCPT ); Tue, 5 Aug 2003 03:12:01 -0400 Message-ID: <3F2F58B2.6020609@cyberone.com.au> Date: Tue, 05 Aug 2003 17:11:46 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20021217 MIME-Version: 1.0 To: Andrew Morton CC: Valdis.Kletnieks@vt.edu, wli@holomorphy.com, kernel@kolivas.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] O11int for interactivity References: <200307301038.49869.kernel@kolivas.org> <20030802225513.GE32488@holomorphy.com> <200308030119.47474.m.c.p@wolk-project.de> <200308042106.51676.m.c.p@wolk-project.de> <20030804195335.GK32488@holomorphy.com> <3F2F00B0.9050804@cyberone.com.au> <20030805024103.GM32488@holomorphy.com> <3F2F1F80.7060207@cyberone.com.au> <20030805031341.GN32488@holomorphy.com> <3F2F231C.3030901@cyberone.com.au> <20030805033119.GO32488@holomorphy.com> <3F2F26BA.3060904@cyberone.com.au> <200308050454.h754sBqM004950@turing-police.cc.vt.edu> <20030804225532.494bfd31.akpm@osdl.org> In-Reply-To: <20030804225532.494bfd31.akpm@osdl.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Sender-Domain: cyberone.com.au X-Spam-Score: (-2.8) X-Spam-Tests: DATE_IN_PAST_06_12,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2131 Lines: 59 Andrew Morton wrote: >Valdis.Kletnieks@vt.edu wrote: > >>The *odd* part is that the pgpgin, pgpgout, and pswpin numbers do *NOT* >> seem to be correlated. High I/O loads from read/write don't seem to cause >> a problem - untarring the Linux distro won't do it, running badblocks won't do it. >> >> But if somebody has to swap out, all hell breaks loose... >> > >swapout tends to happen via page reclaim, whereas normal writeback does >not. > >What's the difference? When swapout is happening you can expect increased >latency in the page allocator. > >My guess is that xmms is getting throttled in try_to_free_pages(). > >There is a very good argument for giving !SCHED_OTHER tasks "special >treatment" in the VM. ie: > >a) exempt them from balance_dirty_pages() throttling treatment altogether > >b) let them dip further into the page reserves in __alloc_pages. > >iirc, -aa kernels do some of this. As does the Digeo kernel. Just haven't >got around to it in 2.6. It's pretty simple. > >If xmms isn't running SCHED_FIFO/SCHED_RR, well, you lose. > >The instrumentation to add is page allocation latency. > > >Another possibility is that xmms is getting stuck in a read. The >anticipatory scheduler is currently rather tuned for throughput. Judging >by the vmstat trace which was posted, we have a classic >read-stream-vs-write-stream going on. We trade off latency versus >throughput; perhaps wrongly. You can decrease latency (at the expense of >throughput) by decreasing the settings in /sys/block/hda/queue/iosched. > >To a point, it is a nice linear tradeoff, and someone should put the time >in to tweak and characterise it. > > With 1 "big" writer if xmms submits a read, it should be serviced within 50ms if there is no TCQ, possibly more, but likely to be less. The reading process should then be able to read for up to 200ms before writes are serviced again. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/