Mike Kemelmakher <[EMAIL PROTECTED]> writes:

> P.S.  It would be nice to add a linux-specific API for thread stack
> monitoring.  Moreover, there is API that can be extended to do this -
> getrusage (2) .   There is the field - ru_isrss  - integral unshared
> stack size - however linux does not maintain this field for some
> reason.

Neither did BSD (where the syscall comes from), AFAIK. I am not sure
whether any system ever tracked this. Moreover, if it were used,
according to the spec the value is integral, i.e., the amount of
memory used times the number of clock ticks the process has been
executing, or kB*sec, or sth of the kind. I don't know how useful that
is. I think the intention has always been "post mortem" accounting
rather than monitoring. Consider the "who" argument, when it is
RUSAGE_CHILDREN only the childred that have terminated and were waited
for will be counted.

-- 
Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to