Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Feb 2003 14:04:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Feb 2003 14:04:06 -0500 Received: from crack.them.org ([65.125.64.184]:55782 "EHLO crack.them.org") by vger.kernel.org with ESMTP id ; Thu, 20 Feb 2003 14:04:06 -0500 Date: Thu, 20 Feb 2003 14:13:58 -0500 From: Daniel Jacobowitz To: Linus Torvalds Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Alex Larsson , procps-list@redhat.com Subject: Re: [patch] procfs/procps threading performance speedup, 2.5.62 Message-ID: <20030220191358.GA18459@nevyn.them.org> Mail-Followup-To: Linus Torvalds , Ingo Molnar , linux-kernel@vger.kernel.org, Alex Larsson , procps-list@redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1175 Lines: 28 On Thu, Feb 20, 2003 at 09:20:38AM -0800, Linus Torvalds 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. > > It shouldn't even be all that much harder. You only really need to add the > "lookup()" and "readdir()" logic to the pid-fd's, and they both should be > fairly straightforward, ie something like the appended should do the > lookup() part. > > (UNTESTED! NOT COMPILED! PROBABLY HORRIBLY BUGGY! CAVEAT USER! CONCEPTUAL > CODE ONLY! YOU GET THE IDEA! I'M GETTING HOARSE FROM ALL THE SHOUTING!) It'd be a little (very little) more complex, but can I once again suggest /proc//threads/ instead of /proc///xxx? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer - 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/