NetBSD-Bugs archive

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

Re: kern/39349: cpu affinity can make lwps non-schedulable

On Aug 14, 2008, at 2:00 AM, wrote:

Number:         39349
Category:       kern
Synopsis:       cpu affinity can make lwps non-schedulable
Confidential:   no
Severity:       serious
Priority:       medium
Responsible:    kern-bug-people
State:          open
Class:          sw-bug
Submitter-Id:   net
Arrival-Date:   Thu Aug 14 09:00:00 +0000 2008
Originator:     YAMAMOTO Takashi <>
Release:        NetBSD 4.99.72
                # cpuctl offline 0
                # cpuctl identify 0

        "cpuctl identify" binds itself to cpu0, which is offline.
        thus it will never be scheduled.  if it has a lock (eg. p->p_lock),
        the entire system will hang soon.

Probably need to prevent binding to CPUs that have been taking offline. But what to do about CPUs that already have bound threads (which is all of them, of course). Perhaps we need to make note when an LWP has taken a lock?



-- thorpej

Home | Main Index | Thread Index | Old Index