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. > > Signed-off-by: Caspar Zhang <[email protected]> > --- > .../kernel/mem/hugetlb/hugeshmget/hugeshmget03.c | 14 ++++++++++++-- > 1 files changed, 12 insertions(+), 2 deletions(-) >
Wanlong, thanks for review. All: FYI, all the other patches except this one (10/11) pushed after successful testing for enough times. Caspar ------------------------------------------------------------------------------ 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
