diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-11-23 06:46:58 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-11-23 06:46:58 +0000 |
commit | 5449532321be025fd4cc33daaea727049d689b4b (patch) | |
tree | 63d33d5b33a4c9b1a3ab68281003dc0b9eff4751 /xen/common/memory.c | |
parent | 2193ba37a3fcb7a8241b37b27275b2bcdbd4db14 (diff) | |
download | xen-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/memory.c')
-rw-r--r-- | xen/common/memory.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xen/common/memory.c b/xen/common/memory.c index 6627c626f2..11ccdf2fcd 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -19,6 +19,7 @@ #include <xen/guest_access.h> #include <xen/hypercall.h> #include <xen/errno.h> +#include <xen/tmem.h> #include <asm/current.h> #include <asm/hardirq.h> #include <xen/numa.h> @@ -120,10 +121,11 @@ static void populate_physmap(struct memop_args *a) page = alloc_domheap_pages(d, a->extent_order, a->memflags); if ( unlikely(page == NULL) ) { - gdprintk(XENLOG_INFO, "Could not allocate order=%d extent: " - "id=%d memflags=%x (%ld of %d)\n", - a->extent_order, d->domain_id, a->memflags, - i, a->nr_extents); + if ( !opt_tmem || (a->extent_order != 0) ) + gdprintk(XENLOG_INFO, "Could not allocate order=%d extent:" + " id=%d memflags=%x (%ld of %d)\n", + a->extent_order, d->domain_id, a->memflags, + i, a->nr_extents); goto out; } |