Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763795AbXEVKrS (ORCPT ); Tue, 22 May 2007 06:47:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756812AbXEVKrJ (ORCPT ); Tue, 22 May 2007 06:47:09 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:34209 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754788AbXEVKrI (ORCPT ); Tue, 22 May 2007 06:47:08 -0400 Date: Tue, 22 May 2007 12:46:48 +0200 From: Ingo Molnar To: Con Kolivas Cc: Antonino Ingargiola , Nick Piggin , Ray Lee , ck list , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: swap prefetch improvements Message-ID: <20070522104648.GA10622@elte.hu> References: <20070430162007.ad46e153.akpm@linux-foundation.org> <200705222020.58474.kernel@kolivas.org> <20070522102530.GB2344@elte.hu> <200705222037.54741.kernel@kolivas.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200705222037.54741.kernel@kolivas.org> User-Agent: Mutt/1.4.2.2i X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.0.3 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1673 Lines: 40 * Con Kolivas wrote: > On Tuesday 22 May 2007 20:25, Ingo Molnar wrote: > > * Con Kolivas wrote: > > > > > there was nothing else running on the system - so i suspect the > > > > > swapin activity flagged 'itself' as some 'other' activity and > > > > > stopped? The swapins happened in 4 bursts, separated by 5 seconds > > > > > total idleness. > > > > > > > > I've noted burst swapins separated by some seconds of pause in my > > > > desktop system too (with sp_tester and an idle gnome). > > > > > > That really is expected, as just about anything, including journal > > > writeout, would be enough to put it back to sleep for 5 more seconds. > > > > note that nothing like that happened on my system - in the > > swap-prefetch-off case there was _zero_ IO activity during the sleep > > period. > > Ok, granted it's _very_ conservative. [...] but your first reaction was "it should not have slept for 5 seconds": | Hmm.. The timer waits 5 seconds before trying to prefetch, but then | only stops if it detects any activity elsewhere. It doesn't actually | try to go idle in between It clearly should not consider 'itself' as IO activity. This suggests some bug in the 'detect activity' mechanism, agreed? I'm wondering whether you are seeing the same problem, or is all swap-prefetch IO on your system continuous until it's done [or some other IO comes inbetween]? Ingo - 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/