From: Dan Magenheimer Subject: [PATCH] less verbose tmem, was: tmem_relinquish_page: failing order= Date: Wed, 6 Jan 2010 09:13:35 -0800 (PST) Message-ID: <9e2970e4-ecac-4f02-880e-83859f69b6ca@default> References: <4B44C1AD0200007800028797@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="__126279802083840864abhmt005.oracle.com" Return-path: In-Reply-To: <4B44C1AD0200007800028797@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --__126279802083840864abhmt005.oracle.com Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Jan Beulich [mailto:JBeulich@novell.com] > Subject: tmem_relinquish_page: failing order=3D=20 > Dan, >=20 > having taken a fresh snapshot of xen-unstable today, I start=20 > 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=3D0. 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=3Dy 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 diff -r 4feec90815a0 xen/common/tmem.c --- a/xen/common/tmem.c=09Tue Jan 05 08:40:18 2010 +0000 +++ b/xen/common/tmem.c=09Wed Jan 06 10:08:01 2010 -0700 @@ -2483,7 +2483,9 @@ EXPORT void *tmem_relinquish_pages(unsig relinq_attempts++; if ( order > 0 ) { +#ifndef NDEBUG printk("tmem_relinquish_page: failing order=3D%d\n", order); +#endif return NULL; } =20 --__126279802083840864abhmt005.oracle.com Content-Type: application/octet-stream; name="tmem-norelinq-printk.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tmem-norelinq-printk.patch" ZGlmZiAtciA0ZmVlYzkwODE1YTAgeGVuL2NvbW1vbi90bWVtLmMKLS0tIGEveGVuL2NvbW1vbi90 bWVtLmMJVHVlIEphbiAwNSAwODo0MDoxOCAyMDEwICswMDAwCisrKyBiL3hlbi9jb21tb24vdG1l bS5jCVdlZCBKYW4gMDYgMTA6MDg6MDEgMjAxMCAtMDcwMApAQCAtMjQ4Myw3ICsyNDgzLDkgQEAg RVhQT1JUIHZvaWQgKnRtZW1fcmVsaW5xdWlzaF9wYWdlcyh1bnNpZwogICAgIHJlbGlucV9hdHRl bXB0cysrOwogICAgIGlmICggb3JkZXIgPiAwICkKICAgICB7CisjaWZuZGVmIE5ERUJVRwogICAg ICAgICBwcmludGsoInRtZW1fcmVsaW5xdWlzaF9wYWdlOiBmYWlsaW5nIG9yZGVyPSVkXG4iLCBv cmRlcik7CisjZW5kaWYKICAgICAgICAgcmV0dXJuIE5VTEw7CiAgICAgfQogCg== --__126279802083840864abhmt005.oracle.com Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --__126279802083840864abhmt005.oracle.com--