From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [GIT PULL] (xen) stable/for-jens-3.10 xenwatch: page allocation failure: order:7, mode:0x10c0d0 Date: Thu, 25 Apr 2013 11:04:59 +0100 Message-ID: <5178FFCB.5060305@citrix.com> References: <20130419144401.GA14700@phenom.dumpdata.com> <1094538380.20130424201637@eikelenboom.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1094538380.20130424201637@eikelenboom.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Sander Eikelenboom Cc: xen-devel@lists.xensource.com, roger.pau@citrix.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On 24/04/13 19:16, Sander Eikelenboom wrote: > > Hi Konrad / Roger, > > I tried this pull on top of latest Linus latest linux-3.9 tree, but > although it seems to boot and work fine at first, i seem to get trouble > after running for about a day. > Without this pull it runs fine for several days. > > Trying to start a new guest I ended up with the splat below. In the > output of xl-dmesg i seem to see more of these than before: > (XEN) [2013-04-24 14:37:40] grant_table.c:1250:d1 Expanding dom (1) > grant table from (9) to (10) frames > [18496.013743] xenwatch: page allocation failure: order:7, mode:0x10c0d0 I think this is the allocation of blkif->pending_reqs in xen_blkif_alloc() which is now enormous requiring a 512 KiB contiguous allocation. All the arrays in struct pending_req need to be turned into individual allocations so no individual allocation is larger than a page. David > [18496.031948] Pid: 54, comm: xenwatch Not tainted 3.9.0-rc8-20130424-jens+ #1 > [18496.049897] Call Trace: > [18496.067674] [] warn_alloc_failed+0xf1/0x140 > [18496.085453] [] ? trace_hardirqs_on+0xd/0x10 > [18496.102951] [] ? on_each_cpu_mask+0x94/0xd0 > [18496.120270] [] __alloc_pages_nodemask+0x69f/0x960 > [18496.137306] [] alloc_pages_current+0xb1/0x160 > [18496.154051] [] __get_free_pages+0x9/0x40 > [18496.170579] [] __kmalloc+0x134/0x160 > [18496.186921] [] xen_blkbk_probe+0x170/0x2f0 > [18496.202963] [] xenbus_dev_probe+0x77/0x130 > [18496.218714] [] ? __driver_attach+0xa0/0xa0 > [18496.234237] [] driver_probe_device+0x81/0x220 > [18496.249605] [] ? klist_next+0x8c/0x110 > [18496.264681] [] ? __driver_attach+0xa0/0xa0 > [18496.279500] [] __device_attach+0x4b/0x50 > [18496.294138] [] bus_for_each_drv+0x68/0x90 > [18496.308553] [] device_attach+0x89/0x90 > [18496.322694] [] bus_probe_device+0xa8/0xd0 > [18496.336640] [] device_add+0x650/0x720 > [18496.350209] [] ? device_pm_sleep_init+0x43/0x70 > [18496.363602] [] device_register+0x19/0x20 > [18496.376721] [] xenbus_probe_node+0x14b/0x160 > [18496.389611] [] ? bus_for_each_dev+0xa4/0xb0 > [18496.402298] [] xenbus_dev_changed+0x1bc/0x1c0 > [18496.414732] [] ? lock_release+0x117/0x260 > [18496.426904] [] backend_changed+0x16/0x20 > [18496.438835] [] xenwatch_thread+0x4e/0x150 > [18496.450579] [] ? wake_up_bit+0x40/0x40 > [18496.462048] [] ? xs_watch+0x60/0x60 > [18496.473286] [] kthread+0xd6/0xe0 > [18496.484235] [] ? __init_kthread_worker+0x70/0x70 > [18496.494987] [] ret_from_fork+0x7c/0xb0 > [18496.505560] [] ? __init_kthread_worker+0x70/0x70