Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 21 Sep 2002 13:47:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 21 Sep 2002 13:47:40 -0400 Received: from holomorphy.com ([66.224.33.161]:34189 "EHLO holomorphy") by vger.kernel.org with ESMTP id ; Sat, 21 Sep 2002 13:47:40 -0400 Date: Sat, 21 Sep 2002 10:46:06 -0700 From: William Lee Irwin III To: Ingo Molnar Cc: Linus Torvalds , Andries Brouwer , linux-kernel@vger.kernel.org Subject: Re: quadratic behaviour Message-ID: <20020921174606.GR3530@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Ingo Molnar , Linus Torvalds , Andries Brouwer , linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Description: brief message Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i Organization: The Domain of Holomorphy Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 26 On Sat, 21 Sep 2002, Linus Torvalds wrote: >> But the quadratic behaviour wrt processes clearly isn't fixed. >> Suggestions welcome (and we'll need to avoid the same quadratic >> behaviour wrt the threads when we expose them). On Sat, Sep 21, 2002 at 07:49:49PM +0200, Ingo Molnar wrote: > in the case of threads my plan is to use the pid alloction bitmap for > this. It slightly overestimates the pids because orphan sessions and pgrps > are included as well, but this should not be a problem because procfs also > does a pid lookup when the specific directory is accessed. This method is > inherently restartable, the pid bitmap pages are never freed, and it's the > most cache-compact representation of the sorted pidlist. And it can be > accessed lockless ... This sounds more attractive still. I'll forego the strategy of my prior post and try to squeeze some more benchmark numbers out of things over the weekend. Cheers, Bill - 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/