public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* CPU hotplug: system hang on CPU hot remove during `pfmon --system-wide'
@ 2007-05-28  1:54 Satoru Takeuchi
  2007-05-28  6:55 ` Srivatsa Vaddagiri
  0 siblings, 1 reply; 8+ messages in thread
From: Satoru Takeuchi @ 2007-05-28  1:54 UTC (permalink / raw)
  To: Linux Kernel
  Cc: Rusty Russell, Srivatsa Vaddagiri, Zwane Mwaikambo, Nathan Lynch,
	Joel Schopp, Ashok Raj, Heiko Carstens, Gautham R Shenoy,
	Satoru Takeuchi

Hi,

I found a bug on CPU hotplug. If `pfmon --system-wide' is running,
CPU hot remove causes system hang. On the other hand, CPU hot add
during that command seems to work fine.

I detected this problem on my ia64 box, and I don't know that this
problem is also occur on any arch or freezer based CPU hotplug.
Since I'm investigating this problem now, I'm glad if someone
reports the test result on other arch or freezer.

Currently I don't know anything about the cause of this problem.

How To Reproduce
================

Assuming you have two terminal, named term A and term B.

1) execute pfmon from term A

$ pfmon --system-wide
<press ENTER to stop session>

2) issue CPU hot remove from term B

# echo 0 >/sys/devices/system/cpu/cpu1/online

3) Press enter from term B

Expected Result
===============

Succeed to offline CPU

Actual Result
=============

System hang occurs and there are the following messages on serial console.

-------------------------------------------------------------------------------
CPU0                       1925600 CPU_CYCLES
CPU1 could not stop monitoring, CPU may be offline, check results
pfm_write_old_pmds error [3] Device or resource busy
pfmon_read_pmds error Device or resource busy
CPU1 read_results error
-------------------------------------------------------------------------------

Thanks,

Satoru

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-06 15:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-28  1:54 CPU hotplug: system hang on CPU hot remove during `pfmon --system-wide' Satoru Takeuchi
2007-05-28  6:55 ` Srivatsa Vaddagiri
2007-05-29 20:56   ` Linus Torvalds
2007-05-30  2:42     ` Rusty Russell
2007-05-30 16:55     ` Srivatsa Vaddagiri
2007-05-30 17:03       ` Linus Torvalds
2007-05-31 16:51         ` Srivatsa Vaddagiri
2007-06-06 15:24     ` Gautham R Shenoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox