rusage and pthreads

Mark Terribile materribile at
Wed Jan 19 01:11:35 UTC 2011


I forgot to add:

> Nope.  statclock() is fired off periodically (with
> some fuzz, to avoid clever games by processes trying to
> avoid being sampled) to update the stats for the currently
> running process.

Which would mean that a process that is occupying memory but doesn't happen to be running on that clock tick doesn't have its memory counted toward the total ... right?



More information about the freebsd-questions mailing list