tmem_relinquish_page: failing order=<n>
Dan,
having taken a fresh snapshot of xen-unstable today, I start seeing quite a number of these messages during late Xen and early Dom0 boot. They don't seem to be very meaningful (according to the stack traces I created for some of them to understand where they originate), hence I wonder whether they couldn't get silenced.
Jan
PATCH 1/1 less verbose tmem, was: tmem_relinquish_page: failing order=<n>
Quoted 11 lines
-----Original Message-----
From: Jan Beulich [mailto:[email protected]]
Subject:tmem_relinquish_page: failing order=<n>
Dan,having taken a fresh snapshot of xen-unstable today, I start seeing quite
a number of these messages during late Xen and early Dom0 boot. They don't seem to be very meaningful (according to the stack traces I created for some of them to understand where they originate), hence I wonder whether they couldn't get silenced.
Hi Jan --
The message is relevant if any code calling alloc_heap_pages() for order>0 isn't able to fallback to order=0. All usages today in Xen can fallback, but future calls may not, so I'd prefer to keep the printk there at least in xen-unstable. BUT there's no reason for the message to be logged in a released Xen so here's a patch to ifndef NDEBUG the printk.
NOTE TO KEIR: Reminder that cset 19939 causes debug=y to be the default build so you'll need to turn that off before the final 4.0.0 bits (and/or turn it back on after xen-unstable forks for 4.0.0).
Signed-off by: Dan Magenheimer <[email protected]>
xen/common/tmem.c +2 -0
@@ -2483,7 +2483,9 @@ EXPORT void *tmem_relinquish_pages(unsig relinq_attempts++;if ( order >0 ) { +#ifndef NDEBUG printk ("tmem_relinquish_page: failing order=%d\n" , order); +#endif return NULL ; }
xen/common/tmem.c +2 -0
@@ -2483,7 +2483,9 @@ EXPORT void *tmem_relinquish_pages(unsig relinq_attempts++;if ( order >0 ) { +#ifndef NDEBUG printk ("tmem_relinquish_page: failing order=%d\n" , order); +#endif return NULL ; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Re: [PATCH] less verbose tmem, was: tmem_relinquish_page: failing order=<n>
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 06.01.10 18:13 >>>
The message is relevant if any code calling
alloc_heap_pages()for order>0 isn't able to fallback to order=0. All usages today in Xen can fallback, but future calls may not, so I'd prefer to keep the printk there at least in xen-unstable. BUT there's
What makes you think so? Iirc there are several xmalloc()-s of more than a page in size (which ultimately will call alloc_heap_pages()), and those usually don't have a fallback.
Quoted 2 lines
no reason for the message to be logged in a released Xen so here's a patch to ifndef NDEBUG the printk.
Even in a debug build this may be really annoying: On NUMA machines, the dma_bitsize mechanism (to avoid exhausting DMA memory) can cause close to 2000 of these messages when allocating Dom0's initial memory (in the absence of a severely restricting dom0_mem, and with node 0 spanning 4G or more). This makes booting unacceptably slow, especially when using a graphical console mode.
Jan
RE: [PATCH] less verbose tmem, was: tmem_relinquish_page: failing order=<n>
Quoted 5 lines
From: Jan Beulich [mailto:[email protected]]
Subject: Re: [PATCH] less verbose tmem, was:tmem_relinquish_page:
failing order=<n>Quoted 1 line
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 06.01.10 18:13 >>>
Quoted 8 lines
Quoted 4 lines
The message is relevant if any code calling
alloc_heap_pages()for order>0 isn't able to fallback to order=0. All usages today in Xen can fallback, but future calls may not, so I'd prefer to keep the printk there at least in xen-unstable. BUT there'sWhat makes you think so? Iirc there are several xmalloc()-s of more than a page in size (which ultimately will call
alloc_heap_pages()), and those usually don't have a fallback.
I don't know this for a fact, but had discussed it in xen-devel
some time ago (maybe over a year ago). Since tmem doesn't do
anything until at least one tmem-modified guest uses it, the only issue is if launching a subsequent domain requires an allocation of order>0. Since Xen doesn't have any kind of memory defragmenter, any such requirement is perilous at best.
Quoted 9 lines
Quoted 2 lines
no reason for the message to be logged in a released Xen so here's a patch to ifndef NDEBUG the printk.
Even in a debug build this may be really annoying: On NUMA machines, the
dma_bitsizemechanism (to avoid exhausting DMA memory) can cause close to 2000 of these messages when allocating Dom0's initial memory (in the absence of a severely restrictingdom0_mem, and with node 0 spanning 4G or more). This makes booting unacceptably slow, especially when using a graphical console mode.
OK, I can take the patch one step further by only doing the printk if tmem has been used at least once. Let me take a look at that.
Dan
RE: [PATCH] less verbose tmem, was: tmem_relinquish_page: failing order=<n>
In reply to Jan Beulich(apologies if this is a repeat; having email problems)
Quoted 5 lines
From: Jan Beulich [mailto:[email protected]]
Subject: Re: [PATCH] less verbose tmem, was:tmem_relinquish_page:
failing order=<n>Quoted 1 line
Quoted 1 line
Quoted 1 line
Dan Magenheimer <[email protected]> 06.01.10 18:13 >>>
Quoted 8 lines
Quoted 4 lines
The message is relevant if any code calling
alloc_heap_pages()for order>0 isn't able to fallback to order=0. All usages today in Xen can fallback, but future calls may not, so I'd prefer to keep the printk there at least in xen-unstable. BUT there'sWhat makes you think so? Iirc there are several xmalloc()-s of more than a page in size (which ultimately will call
alloc_heap_pages()), and those usually don't have a fallback.
I don't know this for a fact, but had discussed it in xen-devel
some time ago (maybe over a year ago). Since tmem doesn't do
anything until at least one tmem-modified guest uses it, the only issue is if launching a subsequent domain requires an allocation of order>0. Since Xen doesn't have any kind of memory defragmenter, any such requirement is perilous at best.
Quoted 9 lines
Quoted 2 lines
no reason for the message to be logged in a released Xen so here's a patch to ifndef NDEBUG the printk.
Even in a debug build this may be really annoying: On NUMA machines, the
dma_bitsizemechanism (to avoid exhausting DMA memory) can cause close to 2000 of these messages when allocating Dom0's initial memory (in the absence of a severely restrictingdom0_mem, and with node 0 spanning 4G or more). This makes booting unacceptably slow, especially when using a graphical console mode.
OK, I can take the patch one step further by only doing the printk if tmem has been used at least once. Let me take a look at that.
Dan