Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752267Ab0D1J0q (ORCPT ); Wed, 28 Apr 2010 05:26:46 -0400 Received: from f0.cmpxchg.org ([85.214.51.133]:58134 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683Ab0D1J0o (ORCPT ); Wed, 28 Apr 2010 05:26:44 -0400 Date: Wed, 28 Apr 2010 11:25:48 +0200 From: Johannes Weiner To: Changli Gao Cc: Yong Zhang , Xiaotian Feng , Ingo Molnar , Alexander Viro , Andrew Morton , "Eric W. Biederman" , Davide Libenzi , Roland Dreier , Stefan Richter , Peter Zijlstra , "David S. Miller" , Eric Dumazet , Christoph Lameter , Andreas Herrmann , Thomas Gleixner , David Howells , Takashi Iwai , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] sched: implement the exclusive wait queue as a LIFO queue Message-ID: <20100428092548.GA4413@cmpxchg.org> References: <1272430986-20436-1-git-send-email-xiaosuo@gmail.com> <20100428081545.GA19027@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1053 Lines: 25 On Wed, Apr 28, 2010 at 04:23:52PM +0800, Changli Gao wrote: > On Wed, Apr 28, 2010 at 4:15 PM, Yong Zhang wrote: > > > > What do you mean "we don't need these processes"? > > If the work is less than the workers, we don't need the workers at the > tail of the exculsive list. Have you checked how exclusive waitqueues are even used? > > So some processs(at the tail of exclusive list)will be treated abnormally > > and it will sleep for a long time, is this reasonable? > > > > If there isn't enough work to be done, we'd better not disrupt them > and leave them sleeping forever to keep the scheduler happier. Do we > have reason to keep fair to all the workers? Does it have benefit? How about starving lock contenders? See wait_on_bit_lock() and grep for the users e.g. -- 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/