You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make test hangs entire machine during profile-5 test on an Ubuntu 12.04 KVM VM #73
makes one CPU spin at 100% (visible via virt-manager) and the whole machine is totally dead (no response via keyboard or ssh, no kernel messages on the console).
Is this expected? AIUI, this test is tracing every single function in the kernel, which does scream "don't do that".
Both the host and the guest (virtualized via KVM) are running Ubuntu 12.04. Host kernel: 3.5.0-45-generic, guest kernel: 3.2.0-59-virtual
Yes, the test does scream "dont do that!" - but thats the point. The driver
has builtin protection and a blacklist of functions to trace. Its fairly
painful to figure out which function(s) cause this - diagnostics will be in
/var/log/kern.log - its useful to run the test on the console and if
necessary tail -f /var/log/kern.log and to keep catting /proc/dtrace/trace
it may show the issue. (If one cpu is blocked and the other isnt - your
system is irrecoverable, but the non-blocked cpus may help to get some data
before you do a reboot).
In general, you should be able to trace everything (excluding the blacklist
which is those few functions dtrace is hooking to get the interrupts).
However given many variations in kernel and loadable drivers, you would
seem to have hit a race.
If you can - see what you can dig up - I will need to run on my 12.04
kernel to see if I can easily reproduce.
makes one CPU spin at 100% (visible via virt-manager) and the whole
machine is totally dead (no response via keyboard or ssh, no kernel
messages on the console).
Is this expected? AIUI, this test is tracing every single function in the
kernel, which does scream "don't do that".
Both the host and the guest (virtualized via KVM) are running Ubuntu
12.04. Host kernel: 3.5.0-45-generic, guest kernel: 3.2.0-59-virtual
Reply to this email directly or view it on GitHubhttps://github.com//issues/73
.
The other CPU being idle didn't help as the VM was completely unresponsive (no keyboard/ssh/etc).
watch -n1 tail -20 /proc/dtrace/trace in the (vnc) console makes the tests pass (tested a few times). Periodically catting it to a file also helped (tests pass).
Here's the whole dmesg (after boot, from make load on). All this appeared around the first make test run (subsequent ones were quiet AFAICT). I also have the dump of /proc/dtrace/trace but it's quite large and doesn't seem suspicious apart from a few warnings (below). If you need the whole dump, I can put it somewhere online.
This line in dmesg looks suspicious but I have no idea what a dtb_xamot is ;)
Also, even while not catting I cannot reproduce the issue any more. After a reboot the behavior changed to something somewhat more interesting:
Halfway through systrace-stringof-bad4 I got an oops (memory allocation error? screenshots attached) and the machine is halfway dead, i.e. the interrupts are working (keyboard, network), but login failed with an obscure error indicating things are deeply wrong (another screenshot attached)
Apparently I lost the middle part of the stack trace which might have been interesting as it did involve dtrace_something :(
Rebooting again, with 4GB of memory (used 1 GB previously) throws the same assertion failed error but makes the tests pass. Now running while true ; do make test ; done, will let it run for a few hours and see if it crashes. Still, my smallest VMs are 512MB/1 CPU each and I'd love to use dtrace there too. Or at least, not kill the machine if it can't ;)
Thanks for this info - really helpful. I normally have 500-700MB VMs and it
typically works, but it will depend on what else the VM is doing. dtrace
can have a large footprint when doing an fbt::: (trace all functions) for
the overhead-per-function. How many probes does dtrace -l show on
installing the driver? I typically see 20-40,000 depending on kernel and
loaded drivers.
Running out of memory is bad - dtrace code typically handles OOM but it may
not do so properly in some instances (either their fault or mine) - as it
typically would run (in solaris) on larger machines. The assertion failure
may be memory related or some other.
The other CPU being idle didn't help as the VM was completely unresponsive
(no keyboard/ssh/etc).
watch -n1 tail -20 /proc/dtrace/trace in the (vnc) console makes the
tests pass (tested a few times). Periodically catting it to a file also
helped (tests pass).
Here's the whole dmesg (after boot, from make load on). All this appeared
around the first make test run (subsequent ones were quiet AFAICT). I
also have the dump of /proc/dtrace/trace but it's quite large and doesn't
seem suspicious apart from a few warnings (below). If you need the whole
dump, I can put it somewhere online.
This line in dmesg looks suspicious but I have no idea what a dtb_xamot is
;)
Also, even while not catting I cannot reproduce the issue any more. After
a reboot the behavior changed to something somewhat more interesting:
Halfway through systrace-stringof-bad4 I got an oops (memory allocation
error? screenshots attached) and the machine is halfway dead, i.e. the
interrupts are working (keyboard, network), but login failed with an
obscure error indicating things are deeply wrong (another screenshot
attached)
Rebooting again, with 4GB of memory (used 1 GB previously) throws the same
assertion failed error but makes the tests pass. Now running while true ;
do make test ; done, will let it run for a few hours and see if it
crashes. Still, my smallest VMs are 512MB/1 CPU each and I'd love to use
dtrace there too. Or at least, not kill the machine if it can't ;)
Thanks for this info - really helpful. I normally have 500-700MB VMs and
it typically works, but it will depend on what else the VM is doing. dtrace
can have a large footprint when doing an fbt::: (trace all functions) for
the overhead-per-function. How many probes does dtrace -l show on
installing the driver? I typically see 20-40,000 depending on kernel and
loaded drivers.
Running out of memory is bad - dtrace code typically handles OOM but it
may not do so properly in some instances (either their fault or mine) - as
it typically would run (in solaris) on larger machines. The assertion
failure may be memory related or some other.
The other CPU being idle didn't help as the VM was completely
unresponsive (no keyboard/ssh/etc).
watch -n1 tail -20 /proc/dtrace/trace in the (vnc) console makes the
tests pass (tested a few times). Periodically catting it to a file also
helped (tests pass).
Here's the whole dmesg (after boot, from make load on). All this
appeared around the first make test run (subsequent ones were quiet
AFAICT). I also have the dump of /proc/dtrace/trace but it's quite large
and doesn't seem suspicious apart from a few warnings (below). If you need
the whole dump, I can put it somewhere online.
This line in dmesg looks suspicious but I have no idea what a dtb_xamot
is ;)
Also, even while not catting I cannot reproduce the issue any more. After
a reboot the behavior changed to something somewhat more interesting:
Halfway through systrace-stringof-bad4 I got an oops (memory allocation
error? screenshots attached) and the machine is halfway dead, i.e. the
interrupts are working (keyboard, network), but login failed with an
obscure error indicating things are deeply wrong (another screenshot
attached)
Rebooting again, with 4GB of memory (used 1 GB previously) throws the
same assertion failed error but makes the tests pass. Now running while
true ; do make test ; done, will let it run for a few hours and see if
it crashes. Still, my smallest VMs are 512MB/1 CPU each and I'd love to use
dtrace there too. Or at least, not kill the machine if it can't ;)
I will have to give it a test. The test is a torture test and its obviously
horrible to have something that can hang your machine. Often what I do is
keep an eye on dmesg output, or /var/log/kern.log. If you have a multicpu
machine/VM, sometimes the issue is one cpu locks up,a nd then the next... -
so you can get in quick before it all dies.
Or run from the console - more chance of catching a kernel panic or
deadlock event.
Activity
dtrace4linux commentedon Mar 5, 2014
Yes, the test does scream "dont do that!" - but thats the point. The driver
has builtin protection and a blacklist of functions to trace. Its fairly
painful to figure out which function(s) cause this - diagnostics will be in
/var/log/kern.log - its useful to run the test on the console and if
necessary tail -f /var/log/kern.log and to keep catting /proc/dtrace/trace
system is irrecoverable, but the non-blocked cpus may help to get some data
before you do a reboot).
In general, you should be able to trace everything (excluding the blacklist
However given many variations in kernel and loadable drivers, you would
seem to have hit a race.
If you can - see what you can dig up - I will need to run on my 12.04
kernel to see if I can easily reproduce.
thanks
On 5 March 2014 12:54, Grzegorz Nosek notifications@github.com wrote:
gnosek commentedon Mar 6, 2014
The other CPU being idle didn't help as the VM was completely unresponsive (no keyboard/ssh/etc).
watch -n1 tail -20 /proc/dtrace/tracein the (vnc) console makes the tests pass (tested a few times). Periodically catting it to a file also helped (tests pass).Here's the whole dmesg (after boot, from
make loadon). All this appeared around the firstmake testrun (subsequent ones were quiet AFAICT). I also have the dump of /proc/dtrace/trace but it's quite large and doesn't seem suspicious apart from a few warnings (below). If you need the whole dump, I can put it somewhere online.This line in dmesg looks suspicious but I have no idea what a dtb_xamot is ;)
Also, even while not catting I cannot reproduce the issue any more. After a reboot the behavior changed to something somewhat more interesting:
Halfway through systrace-stringof-bad4 I got an oops (memory allocation error? screenshots attached) and the machine is halfway dead, i.e. the interrupts are working (keyboard, network), but login failed with an obscure error indicating things are deeply wrong (another screenshot attached)
Apparently I lost the middle part of the stack trace which might have been interesting as it did involve dtrace_something :(
Rebooting again, with 4GB of memory (used 1 GB previously) throws the same assertion failed error but makes the tests pass. Now running
while true ; do make test ; done, will let it run for a few hours and see if it crashes. Still, my smallest VMs are 512MB/1 CPU each and I'd love to use dtrace there too. Or at least, not kill the machine if it can't ;)dtrace4linux commentedon Mar 6, 2014
Thanks for this info - really helpful. I normally have 500-700MB VMs and it
typically works, but it will depend on what else the VM is doing. dtrace
can have a large footprint when doing an fbt::: (trace all functions) for
the overhead-per-function. How many probes does dtrace -l show on
installing the driver? I typically see 20-40,000 depending on kernel and
loaded drivers.
Running out of memory is bad - dtrace code typically handles OOM but it may
not do so properly in some instances (either their fault or mine) - as it
typically would run (in solaris) on larger machines. The assertion failure
may be memory related or some other.
The erratic works/failure is also bad of course.
What VM are you using ? virtualbox? kvm?
On 6 March 2014 09:53, Grzegorz Nosek notifications@github.com wrote:
dtrace4linux commentedon Mar 6, 2014
fyi .. i just fell over on a 12.04 ubuntu (3.4 kernel) quite early on. my
kernel shows about 290k probes and my VM is about 900MB in size.
[ 1010.916778] BUG: unable to handle kernel paging request at
00000000001cd223
[ 1010.916779] IP: []
cpu_core_exec+0x13f/0xfffffffffffbcfa0 [dtracedrv]
[ 1010.920200] PGD 3462b067 PUD 1651a067 PMD 0
[ 1010.920200] Oops: 0002 [#1] SMP
[ 1010.920200] CPU 1
[ 1010.920200] Modules linked in: dtracedrv(PO) nfsd nfs lockd fscache
auth_rpcgss nfs_acl sunrpc psmouse microcode i2c_piix4 serio_raw e1000
[ 1010.920200]
[ 1010.920200] Pid: 8508, comm: du Tainted: P W O 3.4.0 #1 innotek
GmbH VirtualBox/VirtualBox
[ 1010.920200] RIP: e030:[] []
cpu_core_exec+0x13f/0xfffffffffffbcfa0 [dtracedrv]
[ 1010.920200] RSP: e02b:ffff8800158a5e58 EFLAGS: 00010182
[ 1010.920200] RAX: ffffffff81a65fa0 RBX: ffff880013819cc0 RCX:
00000000001cd223
[ 1010.920200] RDX: ffff8800158a5f00 RSI: ffff880013819cc0 RDI:
ffff88003339a020
[ 1010.920200] RBP: ffff8800158a5e68 R08: 0000000000016570 R09:
ffff880013819cf8
[ 1010.920200] R10: ffff880013819cc0 R11: 0000000000000004 R12:
ffff88003339a020
[ 1010.920200] R13: ffff880013955630 R14: ffff8800158a5f00 R15:
0000000000000001
[ 1010.920200] FS: 00002aeb33bd4b40(0000) GS:ffff88003ae80000(0000)
knlGS:0000000000000000
[ 1010.920200] CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 1010.920200] CR2: 00000000001cd223 CR3: 0000000014935000 CR4:
0000000000000660
[ 1010.920200] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[ 1010.920200] DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7:
0000000000000400
[ 1010.920200] Process du (pid: 8508, threadinfo ffff8800158a4000, task
ffff8800149a4440)
My kernel is a Xen guest. So I need to do more homework to see whats
happening.
On 6 March 2014 22:34, Paul Fox paul.d.fox@gmail.com wrote:
HenkPoley commentedon Aug 14, 2014
Seeing a similar (same?) lockup problem on ubuntu 14.04.1
dtrace4linux commentedon Aug 14, 2014
I will have to give it a test. The test is a torture test and its obviously
horrible to have something that can hang your machine. Often what I do is
keep an eye on dmesg output, or /var/log/kern.log. If you have a multicpu
machine/VM, sometimes the issue is one cpu locks up,a nd then the next... -
so you can get in quick before it all dies.
Or run from the console - more chance of catching a kernel panic or
deadlock event.
On 14 August 2014 11:48, HenkPoley notifications@github.com wrote: