[OpenAFS-devel] Very simple patch for libafs CPU hog on signal

Derek Atkins warlord@MIT.EDU
29 Jan 2002 13:31:30 -0500


Matt Peterson <matt@caldera.com> writes:

> Also, can someone explain what is meant by the following?
> 
> Nickolai Zeldovich <kolya@MIT.EDU> wrote:
> > Unfortunately, this has the side effect of artificially increasing the 
> > system load to ~4 when AFS is idle, because the background daemons 
> > block waiting for requests.
> 
> Is Nickolai is right on this one?  Tasks with a state of TASK_INTERRUPTIBLE 
> do not appear to increase the system load.  If they did, you'd already see an 
> increase of 4 as the daemon syscalls currently spend most of their time in 
> interruptable_sleep_on() (even without Nickolai's patch).  Basically, I don't 
> see how Nickolai's patch would change system load.

This was in reference to using a non-interruptible sleep, which does
have the affect of increasing the load.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available