From mboxrd@z Thu Jan 1 00:00:00 1970 From: Davidlohr Bueso Subject: Re: [RFC] [PATCH procfs] Add process age Date: Fri, 23 Jul 2010 14:47:10 -0400 Message-ID: <1279910830.1851.5.camel@cowboy> References: <1279907271.4335.3.camel@cowboy> <20100723183549.GA10518@x200> Reply-To: dave.bueso@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Alexey Dobriyan Return-path: In-Reply-To: <20100723183549.GA10518@x200> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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. This small file simply aids the users to obtain the information easier and quicker. Another alternative would be to add an entry in /proc/#/status. Davidlohr