Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757108AbZA2KcM (ORCPT ); Thu, 29 Jan 2009 05:32:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752511AbZA2KcA (ORCPT ); Thu, 29 Jan 2009 05:32:00 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:39611 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375AbZA2Kb7 (ORCPT ); Thu, 29 Jan 2009 05:31:59 -0500 Subject: Re: [Bugme-new] [Bug 12562] New: High overhead while switching or synchronizing threads on different cores From: Peter Zijlstra To: Thomas Pilarski Cc: Andrew Morton , Mike Galbraith , Gregory Haskins , bugme-daemon@bugzilla.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1233224644.5294.52.camel@bugs-laptop> References: <20090128125604.94ed3fe0.akpm@linux-foundation.org> <1233181507.6988.14.camel@bugs-laptop> <1233220048.7835.19.camel@twins> <1233223979.5294.41.camel@bugs-laptop> <1233224644.5294.52.camel@bugs-laptop> Content-Type: text/plain Date: Thu, 29 Jan 2009 11:31:49 +0100 Message-Id: <1233225109.4495.1.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 28 On Thu, 2009-01-29 at 11:24 +0100, Thomas Pilarski wrote: > Some explanation of the test program. > > ../schedulerissue 1 4096 8 2000 > 1 producer and 1 consumer > buffer size of 4096 doubles * 8byte > 8 buffer (256kB total buffer) > 2000 messages > > ../schedulerissue 2 4096 8 2000 > 2 producer and 2 consumer > buffer size of 4096 doubles * 8byte > 8 buffer (256kB total buffer) > 2000 messages > > > It was not 512KB bytes in the test before, but 4MB. > But there is the same problem with a total buffer size of 48kB and 4 > threads (./schedulerissue 2 2048 3 20000). Right, read the proglet (and removed that usleep(1)) and am poking at it. -- 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/