lkml.org 
[lkml]   [2005]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Lse-tech] Re: A common layer for Accounting packages
On Tue, 22 Feb 2005, Andrew Morton wrote:

> We really want to avoid doing such stuff in-kernel if at all possible, of
> course.
>
> Is it not possible to implement the fork/exec/exit notifications to
> userspace so that a daemon can track the process relationships and perform
> aggregation based upon individual tasks' accounting? That's what one of
> the accounting systems is proposing doing, I believe.
>
> (In fact, why do we even need the notifications? /bin/ps can work this
> stuff out).


I had started a proof of concept implementation that could reconstruct the
whole process tree from userspace just from the BSD accounting currently
in the kernel (+ the conceptual bug-fix that I misnamed "[RFC] "biological
parent" pid"). This could do the whole job ID thing from userspace.
Unfortunately, I haven't had time to work on it recently.

Also, doing per-job accounting might actually be more lightweight than
per-process accounting, so I'm not at all opposed to unifying CSA and BSD
accounting into one mechanism that just writes different file formats.

A complete framework seems like overkill to me, too.

Tim
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.104 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site