From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: pvops xen-stable-2.6.32.x, 7 kmemleaks just after boot Date: Tue, 14 Sep 2010 15:08:00 -0700 Message-ID: <4C8FF240.9000409@goop.org> References: <1369504016.20100914153326@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369504016.20100914153326@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Sander Eikelenboom Cc: "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On 09/14/2010 06:33 AM, Sander Eikelenboom wrote: > Hi Jeremy/Konrad, > > I Don't know if these kmemleaks are bogus, but they are reported right after boot, no domU's started (with memleak detector enabled). They look fairly minor. The first is some ACPI value, which is presumably not being used in the pvops case (is this dom0 or domU?). The others are just per-interrupt data we're not using, which probably shouldn't be allocated in the first place. How much space is actually leaked? I'd be surprised if its more than a page or two. J > Running: > xen-unstable 4.1 xen_changeset: Fri Sep 10 19:06:33 2010 +0100 22132:3985fea87987 > pvops xen-stable-2.6.32.x kernel last commit b297cdac0373625d3cd0e6f2b393570dcf2edba6 > > -- > Sander > > > > > xentest:/sys/kernel/debug# cat kmemleak > unreferenced object 0xffff88002ff6f7e0 (size 72): > comm "swapper", pid 1, jiffies 4294667524 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 0e 01 01 00 00 00 00 00 ................ > 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] kmem_cache_alloc+0x136/0x185 > [] acpi_ut_allocate_object_desc_dbg+0x4c/0x88 > [] acpi_ut_create_internal_object_dbg+0x22/0x88 > [] acpi_ex_read_data_from_field+0xf2/0x157 > [] acpi_ex_resolve_node_to_value+0x18f/0x220 > [] acpi_ex_resolve_to_value+0x205/0x216 > [] acpi_ds_evaluate_name_path+0x7a/0xff > [] acpi_ds_exec_end_op+0x94/0x3d9 > [] acpi_ps_parse_loop+0x80a/0x98b > [] acpi_ps_parse_aml+0x9a/0x2d9 > [] acpi_ps_execute_method+0x1dd/0x2ab > [] acpi_ns_evaluate+0xee/0x1b6 > [] acpi_ns_exec_module_code_list+0x102/0x17e > [] acpi_initialize_objects+0x1f/0x59 > [] acpi_init+0x102/0x2cc > unreferenced object 0xffff88002f040840 (size 32): > comm "swapper", pid 1, jiffies 4294668379 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] xen_allocate_pirq+0x99/0x185 > [] xen_register_pirq+0x3e/0x98 > [] xen_register_gsi+0x42/0xb3 > [] acpi_register_gsi+0x22/0x5f > [] acpi_pci_irq_enable+0x11f/0x212 > [] pcibios_enable_device+0x29/0x2d > [] do_pci_enable_device+0x28/0x40 > [] __pci_enable_device_flags+0x55/0x70 > [] pci_enable_device+0xe/0x10 > [] pci_enable_bridges+0x2a/0x4e > unreferenced object 0xffff88002f040860 (size 32): > comm "swapper", pid 1, jiffies 4294668381 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] xen_allocate_pirq+0x99/0x185 > [] xen_register_pirq+0x3e/0x98 > [] xen_register_gsi+0x42/0xb3 > [] acpi_register_gsi+0x22/0x5f > [] acpi_pci_irq_enable+0x11f/0x212 > [] pcibios_enable_device+0x29/0x2d > [] do_pci_enable_device+0x28/0x40 > [] __pci_enable_device_flags+0x55/0x70 > [] pci_enable_device+0xe/0x10 > [] pci_enable_bridges+0x2a/0x4e > unreferenced object 0xffff88002c226fe0 (size 32): > comm "swapper", pid 1, jiffies 4294669476 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] xen_allocate_pirq+0x99/0x185 > [] xen_register_pirq+0x3e/0x98 > [] xen_register_gsi+0x42/0xb3 > [] acpi_register_gsi+0x22/0x5f > [] acpi_pci_irq_enable+0x11f/0x212 > [] pcibios_enable_device+0x29/0x2d > [] do_pci_enable_device+0x28/0x40 > [] __pci_enable_device_flags+0x55/0x70 > [] pci_enable_device+0xe/0x10 > [] pcim_enable_device+0x7a/0x9a > unreferenced object 0xffff88002fee71c0 (size 32): > comm "swapper", pid 1, jiffies 4294669610 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] xen_allocate_pirq+0x99/0x185 > [] xen_register_pirq+0x3e/0x98 > [] xen_register_gsi+0x42/0xb3 > [] acpi_register_gsi+0x22/0x5f > [] acpi_pci_irq_enable+0x11f/0x212 > [] pcibios_enable_device+0x29/0x2d > [] do_pci_enable_device+0x28/0x40 > [] __pci_enable_device_flags+0x55/0x70 > [] pci_enable_device_mem+0xe/0x10 > [] e1000_probe+0x39/0xbcd > unreferenced object 0xffff88002fee7100 (size 32): > comm "swapper", pid 1, jiffies 4294669610 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] find_unbound_irq+0x68/0xa1 > [] xen_create_msi_irq+0xba/0x19d > [] xen_setup_msi_irqs+0x39/0x87 > [] xen_pci_setup_msi_irqs+0x34/0x1be > [] arch_setup_msi_irqs+0x38/0x138 > [] pci_enable_msi_block+0x26c/0x306 > [] e1000e_set_interrupt_capability+0xd2/0x114 > [] e1000_probe+0x331/0xbcd > [] local_pci_probe+0x12/0x16 > [] pci_device_probe+0x5c/0x86 > unreferenced object 0xffff88002ff2da60 (size 32): > comm "swapper", pid 1, jiffies 4294669729 > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace: > [] kmemleak_alloc+0x21/0x44 > [] __kmalloc+0x1c1/0x1ea > [] kzalloc_node+0xf/0x11 > [] get_one_free_irq_cfg+0x1a/0x45 > [] arch_init_chip_data+0x1a/0x39 > [] irq_to_desc_alloc_node+0x18d/0x1b7 > [] xen_allocate_pirq+0x99/0x185 > [] xen_register_pirq+0x3e/0x98 > [] xen_register_gsi+0x42/0xb3 > [] acpi_register_gsi+0x22/0x5f > [] acpi_pci_irq_enable+0x11f/0x212 > [] pcibios_enable_device+0x29/0x2d > [] do_pci_enable_device+0x28/0x40 > [] __pci_enable_device_flags+0x55/0x70 > [] pci_enable_device+0xe/0x10 > [] i801_probe+0x98/0x2b4 >