NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/38792: sched_pstats takes too long

>Number:         38792
>Category:       kern
>Synopsis:       sched_pstats takes too long
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 29 23:40:00 +0000 2008
>Originator:     Andrew Doran
>Release:        4.99.63
The NetBSD Project
sched_pstats() can take a long time if there are thousands of procs/LWPs
in the system.

That's a problem because it runs in interrupt context, and because 
realtime threads might need access to the process list.

- Make sched_pstats use a marker process so it does not hold proc_lock
  for so long?

- Have two classes of callout, like Solaris. One run from a softint
  as we do now, and another run from a kthread, for slow items like

Home | Main Index | Thread Index | Old Index