rusage breakdown and cpu limits.

Alfred Perlstein alfred at freebsd.org
Tue May 29 18:12:02 UTC 2007


* Jeff Roberson <jroberson at chesapeake.net> [070529 11:07] wrote:
> I'm working with Attilio to break down rusage further to be per-thread in 
> places where it is protected by the global scheduler lock.  To support 
> this, I am interested in moving the rlimit cpulimit check into userret(), 
> or perhaps ast().  Is there any reason why we need to check this on every 
> context switch?  Any objections to moving it?  Eventually it will require 
> a different lock from the one we obtain to call mi_switch().

Er, as long as it's checked each place where we can issue a signal
so a SIGXCPU can be sent when tsleep/cv_wait_sig...

right?

-Alfred


More information about the freebsd-arch mailing list