Re: [PATCH 2.6.11-rc4-mm1] end-of-proces handling for acct-csa

From: Jesse Barnes
Date: Wed Mar 02 2005 - 13:01:43 EST


On Tuesday, March 1, 2005 11:48 pm, Guillaume Thouvenin wrote:
> Is it possible to merge BSD and CSA? I mean with CSA, there is a part
> that does per-process accounting. For exemple in the
> linux-2.6.9.acct_mm.patch the two functions update_mem_hiwater() and
> csa_update_integrals() update fields in the current (and parent)
> process. So maybe you can improve the BSD per-process accounting or
> maybe CSA can replace the BSD per-process accounting?

The BSD accounting tools will expect the data to be written in a certain
format, so we can't change that. We could, however, unify the data
collection under CONFIG_ACCOUNTING or something, that collects all the data
available (which would be the sum of the data collected by the BSD and CSA
calls) and then throw away data when writing to the BSD log so its format
remains the same.

That would simplify data collection since there would just be one set of
calls, and data reporting could be driven by userspace (whether it's in
old-style sys_acct format, or new-style data that CSA/ELSA defines).

Jesse
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/