From mboxrd@z Thu Jan 1 00:00:00 1970 From: Davidlohr Bueso Subject: Re: [RFC] [PATCH procfs] Add process age Date: Mon, 26 Jul 2010 09:57:48 -0400 Message-ID: <1280152668.2212.1.camel@cowboy> References: <1279907271.4335.3.camel@cowboy> <20100723183549.GA10518@x200> <1279910830.1851.5.camel@cowboy> <87fwz6it0e.fsf@basil.nowhere.org> Reply-To: dave.bueso@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Alexey Dobriyan , torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Andi Kleen Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:37772 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753001Ab0GZOAn (ORCPT ); Mon, 26 Jul 2010 10:00:43 -0400 In-Reply-To: <87fwz6it0e.fsf@basil.nowhere.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, 2010-07-26 at 09:47 +0200, Andi Kleen wrote: > Davidlohr Bueso writes: > > > On Fri, 2010-07-23 at 21:35 +0300, Alexey Dobriyan wrote: > >> On Fri, Jul 23, 2010 at 01:47:51PM -0400, Davidlohr Bueso wrote: > >> > This patch exports a process's age, in seconds, adding a /proc/#/age file. > >> > >> What for? > > > > I have not found any straight way to get the run time of a processes, > > without having to interpret the start_time entry in /proc/#/stat and > > manually subtract the uptime from it. > > That sounds like something an user space program should simply do. > Perhaps you can add it as a new optional "-o" field in "ps" ? > True, but there are also many other no-so-useful files under /proc that can also be replaced by userspace apps. Davidlohr