[Pkg-xen-devel] Bug#603713: WG: Dom0 kernel crashes when dom0_mem= is used!

Ian Campbell ijc at hellion.org.uk
Wed Dec 8 10:22:58 UTC 2010


reassign 603713 linux-image-2.6.32-5-xen-amd64
merge 603632 603713
thanks

On Wed, 2010-12-08 at 10:00 +0100, Andreas.Balg at sf.tv wrote:
> I tried for a couple of times to add an information that might help
> you with regard to Bug #603713 by sending mailto
> "603713 at bugs.debian.org" But it never appeared there

That is very strange. I can't see any reason why you (or anyone) should
be disallowed from following up to that mail. (I'm CCing the bug again
and not trimming the quotes for that reason).

I think the issue that you (and the original submitter) are having is
the same as #603632. I applied a fix to the kernel for that issue
yesterday. For this reason I'm merging this but with that one with this
email.

WRT "Memory used once by a domU  won't bee freed after shutdown or
destroy of those domUs" -- if domain 0 is ballooned down in order to
start a guest then domain 0 is not automatically ballooned back up when
the domain in shut down. The memory is freed to the hypervisor just not
reallocated to domain 0 and you should see it in the "xm physinfo"
output.

You should be able to manually balloon domain 0 back up again or else
the memory will be used for the next guest you start.

