Date: Thu, 3 Jul 2008 09:26:02 -0700 From: "Murty, Ravi" <ravi.murty@intel.com> To: <freebsd-hackers@freebsd.org> Subject: calcru question Message-ID: <AEBCFC23C0E40949B10BA2C224FC61B0079EC785@orsmsx416.amr.corp.intel.com>
next in thread | raw e-mail | index | archive | help
Hello All, =20 I have a rather simple question. I am running the 6.2 kernel and calru is called when top is run in a loop. One of the things calcru does is walk to threads of a process and checks if the thread is running and if it asserts that its tdoncpu field be anything but NOCPU. In our case, one in a great while, this assertion fails and the kernel panics. The assertion makes perfect sense, but I can't seem to figure out how this can be happening. The td->td_oncpu field is set to NOCPU when the thread is being kicked off a CPU (sched_switc()) which means it is not running and all of this happens with sched_lock held which calcru also grabs. =20 Thanks, Ravi =20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AEBCFC23C0E40949B10BA2C224FC61B0079EC785>