Re: CUREENT issue with ballon.c
On 25/10/13 00:24, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:17 PM, Roger Pau Monné roger@citrix.comwrote: On 24/10/13 22:15, Konstantin Belousov wrote: On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? Yes, but I'm not touching balloon memory target. There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. Yes, I'm aware of that, it's just that it shouldn't happen unless you actually trigger a balloon memory decrease, which should not happen automatically AFAIK, that's why I was asking if this was happening without the user specifically requesting it. Anyway, this should be clearly fixed and pulled into 10 no matter what triggered it. I will send a patch as soon as possible. Yes, WITNESS was enabled, im using Kubuntu / XEN kernel / and virt-manager it was fine running Current, until i ran updates this week then encountered this. Ive since disabled WITNESS with a recompile, but the VM still apears more sluggish then before. root@M14xR2:/home/dingo# xm info host : M14xR2 release: 3.11.0-12-generic version: #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 machine: x86_64 nr_cpus: 4 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 2 cpu_mhz: 2494 xen:/// capabilities: capabilities host cpu archx86_64/arch features pae/ /features /cpu power_management suspend_mem/ suspend_disk/ suspend_hybrid/ /power_management migration_features live/ uri_transports uri_transportxenmigr/uri_transport /uri_transports /migration_features /host guest os_typexen/os_type arch name='x86_64' wordsize64/wordsize emulatorqemu-dm/emulator machinexenpv/machine domain type='xen' /domain /arch /guest guest os_typexen/os_type arch name='i686' wordsize32/wordsize emulatorqemu-dm/emulator
Re: CUREENT issue with ballon.c
On Thursday 24 October 2013 23:17:59 Roger Pau Monné wrote: On 24/10/13 22:15, Konstantin Belousov wrote: On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? Yes, but I'm not touching balloon memory target. There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. Yes, I'm aware of that, it's just that it shouldn't happen unless you actually trigger a balloon memory decrease, which should not happen automatically AFAIK, that's why I was asking if this was happening without the user specifically requesting it. For me this problem appears when I try to migrate VM to another physical XenServer 6.2. And only when this VM configured with dynamical memory. Have no problem with static memory configuration. You can find details here http://support.citrix.com/proddocs/topic/xencenter-61/xs-xc-dmc-about.html Anyway, this should be clearly fixed and pulled into 10 no matter what triggered it. I will send a patch as soon as possible. Thanks for that. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- Best Regards, Nasonov Sergey ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: CUREENT issue with ballon.c
On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: CUREENT issue with ballon.c
On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monné roger@citrix.comwrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: CUREENT issue with ballon.c
On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monné roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: CUREENT issue with ballon.c
On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. pgpdtnrHQvYxa.pgp Description: PGP signature
Re: CUREENT issue with ballon.c
On 24/10/13 22:15, Konstantin Belousov wrote: On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? Yes, but I'm not touching balloon memory target. There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. Yes, I'm aware of that, it's just that it shouldn't happen unless you actually trigger a balloon memory decrease, which should not happen automatically AFAIK, that's why I was asking if this was happening without the user specifically requesting it. Anyway, this should be clearly fixed and pulled into 10 no matter what triggered it. I will send a patch as soon as possible. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: CUREENT issue with ballon.c
On Thu, Oct 24, 2013 at 6:17 PM, Roger Pau Monné roger@citrix.comwrote: On 24/10/13 22:15, Konstantin Belousov wrote: On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? Yes, but I'm not touching balloon memory target. There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. Yes, I'm aware of that, it's just that it shouldn't happen unless you actually trigger a balloon memory decrease, which should not happen automatically AFAIK, that's why I was asking if this was happening without the user specifically requesting it. Anyway, this should be clearly fixed and pulled into 10 no matter what triggered it. I will send a patch as soon as possible. Yes, WITNESS was enabled, im using Kubuntu / XEN kernel / and virt-manager it was fine running Current, until i ran updates this week then encountered this. Ive since disabled WITNESS with a recompile, but the VM still apears more sluggish then before. root@M14xR2:/home/dingo# xm info host : M14xR2 release: 3.11.0-12-generic version: #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 machine: x86_64 nr_cpus: 4 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 2 cpu_mhz: 2494 xen:/// capabilities: capabilities host cpu archx86_64/arch features pae/ /features /cpu power_management suspend_mem/ suspend_disk/ suspend_hybrid/ /power_management migration_features live/ uri_transports uri_transportxenmigr/uri_transport /uri_transports /migration_features /host guest os_typexen/os_type arch name='x86_64' wordsize64/wordsize emulatorqemu-dm/emulator machinexenpv/machine domain type='xen' /domain /arch /guest guest os_typexen/os_type arch name='i686' wordsize32/wordsize emulatorqemu-dm/emulator machinexenpv/machine
Re: CUREENT issue with ballon.c
On Thu, Oct 24, 2013 at 6:24 PM, Outback Dingo outbackdi...@gmail.comwrote: On Thu, Oct 24, 2013 at 6:17 PM, Roger Pau Monné roger@citrix.comwrote: On 24/10/13 22:15, Konstantin Belousov wrote: On Thu, Oct 24, 2013 at 09:45:20PM +0100, Roger Pau Monn? wrote: On 24/10/13 13:01, Outback Dingo wrote: On Thu, Oct 24, 2013 at 6:16 AM, Roger Pau Monn? roger@citrix.com mailto:roger@citrix.com wrote: On 24/10/13 03:02, Outback Dingo wrote: --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: Did you do anything specific to trigger the crash? Can you explain the steps needed to reproduce it? just recompiled a kernel, and booted it scrolls continuously across the screen doesnt seem to ever stop. I've tried r257051 and it seems to work fine, could you please post your Xen version, the config file used to launch the VM and the toolstack used? Do you have witness enabled in your kernel config ? Yes, but I'm not touching balloon memory target. There is an obvious case of calling malloc(M_WAITOK) while holding both balloon_lock and balloon_mutex: ballon_process-decrease_reservation-balloon_append. Yes, I'm aware of that, it's just that it shouldn't happen unless you actually trigger a balloon memory decrease, which should not happen automatically AFAIK, that's why I was asking if this was happening without the user specifically requesting it. Anyway, this should be clearly fixed and pulled into 10 no matter what triggered it. I will send a patch as soon as possible. Yes, WITNESS was enabled, im using Kubuntu / XEN kernel / and virt-manager it was fine running Current, until i ran updates this week then encountered this. Ive since disabled WITNESS with a recompile, but the VM still apears more sluggish then before. root@M14xR2:/home/dingo# xm info host : M14xR2 release: 3.11.0-12-generic version: #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 machine: x86_64 nr_cpus: 4 nr_nodes : 1 cores_per_socket : 2 threads_per_core : 2 cpu_mhz: 2494 xen:/// capabilities: capabilities host cpu archx86_64/arch features pae/ /features /cpu power_management suspend_mem/ suspend_disk/ suspend_hybrid/ /power_management migration_features live/ uri_transports uri_transportxenmigr/uri_transport /uri_transports /migration_features /host guest os_typexen/os_type arch name='x86_64' wordsize64/wordsize emulatorqemu-dm/emulator machinexenpv/machine domain type='xen' /domain /arch /guest guest
CUREENT issue with ballon.c
--- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: exclusive sleep mutex balloon_lock (balloon_lock) r = 0 (0x816e9c58) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:339 exclusive sleep mutex balloon_mutex (balloon_mutex) r = 0 (0x816e9c38) locked @ /usr/src/sys/dev/xen/balloon/balloon.c:373 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfe2c67c0 kdb_backtrace() at kdb_backtrace+0x39/frame 0xfe2c6870 witness_warn() at witness_warn+0x4a8/frame 0xfe2c6930 uma_zalloc_arg() at uma_zalloc_arg+0x3b/frame 0xfe2c69a0 malloc() at malloc+0x101/frame 0xfe2c69f0 balloon_process() at balloon_process+0x44a/frame 0xfe2c6a70 fork_exit() at fork_exit+0x84/frame 0xfe2c6ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfe2c6ab0 --- trap 0, rip = 0, rsp = 0xfe2c6b70, rbp = 0 --- uma_zalloc_arg: zone 16 with the following non-sleepable locks held: ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org