This is the defined behaviour of xend (I hesitate to say "expected
behaviour" since it's not all that obvious).

Ian.

>  - so I try to let you know how to work around that bug this way. If
> you decide not to take this mail into account I won't bother you any
> more 
> 
> Regards
> Andreas
> 
> -----Ursprüngliche Nachricht-----
> Von: Balg, Andreas 
> Gesendet: Montag, 29. November 2010 10:36
> An: '603713 at bugs.debian.org'
> Betreff: Dom0 kernel crashes when dom0_mem= is used!
> 
> The same happens to me here - Using Dell R610.  The Crash-Dump follows below.
> 
> As soon as I remove the "dom0_mem="-parameter from hypervisor boot-options it boots flawlessly here -- But later on i have problems with the memory-ballooning in dom0 - Memory used once by a domU  won't bee freed after shutdown or destroy of those domUs.
> 
> ==========================================
> 
> (XEN) Xen version 4.0.1 (Debian 4.0.1-1) (waldi at debian.org) (gcc version 4.4.5 0
> (XEN) Bootloader: GRUB 1.98+20100804-8
> (XEN) Command line: placeholder dom0_mem=1024M console=vga,com2 com2=57600,8n1
> (XEN) Video information:
> (XEN)  VGA is text mode 80x25, font 8x16
> (XEN)  VBE/DDC methods: none; EDID transfer time: 0 seconds
> (XEN)  EDID info not retrieved because no DDC retrieval method detected
> (XEN) Disc information:
> (XEN)  Found 1 MBR signatures
> (XEN)  Found 1 EDD information structures
> (XEN) Xen-e820 RAM map:
> (XEN)  0000000000000000 - 00000000000a0000 (usable)
> (XEN)  0000000000100000 - 00000000cf679000 (usable)
> (XEN)  00000000cf679000 - 00000000cf68f000 (reserved)
> (XEN)  00000000cf68f000 - 00000000cf6ce000 (ACPI data)
> (XEN)  00000000cf6ce000 - 00000000d0000000 (reserved)
> (XEN)  00000000e0000000 - 00000000f0000000 (reserved)
> (XEN)  00000000fe000000 - 0000000100000000 (reserved)
> (XEN)  0000000100000000 - 0000000430000000 (usable)
> (XEN) ACPI: RSDP 000F0A90, 0024 (r2 DELL  )
> (XEN) ACPI: XSDT 000F0B94, 009C (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: FACP CF6B3F9C, 00F4 (r3 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: DSDT CF68F000, 3D5A (r1 DELL   PE_SC3          1 INTL 20050624)
> (XEN) ACPI: FACS CF6B6000, 0040
> (XEN) ACPI: APIC CF6B3478, 015E (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: SPCR CF6B35D8, 0050 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: HPET CF6B362C, 0038 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: DMAR CF6B3668, 01A8 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: MCFG CF6B38C4, 003C (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: WD__ CF6B3904, 0134 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: SLIC CF6B3A3C, 0024 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: ERST CF692EDC, 0270 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: HEST CF69314C, 03A8 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: BERT CF692D5C, 0030 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: EINJ CF692D8C, 0150 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: SRAT CF6B3BC0, 0370 (r1 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: TCPA CF6B3F34, 0064 (r2 DELL   PE_SC3          1 DELL        1)
> (XEN) ACPI: SSDT CF6B7000, 43F4 (r1  INTEL PPM RCM  80000001 INTL 20061109)
> (XEN) System RAM: 16374MB (16767076kB)
> (XEN) Reserving non-aligned node boundary @ mfn 0x230000
> (XEN) Domain heap initialised DMA width 31 bits
> (XEN) Processor #32 6:12 APIC version 21
> (XEN) Processor #0 6:12 APIC version 21
> (XEN) Processor #34 6:12 APIC version 21
> (XEN) Processor #2 6:12 APIC version 21
> (XEN) Processor #50 6:12 APIC version 21
> (XEN) Processor #18 6:12 APIC version 21
> (XEN) Processor #52 6:12 APIC version 21
> (XEN) Processor #20 6:12 APIC version 21
> (XEN) Processor #33 6:12 APIC version 21
> (XEN) Processor #1 6:12 APIC version 21
> (XEN) Processor #35 6:12 APIC version 21
> (XEN) Processor #3 6:12 APIC version 21
> (XEN) Processor #51 6:12 APIC version 21
> (XEN) Processor #19 6:12 APIC version 21
> (XEN) Processor #53 6:12 APIC version 21
> (XEN) Processor #21 6:12 APIC version 21
> (XEN) IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
> (XEN) IOAPIC[1]: apic_id 1, version 32, address 0xfec80000, GSI 32-55
> (XEN) Enabling APIC mode:  Phys.  Using 2 I/O APICs
> (XEN) Using scheduler: SMP Credit Scheduler (credit)
> (XEN) Detected 2394.036 MHz processor.
> (XEN) Initing memory sharing.
> (XEN) VMX: Supported advanced features:
> (XEN)  - APIC MMIO access virtualisation
> (XEN)  - APIC TPR shadow
> (XEN)  - Extended Page Tables (EPT)
> (XEN)  - Virtual-Processor Identifiers (VPID)
> (XEN)  - Virtual NMI
> (XEN)  - MSR direct-access bitmap
> (XEN)  - Unrestricted Guest
> (XEN) EPT supports 2MB super page.
> (XEN) HVM: ASIDs enabled.
> (XEN) HVM: VMX enabled
> (XEN) HVM: Hardware Assisted Paging detected.
> (XEN) Intel VT-d Snoop Control supported.
> (XEN) Intel VT-d DMA Passthrough not supported.
> (XEN) Intel VT-d Queued Invalidation supported.
> (XEN) Intel VT-d Interrupt Remapping supported.
> (XEN) I/O virtualisation enabled
> (XEN)  - Dom0 mode: Relaxed
> (XEN) Enabled directed EOI with ioapic_ack_old on!
> (XEN) Total of 16 processors activated.
> (XEN) ENABLING IO-APIC IRQs
> (XEN)  -> Using old ACK method
> (XEN) TSC is reliable, synchronization unnecessary
> (XEN) Platform timer is 14.318MHz HPET
> ▒(XEN) Allocated console ring of 32 KiB.
> (XEN) Brought up 16 CPUs
> (XEN) *** LOADING DOMAIN 0 ***
> (XEN)  Xen  kernel: 64-bit, lsb, compat32
> (XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x16b5000
> (XEN) PHYSICAL MEMORY ARRANGEMENT:
> (XEN)  Dom0 alloc.:   0000000420000000->0000000424000000 (245760 pages to be al)
> (XEN) VIRTUAL MEMORY ARRANGEMENT:
> (XEN)  Loaded kernel: ffffffff81000000->ffffffff816b5000
> (XEN)  Init. ramdisk: ffffffff816b5000->ffffffff83263000
> (XEN)  Phys-Mach map: ffffffff83263000->ffffffff83463000
> (XEN)  Start info:    ffffffff83463000->ffffffff834634b4
> (XEN)  Page tables:   ffffffff83464000->ffffffff83483000
> (XEN)  Boot stack:    ffffffff83483000->ffffffff83484000
> (XEN)  TOTAL:         ffffffff80000000->ffffffff83800000
> (XEN)  ENTRY ADDRESS: ffffffff81506200
> (XEN) Dom0 has maximum 16 VCPUs
> (XEN) Scrubbing Free RAM: ......................................................
> (XEN) Xen trace buffers: disabled
> (XEN) Std. Loglevel: Errors and warnings
> (XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
> (XEN) Xen is relinquishing VGA console.
> (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xe)
> (XEN) Freed 176kB init memory.
> mapping kernel into physical memory
> Xen: setup ISA identity maps
> about to get started...
> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 2
> [    0.000000] ERROR: Unable to locate IOAPIC for GSI 9
> [    5.020494] BUG: unable to handle kernel paging request at 0000000000005a08
> [    5.020500] IP: [<ffffffff810badce>] __alloc_pages_nodemask+0x8f/0x5f5
> [    5.020509] PGD 0
> [    5.020512] Thread overran stack, or stack corrupted
> [    5.020515] Oops: 0000 [#1] SMP
> [    5.020519] last sysfs file:
> [    5.020522] CPU 0
> [    5.020524] Modules linked in:
> [    5.020529] Pid: 0, comm: swapper Not tainted 2.6.32-5-xen-amd64 #1 PowerEdg0
> [    5.020533] RIP: e030:[<ffffffff810badce>]  [<ffffffff810badce>] __alloc_pag5
> [    5.020540] RSP: e02b:ffffffff81443c88  EFLAGS: 00010046
> [    5.020543] RAX: 0000000000000000 RBX: 0000000000005220 RCX: 0000000000005a00
> [    5.020547] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000005220
> [    5.020551] RBP: 0000000000004020 R08: 0000000000000002 R09: ffff88003fc06010
> [    5.020554] R10: ffffffff813c2700 R11: 00000000000186a0 R12: 0000000000005220
> [    5.020558] R13: 0000000000000002 R14: 0000000000000000 R15: ffff88000000dae8
> [    5.020565] FS:  0000000000000000(0000) GS:ffff8800034b9000(0000) knlGS:00000
> [    5.020569] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
> [    5.020573] CR2: 0000000000005a08 CR3: 0000000001001000 CR4: 0000000000002660
> [    5.020577] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [    5.020581] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> [    5.020585] Process swapper (pid: 0, threadinfo ffffffff81442000, task fffff)
> [    5.020589] Stack:
> [    5.020591]  ffff88000000dac0 00000010813c2765 00000000000212d0 0000000000010
> [    5.020597] <0> ffff88000000acd0 ffffffff8100e5b5 ffffffff8100ec72 0000000000
> [    5.020604] <0> 00000000000186a0 0000000000000000 0000000000005a00 0000000000
> [    5.020612] Call Trace:
> [    5.020650]  [<ffffffff8100e5b5>] ? xen_force_evtchn_callback+0x9/0xa
> [    5.020655]  [<ffffffff8100ec72>] ? check_events+0x12/0x20
> [    5.020662]  [<ffffffff810e759d>] ? new_slab+0x42/0x1ca
> [    5.020667]  [<ffffffff810e7915>] ? __slab_alloc+0x1f0/0x39b
> [    5.020673]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020678]  [<ffffffff810e85cb>] ? __kmalloc_node+0xe8/0x146
> [    5.020682]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020687]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020694]  [<ffffffff811f24df>] ? find_unbound_irq+0x67/0xae
> [    5.020698]  [<ffffffff811f259e>] ? bind_virq_to_irq+0x78/0x126
> [    5.020703]  [<ffffffff8100e5b5>] ? xen_force_evtchn_callback+0x9/0xa
> [    5.020708]  [<ffffffff8100e8f6>] ? xen_timer_interrupt+0x0/0x18d
> [    5.020712]  [<ffffffff811f29f6>] ? bind_virq_to_irqhandler+0x19/0x4a
> [    5.020717]  [<ffffffff8100e884>] ? xen_setup_timer+0x55/0xaa
> [    5.020723]  [<ffffffff81509a5e>] ? xen_time_init+0xaf/0xb5
> [    5.020728]  [<ffffffff8150a491>] ? x86_late_time_init+0xa/0x10
> [    5.020732]  [<ffffffff81506c3d>] ? start_kernel+0x348/0x3e8
> [    5.020737]  [<ffffffff81508c7d>] ? xen_start_kernel+0x57c/0x581
> [    5.020740] Code: d8 c1 e8 13 83 e0 01 09 44 24 64 41 89 dc 44 23 25 28 01 4
> [    5.020793] RIP  [<ffffffff810badce>] __alloc_pages_nodemask+0x8f/0x5f5
> [    5.020798]  RSP <ffffffff81443c88>
> [    5.020800] CR2: 0000000000005a08
> [    5.020809] ---[ end trace a7919e7f17c0a725 ]---
> [    5.020812] Kernel panic - not syncing: Attempted to kill the idle task!
> [    5.020816] Pid: 0, comm: swapper Tainted: G      D    2.6.32-5-xen-amd64 #1
> [    5.020820] Call Trace:
> [    5.020824]  [<ffffffff8130a45a>] ? panic+0x86/0x141
> [    5.020828]  [<ffffffff8130a563>] ? printk+0x4e/0x5b
> [    5.020835]  [<ffffffff81051f7b>] ? do_exit+0x72/0x6b5
> [    5.020839]  [<ffffffff8100ec72>] ? check_events+0x12/0x20
> [    5.020845]  [<ffffffff8130d1bd>] ? oops_end+0xaf/0xb4
> [    5.020851]  [<ffffffff8103338c>] ? no_context+0x1e9/0x1f8
> [    5.020856]  [<ffffffff81033541>] ? __bad_area_nosemaphore+0x1a6/0x1ca
> [    5.020860]  [<ffffffff8130e541>] ? do_page_fault+0x2b/0x2fc
> [    5.020865]  [<ffffffff8130c695>] ? page_fault+0x25/0x30
> [    5.020870]  [<ffffffff810badce>] ? __alloc_pages_nodemask+0x8f/0x5f5
> [    5.020875]  [<ffffffff8100e5b5>] ? xen_force_evtchn_callback+0x9/0xa
> [    5.020880]  [<ffffffff8100ec72>] ? check_events+0x12/0x20
> [    5.020884]  [<ffffffff810e759d>] ? new_slab+0x42/0x1ca
> [    5.020889]  [<ffffffff810e7915>] ? __slab_alloc+0x1f0/0x39b
> [    5.020893]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020898]  [<ffffffff810e85cb>] ? __kmalloc_node+0xe8/0x146
> [    5.020902]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020907]  [<ffffffff812f87d8>] ? irq_to_desc_alloc_node+0x96/0x195
> [    5.020911]  [<ffffffff811f24df>] ? find_unbound_irq+0x67/0xae
> [    5.020916]  [<ffffffff811f259e>] ? bind_virq_to_irq+0x78/0x126
> [    5.020921]  [<ffffffff8100e5b5>] ? xen_force_evtchn_callback+0x9/0xa
> [    5.020926]  [<ffffffff8100e8f6>] ? xen_timer_interrupt+0x0/0x18d
> [    5.020930]  [<ffffffff811f29f6>] ? bind_virq_to_irqhandler+0x19/0x4a
> [    5.020935]  [<ffffffff8100e884>] ? xen_setup_timer+0x55/0xaa
> [    5.020939]  [<ffffffff81509a5e>] ? xen_time_init+0xaf/0xb5
> [    5.020944]  [<ffffffff8150a491>] ? x86_late_time_init+0xa/0x10
> [    5.020948]  [<ffffffff81506c3d>] ? start_kernel+0x348/0x3e8
> [    5.020953]  [<ffffffff81508c7d>] ? xen_start_kernel+0x57c/0x581
> (XEN) Domain 0 crashed: rebooting machine in 5 seconds.
> _______________________________________________
> Pkg-xen-devel mailing list
> Pkg-xen-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-xen-devel

-- 
Ian Campbell
Current Noise: Novembre - Argentic

Now my EMOTIONAL RESOURCES are heavily committed to 23% of the SMELTING
and REFINING industry of the state of NEVADA!!






More information about the Pkg-xen-devel mailing list