Q1: Which CPU are you running? Could you post the initial output from
dmesg(8) and the messages printed by hwpmc(4)?
Q2: What command line are you using? Does the deadlock happen if you
turn off user space callchain capture (option -N)?
Koshy
FreeBSD reports the CPU as a "Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
(1997.03-MHz K8-class CPU)", and I have put the output of dmesg here:
http://bramp.pastebin.com/f1f55f03 to avoid spamming this mailing
list.
Additionally, the problem was occurring when hwpmc was compiled into
the kernel, but since then I have compiled it as a module, and it is
still occurring. The output when I load the module is:
hwpmc: TSC/1/64/0x20<REA>
IAP/2/40/0x3ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA,PRC>
IAF/0/0/0x61<INT,REA,WRI>
>
> Q2: What command line are you using? Does the deadlock happen if you
> turn off user space callchain capture (option -N)?
pmcstat -S unhalted-core-cycles -O blah
Before I reported this problem I was able to deadlock the machine
every single time, however, today it has taken me 8 attempts before
the machine deadlocked :(. As you asked, I tested with the -N flag,
and it deadlocked first time.
>
> Koshy
>
thanks for any help
Andrew
> Before I reported this problem I was able to deadlock the machine
> every single time, however, today it has taken me 8 attempts before
> the machine deadlocked :(. As you asked, I tested with the -N flag,
> and it deadlocked first time.
Q3: What's the "deadlock" like: is it a "hard" hang (i.e., the NUMLOCK
key fails to work, the network stack becomes unresponsive), or is
it a "soft" hang, i.e., that every process gets stuck inside
HWPMC(4), but the kernel is still operational?
If the hang was of the "soft" variety, could you try a recent -current, in
particular r198464 and let us know if that fixes the behaviour?
Thanks,
Koshy
I think it is a soft hang, as the machine will still respond to pings,
and my SSH connections still work, until I try an execute any command.
When I execute a command it blocks waiting for pmc-sx.
I will update to r198464 and report my findings back later in the week.
thanks
Andrew
cd /usr/src && patch -p1 < .../patch-fixlor+deadlock
it's on head but should apply to 8.x and 7.x.
Kind regards,
Fabien