Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752601AbYJ0J6Q (ORCPT ); Mon, 27 Oct 2008 05:58:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751559AbYJ0J55 (ORCPT ); Mon, 27 Oct 2008 05:57:57 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:53842 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751496AbYJ0J54 (ORCPT ); Mon, 27 Oct 2008 05:57:56 -0400 Date: Mon, 27 Oct 2008 02:57:33 -0700 (PDT) Message-Id: <20081027.025733.48914319.davem@davemloft.net> To: mingo@elte.hu Cc: zbr@ioremap.net, akpm@linux-foundation.org, a.p.zijlstra@chello.nl, efault@gmx.de, jkosina@suse.cz, rjw@sisk.pl, s0mbre@tservice.net.ru, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [tbench regression fixes]: digging out smelly deadmen. From: David Miller In-Reply-To: <20081027093035.GA23743@elte.hu> References: <20081026100555.GA26033@ioremap.net> <20081026.193451.36032548.davem@davemloft.net> <20081027093035.GA23743@elte.hu> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1867 Lines: 44 From: Ingo Molnar Date: Mon, 27 Oct 2008 10:30:35 +0100 > But it's a difficult call with no silver bullets. On one hand we have > folks putting more and more stuff into the context-switching hotpath on > the (mostly valid) point that the scheduler is a slowpath compared to > most other things. This I heavily disagree with. The scheduler should be so cheap that you cannot possibly notice that it is even there for a benchmark like tbench. If we now think it's ok that picking which task to run is more expensive than writing 64 bytes over a TCP socket and then blocking on a read, I'd like to stop using Linux. :-) That's "real work" and if the scheduler is more expensive than "real work" we lose. I do want to remind you of a thread you participated in, in April, where you complained about loopback TCP performance: http://marc.info/?l=linux-netdev&m=120696343707674&w=2 It might be fruitful for you to rerun your tests with CFS reverted (start with 2.6.22 and progressively run your benchmark on every release), you know, just for fun :-) > On the other hand we've got folks doing high-context-switch ratio > benchmarks and complaining about the overhead whenever something > goes in that improves the quality of scheduling of a workload that > does not context-switch as massively as tbench. It's a difficult > balance and we cannot satisfy both camps. We've always been proud of our scheduling overhead being extremely low, and you have to face the simple fact that starting in 2.6.23 it's been getting progressively more and more expensive. Consistently so. People even noticed 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/