Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Feb 2003 12:20:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Feb 2003 12:20:04 -0500 Received: from havoc.daloft.com ([64.213.145.173]:5782 "EHLO havoc.gtf.org") by vger.kernel.org with ESMTP id ; Thu, 20 Feb 2003 12:18:57 -0500 Date: Thu, 20 Feb 2003 12:28:57 -0500 From: Jeff Garzik To: Ingo Molnar Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Alex Larsson , procps-list@redhat.com, Alexander Viro Subject: Re: [patch] procfs/procps threading performance speedup, 2.5.62 Message-ID: <20030220172857.GH9800@gtf.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 25 On Thu, Feb 20, 2003 at 06:14:38PM +0100, Ingo Molnar wrote: > On Thu, 20 Feb 2003, Linus Torvalds wrote: > > It would just be _so_ much nicer if the threads would show up as > > subdirectories ie /proc///xxx. More scalable, more readable, > > and just generally more sane. > > Al says that this cannot be done sanely, and is fraught with security > problems. I'd vote for it if it were possible. Al? Having the kernel automatically manage creation/destruction of directories is the sticking point, AFAIK. Why not use the "squid method"? Create directories 00..FF, and sort the pids/tids into buckets that way. Then you are not creating and destroying directories all the time. Jeff - 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/