rusage and pthreads

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


Chuck,

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?

    Mark


      


More information about the freebsd-questions mailing list