On 03/13/2012 12:56 PM, Caspar Zhang wrote: > > hugeshmget03 often returns ENOMEM, so that causes test fails. This patch > fixes the problem by making the following changes: > > 1) reduce shm_size to minimum (1 hugepage); > 2) reduce shmmni to 1/2 * nr_hugepages. > > so that when all shmids taken, memory allocated ~= > > 1/2 * nr_hugepages * hugepagesize < free memory > > Which means there will be no ENOMEM occurs, but ENOSPC as expected.
Hi Caspar: IMO, this looks good and test OK . So Reviewed-by: Wanlong Gao <[email protected]> > > Signed-off-by: Caspar Zhang <[email protected]> > --- > .../kernel/mem/hugetlb/hugeshmget/hugeshmget03.c | 14 ++++++++++++-- > 1 files changed, 12 insertions(+), 2 deletions(-) > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
