Hi,
- Original Message -
> From: "Zhouping Liu"
> To: "LTP list"
> Sent: Saturday, July 7, 2012 11:14:39 PM
> Subject: [LTP] [PATCH] safe_macros: add SAFE_STRTOUL
>
> commit 586992b33b tried to set ULONG_MAX as SAFE_STRTOL upper bound,
> but this would cause the new issue:
>
> [root@
Hi,
> From: "Zhouping Liu"
> To: "LTP list" sourceforge.net>
> Sent: Saturday, July 7, 2012 11:14:38 PM
> Subject: [LTP] [PATCH] hugetlb: add a new function get_available_hugepages
>
> on some systems with small RAM, there aren't enough memory
> to set as specific hugepages, such as 128 hugepage
commit 586992b33b tried to set ULONG_MAX as SAFE_STRTOL upper bound,
but this would cause the new issue:
[root@localhost hugeshmat]# ./hugeshmat01
hugeshmat010 TINFO : set nr_hugepages to 128
hugeshmat011 TBROK : converted value out of range (0 - -1) at mem.c:840
hugeshmat012
on some systems with small RAM, there aren't enough memory
to set as specific hugepages, such as 128 hugepages, it will
fail like this:
[root@localhost hugemmap]# ./hugemmap01
hugemmap010 TINFO : set nr_hugepages to 128
hugemmap011 TBROK : nr_hugepages = 55, but expect 128
hugemma