Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262790AbUCSOGJ (ORCPT ); Fri, 19 Mar 2004 09:06:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262728AbUCSOGJ (ORCPT ); Fri, 19 Mar 2004 09:06:09 -0500 Received: from ns.suse.de ([195.135.220.2]:34704 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S262790AbUCSOGG (ORCPT ); Fri, 19 Mar 2004 09:06:06 -0500 Date: Fri, 19 Mar 2004 15:06:05 +0100 Message-ID: From: Takashi Iwai To: Chris Mason Cc: Andrew Morton , andrea@suse.de, mjy@geizhals.at, linux-kernel@vger.kernel.org Subject: Re: CONFIG_PREEMPT and server workloads In-Reply-To: <1079704007.11058.127.camel@watt.suse.com> References: <40591EC1.1060204@geizhals.at> <20040318060358.GC29530@dualathlon.random> <20040318110159.321754d8.akpm@osdl.org> <20040318112941.0221c6ac.akpm@osdl.org> <1079639286.4187.2113.camel@watt.suse.com> <1079704007.11058.127.camel@watt.suse.com> 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: 845 Lines: 27 At Fri, 19 Mar 2004 08:46:47 -0500, Chris Mason wrote: > > > - in write_ordered_buffers(). > > > > i still don't figure out where. we have already cond_resched() > > check in the loops. this one is triggered when i write bulk data > > in parallel (1GB write with 20 threads at the same time), resulting > > in up to 2ms. > > > Hmmm, is this a lock latency or just noticing that write() takes a long > time? > > It's probably this: > if (chunk.nr == 0 && need_resched) { > > I'll bet the latencies go away when you drop the chunk.nr test. i'll give a try. thanks for hints. 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/