Re: [Lse-tech] Re: [ckrm-tech] Re: [PATCH 00/01] Move Exit Connectors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "John" == John Hesterberg <[email protected]> writes:

John> I believe the accounting our customers require needs to be
John> turned on system-wide.  In fact, I recall getting problems
John> reports if there are some processes not 'accounted' for.  If you
John> do it on a task basis, and accounting gets turned on, you'd have
John> to have a fool-proof way of tracking down all the tasks in a
John> system and turn on their accounting.

Thats what I was scared someone would say ;-( The problem I am seeing
is that SGI wants certain things in the accounting block, I am sure
IBM has other things they wish to count and someone else will want to
count something else again. With all those numbers we may end up with
a relatively large block for accounting numbers in struct task_struct.

However it makes it a lot harder to use the task_notifiers for it ;-(

John> I would expect sites either want accounting on all the time for
John> everything, or not at all.

Right now a lot of the accounting is done by calling into a function
which checks a flag for whether accounting is enabled and returns if
it is not. That could easily be extended to check for the global
accounting flag + check that the task's accounting data structure has
been allocated. Then in certain places, like fork() and schedule(),
allocate it if it's not in place already and accounting has been
switched on. That way we could reduce the overhead to a single pointer
in struct task_struct and the accounting structure could (in theory)
grow indefinately large. Or is this too much of a hack?

Comments?

Cheers,
Jes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux