Re: [Libhugetlbfs-devel] [PATCH v4] common check for gethugepagesize() return

2008-04-09 Thread David Gibson
On Wed, Apr 09, 2008 at 04:22:34PM -0500, Jon Tollefson wrote: > This patch moves the check of the return value from gethugepagesize() to a > common function, check_hugepagesize(), > rather then repeating it in each test. gethugepagesize() is updated to set > errno depending on the reason for th

Re: [Libhugetlbfs-devel] [RFC][PATCH v2] Add "[hostname:pid]" to output messages

2008-04-09 Thread David Gibson
On Wed, Apr 09, 2008 at 05:40:41PM -0500, Dean Luick wrote: > When running on multiple hosts with output coalesced, it is useful to > be able to isolate messages from individual processes. This patch adds > the string "[hostname:pid] " to all messages emitted by libhugetlbfs. > > This change uses

[Libhugetlbfs-devel] [RFC][PATCH v2] Add "[hostname:pid]" to output messages

2008-04-09 Thread Dean Luick
When running on multiple hosts with output coalesced, it is useful to be able to isolate messages from individual processes. This patch adds the string "[hostname:pid] " to all messages emitted by libhugetlbfs. This change uses a GNU extension of CPP that will eat a preceeding comma when using ##

[Libhugetlbfs-devel] (no subject)

2008-04-09 Thread 钟文辉
各位老总:您们好! 诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!   鼠不尽的幸福!鼠不尽的美满生活!愿:您们阖家欢乐!幸福安康! 我是(深圳市珊湖岛进出口有限公司)的负责人;可以提供:出口报关单,   核销单等等一系列手续;代理:出口报关,商检,境内外运输..等等;还可 以代办:出口欧盟许可证,欧盟产地证;并且还有(广州国际贸易交易会)的摊

[Libhugetlbfs-devel] (no subject)

2008-04-09 Thread 钟文辉
各位老总:您们好! 诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!   鼠不尽的幸福!鼠不尽的美满生活!愿:您们阖家欢乐!幸福安康! 我是(深圳市珊湖岛进出口有限公司)的负责人;可以提供:出口报关单,   核销单等等一系列手续;代理:出口报关,商检,境内外运输..等等;还可 以代办:出口欧盟许可证,欧盟产地证;并且还有(广州国际贸易交易会)的摊

[Libhugetlbfs-devel] [PATCH v4] common check for gethugepagesize() return

2008-04-09 Thread Jon Tollefson
This patch moves the check of the return value from gethugepagesize() to a common function, check_hugepagesize(), rather then repeating it in each test. gethugepagesize() is updated to set errno depending on the reason for the failure. Changes since v3 -incorporated Mel Gorman's functio

Re: [Libhugetlbfs-devel] [PATCH v2] common check for hugepagesize() return

2008-04-09 Thread Mel Gorman
On (02/04/08 11:05), David Gibson didst pronounce: > > > > +/* XXX: Copied from hugeutils.c. */ > > +long gethugepagesize(void) > > +{ > > + long hpage_kb; > > + long max_hpage_kb = LONG_MAX / 1024; > > + > > + if (hpage_size) { > > + errno = hpage_size_errno; > > + ret