Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 8 Aug 2002 18:33:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 8 Aug 2002 18:33:39 -0400 Received: from perninha.conectiva.com.br ([200.250.58.156]:40719 "HELO perninha.conectiva.com.br") by vger.kernel.org with SMTP id ; Thu, 8 Aug 2002 18:33:38 -0400 Date: Thu, 8 Aug 2002 19:37:08 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@duckman.distro.conectiva To: Linus Torvalds Cc: Hubertus Franke , Andries Brouwer , Andrew Morton , , , lkml , Paul Larson Subject: Re: [PATCH] Linux-2.5 fix/improve get_pid() In-Reply-To: Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 30 On Thu, 8 Aug 2002, Linus Torvalds wrote: > On Thu, 8 Aug 2002, Hubertus Franke wrote: > > > > That is true. All was done under the 16-bit assumption > > My hunch is that the current algorithm might actually work quite well > > for a sparsely populated pid-space (32-bits). > > I agree. > > So let's just try Andries approach, suggested patch as follows.. Hmmm, I wonder how badly the system will behave when we need to reset last_pid and next_safe with 30000 pids in use ... regards, Rik -- http://www.linuxsymposium.org/2002/ "You're one of those condescending OLS attendants" "Here's a nickle kid. Go buy yourself a real t-shirt" http://www.surriel.com/ http://distro.conectiva.com/ - 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/