Jay Lan wrote:Thanks for running this. The results look interesting.
Shailabh Nagar wrote:
Andrew Morton wrote:I ran my testing using the same program posted by Shalilabh attached in his
You see the problem - if one userspace package wants the tgid-stats andHere are some results from running a simple program (source below) that does
another concurrently-running one does now, what do we do? Just leave it
enabled and run a bit slower?
If so, how much slower? Your changelog says some potential users don't
need the tgid-stats, but so what? I assume this patch is a performance
thing? If so, has it been quantified?
10 iterations of creating and then destroying 1000 threads. On the side, another utility
kept reading the pid (+tgid if present) stats from exiting tasks.
posting.
In exit_recv.c, you appear to be dumping the per-tgid data received to disk too ?System: SGI a350, a two cpus IA64 machine.
Kernel: 2.6.17-rc3 + delay-acct-taskstats patch set
+ tgid-disable_patch_shailabh + exit race patch_balbir +
csa_patch_jlan
I also modified the Decumentation/accounting/getdelay.c:
- it repeatedly does recv() to retrieve data from kernel
- instead of using printf() to display data received, i simply write
it to
disk as it would be for an accounting daemon. Note that currently
both the
BSD (or GNU) accounting and the CSA writes accounting data from kernel.
As an effort of moving accounting system to userspace, the raw data
needs
to be written to a raw file first before further processing.
Wonder if this has to do with userspace not being able to keep up with the data flow becauseAnother observation that i considered bad news is that all
10 runs produced 1 to 5 recv() error with errno=105 (ENOBUF).