Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262017AbUCSUq5 (ORCPT ); Fri, 19 Mar 2004 15:46:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262029AbUCSUq4 (ORCPT ); Fri, 19 Mar 2004 15:46:56 -0500 Received: from ns.suse.de ([195.135.220.2]:34230 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S262017AbUCSUqd (ORCPT ); Fri, 19 Mar 2004 15:46:33 -0500 Date: Fri, 19 Mar 2004 21:46:32 +0100 Message-ID: From: Takashi Iwai To: Andrew Morton Cc: Chris Mason , andrea@suse.de, linux-kernel@vger.kernel.org Subject: Re: CONFIG_PREEMPT and server workloads In-Reply-To: <20040318155745.36d4785d.akpm@osdl.org> References: <40591EC1.1060204@geizhals.at> <20040318060358.GC29530@dualathlon.random> <20040318143205.6a9c4e89.akpm@osdl.org> <1079650437.11058.31.camel@watt.suse.com> <20040318155745.36d4785d.akpm@osdl.org> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 MULE XEmacs/21.4 (patch 13) (Rational FORTRAN) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 28 At Thu, 18 Mar 2004 15:57:45 -0800, Andrew Morton wrote: > > Chris Mason wrote: > > > > > What we're doing here is walking (under spinlock) a ring of buffers > > > searching for unlocked dirty ones to write out. > > > > > > Suppose the ring has thousands of locked buffers and there is a RT task > > > scheduling at 1kHz. Each time need_resched() comes true we break out of > > > the search, schedule away and then restart the search from the beginning. > > > > > Why not just put all the locked buffers onto a different list as you > > find them or lock them. That way you can always make progress... > > Coz that made me look at the code and hence rewrite the whole thing, damn > you. It's definitely better, but is of scary scope. wow, interesting, i'll give a shot with your patch. thanks! Takashi - 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/