aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/page_alloc.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 06:46:58 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 06:46:58 +0000
commit5449532321be025fd4cc33daaea727049d689b4b (patch)
tree63d33d5b33a4c9b1a3ab68281003dc0b9eff4751 /xen/common/page_alloc.c
parent2193ba37a3fcb7a8241b37b27275b2bcdbd4db14 (diff)
downloadxen-5449532321be025fd4cc33daaea727049d689b4b.tar.gz
xen-5449532321be025fd4cc33daaea727049d689b4b.tar.bz2
xen-5449532321be025fd4cc33daaea727049d689b4b.zip
tmem: printk too chatty when tmem enabled
Two gdprintk's that are rarely encountered with tmem disabled are frequent but meaningless when tmem is enabled. Printing these tens-to-hundreds of times per second (in certain circumstances even higher) slows down domain execution. Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Diffstat (limited to 'xen/common/page_alloc.c')
-rw-r--r--xen/common/page_alloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c
index 7d19bb24e7..c9392a6655 100644
--- a/xen/common/page_alloc.c
+++ b/xen/common/page_alloc.c
@@ -1049,8 +1049,10 @@ int assign_pages(
{
if ( unlikely((d->tot_pages + (1 << order)) > d->max_pages) )
{
- gdprintk(XENLOG_INFO, "Over-allocation for domain %u: %u > %u\n",
- d->domain_id, d->tot_pages + (1 << order), d->max_pages);
+ if ( !opt_tmem || order != 0 || d->tot_pages != d->max_pages )
+ gdprintk(XENLOG_INFO, "Over-allocation for domain %u: "
+ "%u > %u\n", d->domain_id,
+ d->tot_pages + (1 << order), d->max_pages);
goto fail;
}