* [LTP] about "hugetlbshmget03"
@ 2010-02-06 15:34 shenghui
2010-02-08 5:55 ` Rishikesh
0 siblings, 1 reply; 10+ messages in thread
From: shenghui @ 2010-02-06 15:34 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]
Hi all,
I want to know how to run hugetlbshmget03? Does it need some
arguments?
For I have run it several times, always got error "NOMEM" for cannot get
hugetlb
page. But "cat /proc/meminfo" shows that free hugetlb pages are enough for
its
request.
Does anyone know how to handle this problem?
--
Thanks and Best Regards,
shenghui
[-- Attachment #1.2: Type: text/html, Size: 426 bytes --]
[-- Attachment #2: Type: text/plain, Size: 408 bytes --]
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-06 15:34 [LTP] about "hugetlbshmget03" shenghui
@ 2010-02-08 5:55 ` Rishikesh
2010-02-08 7:02 ` shenghui
0 siblings, 1 reply; 10+ messages in thread
From: Rishikesh @ 2010-02-08 5:55 UTC (permalink / raw)
To: shenghui; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1282 bytes --]
On 02/06/2010 09:04 PM, shenghui wrote:
> Hi all,
>
> I want to know how to run hugetlbshmget03? Does it need some
> arguments?
> For I have run it several times, always got error "NOMEM" for cannot
> get hugetlb
> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough
> for its
> request.
> Does anyone know how to handle this problem?
Hi Shenghui,
Have you run this testcase after setting up nr_hugepages ? You need to
set the pages accordingly and then you need to run the testcase.
e.g:
echo 10 > /proc/sys/vm/nr_hugepages
Please post your result if you still finding issue.
Thanks
Rishi
>
> --
>
>
> Thanks and Best Regards,
> shenghui
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
>
>
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
[-- Attachment #1.2: Type: text/html, Size: 2259 bytes --]
[-- Attachment #2: Type: text/plain, Size: 408 bytes --]
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 5:55 ` Rishikesh
@ 2010-02-08 7:02 ` shenghui
2010-02-08 7:29 ` Rishikesh
0 siblings, 1 reply; 10+ messages in thread
From: shenghui @ 2010-02-08 7:02 UTC (permalink / raw)
To: Rishikesh; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 4003 bytes --]
2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
> On 02/06/2010 09:04 PM, shenghui wrote:
>
> Hi all,
>
> I want to know how to run hugetlbshmget03? Does it need some
> arguments?
> For I have run it several times, always got error "NOMEM" for cannot get
> hugetlb
> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough for
> its
> request.
> Does anyone know how to handle this problem?
>
> Hi Shenghui,
>
> Have you run this testcase after setting up nr_hugepages ? You need to set
> the pages accordingly and then you need to run the testcase.
>
> e.g:
>
> echo 10 > /proc/sys/vm/nr_hugepages
>
> Please post your result if you still finding issue.
>
> Thanks
> Rishi
>
>
> --
>
>
> Thanks and Best Regards,
> shenghui
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
>
>
> _______________________________________________
> Ltp-list mailing listLtp-list@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ltp-list
>
>
>
Hi Rishi,
Please refer to the following for my error info. And will you please
try it on your workstation and send me
your result?
Thanks!
===============================================================================
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
ls
hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
echo 10 > /proc/sys/vm/nr_hugepages
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
cat /proc/meminfo
MemTotal: 4048440 kB
MemFree: 1576656 kB
Buffers: 122652 kB
Cached: 1487772 kB
SwapCached: 0 kB
Active: 1225860 kB
Inactive: 1043268 kB
Active(anon): 684228 kB
Inactive(anon): 16 kB
Active(file): 541632 kB
Inactive(file): 1043252 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 3211696 kB
HighFree: 1044060 kB
LowTotal: 836744 kB
LowFree: 532596 kB
SwapTotal: 3903752 kB
SwapFree: 3903752 kB
Dirty: 204 kB
Writeback: 0 kB
AnonPages: 658692 kB
Mapped: 239928 kB
Slab: 109460 kB
SReclaimable: 93676 kB
SUnreclaim: 15784 kB
PageTables: 8332 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 5917732 kB
Committed_AS: 1389392 kB
VmallocTotal: 122880 kB
VmallocUsed: 44644 kB
VmallocChunk: 75956 kB
HugePages_Total: 10
HugePages_Free: 10
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 8184 kB
DirectMap2M: 903168 kB
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
./hugeshmget03
hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
echo 32 > /proc/sys/vm/nr_hugepages
root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
./hugeshmget03
hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
--
Thanks and Best Regards,
shenghui
[-- Attachment #1.2: Type: text/html, Size: 5171 bytes --]
[-- Attachment #2: Type: text/plain, Size: 408 bytes --]
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 7:02 ` shenghui
@ 2010-02-08 7:29 ` Rishikesh
2010-02-08 8:55 ` shenghui
2010-02-15 3:37 ` shenghui
0 siblings, 2 replies; 10+ messages in thread
From: Rishikesh @ 2010-02-08 7:29 UTC (permalink / raw)
To: shenghui; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 4662 bytes --]
On 02/08/2010 12:32 PM, shenghui wrote:
>
>
> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com
> <mailto:risrajak@linux.vnet.ibm.com>>
>
> On 02/06/2010 09:04 PM, shenghui wrote:
>> Hi all,
>>
>> I want to know how to run hugetlbshmget03? Does it need
>> some arguments?
>> For I have run it several times, always got error "NOMEM" for
>> cannot get hugetlb
>> page. But "cat /proc/meminfo" shows that free hugetlb pages are
>> enough for its
>> request.
>> Does anyone know how to handle this problem?
> Hi Shenghui,
>
> Have you run this testcase after setting up nr_hugepages ? You
> need to set the pages accordingly and then you need to run the
> testcase.
>
> e.g:
>
> echo 10 > /proc/sys/vm/nr_hugepages
>
> Please post your result if you still finding issue.
>
> Thanks
> Rishi
>
>>
>> --
>>
>>
>> Thanks and Best Regards,
>> shenghui
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>>
>>
>> _______________________________________________
>> Ltp-list mailing list
>> Ltp-list@lists.sourceforge.net <mailto:Ltp-list@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>
>
>
> Hi Rishi,
>
> Please refer to the following for my error info. And will you
> please try it on your workstation and send me
> your result?
Hi Shengui,
Yes i am also facing this different issue on my TP. Let me investigate
more on that. Meanwhile if you know the solution can you please post
your thought on this problem ?
Thanks
Rishi
> Thanks!
>
> ===============================================================================
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ls
> hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
> hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 10 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> cat /proc/meminfo
> MemTotal: 4048440 kB
> MemFree: 1576656 kB
> Buffers: 122652 kB
> Cached: 1487772 kB
> SwapCached: 0 kB
> Active: 1225860 kB
> Inactive: 1043268 kB
> Active(anon): 684228 kB
> Inactive(anon): 16 kB
> Active(file): 541632 kB
> Inactive(file): 1043252 kB
> Unevictable: 0 kB
> Mlocked: 0 kB
> HighTotal: 3211696 kB
> HighFree: 1044060 kB
> LowTotal: 836744 kB
> LowFree: 532596 kB
> SwapTotal: 3903752 kB
> SwapFree: 3903752 kB
> Dirty: 204 kB
> Writeback: 0 kB
> AnonPages: 658692 kB
> Mapped: 239928 kB
> Slab: 109460 kB
> SReclaimable: 93676 kB
> SUnreclaim: 15784 kB
> PageTables: 8332 kB
> NFS_Unstable: 0 kB
> Bounce: 0 kB
> WritebackTmp: 0 kB
> CommitLimit: 5917732 kB
> Committed_AS: 1389392 kB
> VmallocTotal: 122880 kB
> VmallocUsed: 44644 kB
> VmallocChunk: 75956 kB
> HugePages_Total: 10
> HugePages_Free: 10
> HugePages_Rsvd: 0
> HugePages_Surp: 0
> Hugepagesize: 2048 kB
> DirectMap4k: 8184 kB
> DirectMap2M: 903168 kB
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 32 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
>
> --
>
>
> Thanks and Best Regards,
> shenghui
[-- Attachment #1.2: Type: text/html, Size: 7986 bytes --]
[-- Attachment #2: Type: text/plain, Size: 408 bytes --]
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 7:29 ` Rishikesh
@ 2010-02-08 8:55 ` shenghui
2010-02-08 9:56 ` Garrett Cooper
2010-02-15 3:37 ` shenghui
1 sibling, 1 reply; 10+ messages in thread
From: shenghui @ 2010-02-08 8:55 UTC (permalink / raw)
To: Rishikesh; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 4583 bytes --]
2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
> On 02/08/2010 12:32 PM, shenghui wrote:
>
>
>
> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>
>> On 02/06/2010 09:04 PM, shenghui wrote:
>>
>> Hi all,
>>
>> I want to know how to run hugetlbshmget03? Does it need some
>> arguments?
>> For I have run it several times, always got error "NOMEM" for cannot get
>> hugetlb
>> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough for
>> its
>> request.
>> Does anyone know how to handle this problem?
>>
>> Hi Shenghui,
>>
>> Have you run this testcase after setting up nr_hugepages ? You need to set
>> the pages accordingly and then you need to run the testcase.
>>
>> e.g:
>>
>> echo 10 > /proc/sys/vm/nr_hugepages
>>
>> Please post your result if you still finding issue.
>>
>> Thanks
>> Rishi
>>
>>
>> --
>>
>>
>> Thanks and Best Regards,
>> shenghui
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>>
>>
>> _______________________________________________
>> Ltp-list mailing listLtp-list@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ltp-list
>>
>>
>>
> Hi Rishi,
>
> Please refer to the following for my error info. And will you please
> try it on your workstation and send me
> your result?
>
> Hi Shengui,
>
> Yes i am also facing this different issue on my TP. Let me investigate more
> on that. Meanwhile if you know the solution can you please post your thought
> on this problem ?
>
> Thanks
> Rishi
>
>
>
> Thanks!
>
>
> ===============================================================================
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ls
> hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
> hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 10 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> cat /proc/meminfo
> MemTotal: 4048440 kB
> MemFree: 1576656 kB
> Buffers: 122652 kB
> Cached: 1487772 kB
> SwapCached: 0 kB
> Active: 1225860 kB
> Inactive: 1043268 kB
> Active(anon): 684228 kB
> Inactive(anon): 16 kB
> Active(file): 541632 kB
> Inactive(file): 1043252 kB
> Unevictable: 0 kB
> Mlocked: 0 kB
> HighTotal: 3211696 kB
> HighFree: 1044060 kB
> LowTotal: 836744 kB
> LowFree: 532596 kB
> SwapTotal: 3903752 kB
> SwapFree: 3903752 kB
> Dirty: 204 kB
> Writeback: 0 kB
> AnonPages: 658692 kB
> Mapped: 239928 kB
> Slab: 109460 kB
> SReclaimable: 93676 kB
> SUnreclaim: 15784 kB
> PageTables: 8332 kB
> NFS_Unstable: 0 kB
> Bounce: 0 kB
> WritebackTmp: 0 kB
> CommitLimit: 5917732 kB
> Committed_AS: 1389392 kB
> VmallocTotal: 122880 kB
> VmallocUsed: 44644 kB
> VmallocChunk: 75956 kB
> HugePages_Total: 10
> HugePages_Free: 10
> HugePages_Rsvd: 0
> HugePages_Surp: 0
> Hugepagesize: 2048 kB
> DirectMap4k: 8184 kB
> DirectMap2M: 903168 kB
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 32 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
>
> --
>
>
> Thanks and Best Regards,
> shenghui
>
>
>
Sure. : )
--
Thanks and Best Regards,
shenghui
[-- Attachment #1.2: Type: text/html, Size: 6339 bytes --]
[-- Attachment #2: Type: text/plain, Size: 408 bytes --]
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 8:55 ` shenghui
@ 2010-02-08 9:56 ` Garrett Cooper
2010-02-08 10:01 ` Garrett Cooper
0 siblings, 1 reply; 10+ messages in thread
From: Garrett Cooper @ 2010-02-08 9:56 UTC (permalink / raw)
To: shenghui; +Cc: ltp-list
On Mon, Feb 8, 2010 at 12:55 AM, shenghui <crosslonelyover@gmail.com> wrote:
>
>
> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>>
>> On 02/08/2010 12:32 PM, shenghui wrote:
>>
>> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>>>
>>> On 02/06/2010 09:04 PM, shenghui wrote:
>>>
>>> Hi all,
>>>
>>> I want to know how to run hugetlbshmget03? Does it need some
>>> arguments?
>>> For I have run it several times, always got error "NOMEM" for cannot get
>>> hugetlb
>>> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough
>>> for its
>>> request.
>>> Does anyone know how to handle this problem?
>>>
>>> Hi Shenghui,
>>>
>>> Have you run this testcase after setting up nr_hugepages ? You need to
>>> set the pages accordingly and then you need to run the testcase.
>>>
>>> e.g:
>>>
>>> echo 10 > /proc/sys/vm/nr_hugepages
>>>
>>> Please post your result if you still finding issue.
>>>
>>> Thanks
>>> Rishi
>>>
>>>
>>> --
>>>
>>>
>>> Thanks and Best Regards,
>>> shenghui
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Planet: dedicated and managed hosting, cloud storage, colocation
>>> Stay online with enterprise data centers and the best network in the
>>> business
>>> Choose flexible plans and management services without long-term contracts
>>> Personal 24x7 support from experience hosting pros just a phone call
>>> away.
>>> http://p.sf.net/sfu/theplanet-com
>>>
>>> _______________________________________________
>>> Ltp-list mailing list
>>> Ltp-list@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>>
>>
>> Hi Rishi,
>>
>> Please refer to the following for my error info. And will you
>> please try it on your workstation and send me
>> your result?
>>
>> Hi Shengui,
>>
>> Yes i am also facing this different issue on my TP. Let me investigate
>> more on that. Meanwhile if you know the solution can you please post your
>> thought on this problem ?
>>
>> Thanks
>> Rishi
>>
>>
>> Thanks!
>>
>>
>> ===============================================================================
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> ls
>> hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
>> hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> echo 10 > /proc/sys/vm/nr_hugepages
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> cat /proc/meminfo
>> MemTotal: 4048440 kB
>> MemFree: 1576656 kB
>> Buffers: 122652 kB
>> Cached: 1487772 kB
>> SwapCached: 0 kB
>> Active: 1225860 kB
>> Inactive: 1043268 kB
>> Active(anon): 684228 kB
>> Inactive(anon): 16 kB
>> Active(file): 541632 kB
>> Inactive(file): 1043252 kB
>> Unevictable: 0 kB
>> Mlocked: 0 kB
>> HighTotal: 3211696 kB
>> HighFree: 1044060 kB
>> LowTotal: 836744 kB
>> LowFree: 532596 kB
>> SwapTotal: 3903752 kB
>> SwapFree: 3903752 kB
>> Dirty: 204 kB
>> Writeback: 0 kB
>> AnonPages: 658692 kB
>> Mapped: 239928 kB
>> Slab: 109460 kB
>> SReclaimable: 93676 kB
>> SUnreclaim: 15784 kB
>> PageTables: 8332 kB
>> NFS_Unstable: 0 kB
>> Bounce: 0 kB
>> WritebackTmp: 0 kB
>> CommitLimit: 5917732 kB
>> Committed_AS: 1389392 kB
>> VmallocTotal: 122880 kB
>> VmallocUsed: 44644 kB
>> VmallocChunk: 75956 kB
>> HugePages_Total: 10
>> HugePages_Free: 10
>> HugePages_Rsvd: 0
>> HugePages_Surp: 0
>> Hugepagesize: 2048 kB
>> DirectMap4k: 8184 kB
>> DirectMap2M: 903168 kB
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> ./hugeshmget03
>> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> echo 32 > /proc/sys/vm/nr_hugepages
>>
>>
>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> ./hugeshmget03
>> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
> Sure. : )
The some incorrect assumptions are being made as the test is
running out of allocatable memory when calling shmget:
#define ENOMEM 12 /* Out of memory */
#define ENOSPC 28 /* No space left on device */
From shmget(2):
ENOMEM No memory could be allocated for segment overhead.
ENOSPC All possible shared memory IDs have been taken (SHMMNI), or
allocating a segment of the requested size would cause the sys-
tem to exceed the system-wide limit on shared memory (SHMALL).
I think this is the ultimate problem with the assumption being
made about the system:
/*
* The MAXIDS value is somewhat arbitrary and may need to be increased
* depending on the system being tested.
*/
#define MAXIDS 8192
This means that 8192 * 1024 * 2048 = 16GB worth of hugepages are
required in order for the testcase to succeed. That's clearly wrong
for systems with less than that available memory, and most likely
won't even be true unless you have an excess of that available memory
on your running system.
This value needs to be variable given the number of free available
hugepages as found in /proc/meminfo, i.e.
gcooper@orangebox /scratch/ltp $ grep HugePages /proc/meminfo
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
The testcase needs to be adjusted for this case, or at the very
least the maximum number of shared memory IDs need to be scooped up,
then one free'd, then allocated as a hugepage shared memory segment --
otherwise pulling this off would be impossible on standard systems.
HTH,
-Garrett
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 9:56 ` Garrett Cooper
@ 2010-02-08 10:01 ` Garrett Cooper
0 siblings, 0 replies; 10+ messages in thread
From: Garrett Cooper @ 2010-02-08 10:01 UTC (permalink / raw)
To: shenghui; +Cc: ltp-list
On Mon, Feb 8, 2010 at 1:56 AM, Garrett Cooper <yanegomi@gmail.com> wrote:
> On Mon, Feb 8, 2010 at 12:55 AM, shenghui <crosslonelyover@gmail.com> wrote:
>>
>>
>> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>>>
>>> On 02/08/2010 12:32 PM, shenghui wrote:
>>>
>>> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>>>>
>>>> On 02/06/2010 09:04 PM, shenghui wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I want to know how to run hugetlbshmget03? Does it need some
>>>> arguments?
>>>> For I have run it several times, always got error "NOMEM" for cannot get
>>>> hugetlb
>>>> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough
>>>> for its
>>>> request.
>>>> Does anyone know how to handle this problem?
>>>>
>>>> Hi Shenghui,
>>>>
>>>> Have you run this testcase after setting up nr_hugepages ? You need to
>>>> set the pages accordingly and then you need to run the testcase.
>>>>
>>>> e.g:
>>>>
>>>> echo 10 > /proc/sys/vm/nr_hugepages
>>>>
>>>> Please post your result if you still finding issue.
>>>>
>>>> Thanks
>>>> Rishi
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> Thanks and Best Regards,
>>>> shenghui
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> The Planet: dedicated and managed hosting, cloud storage, colocation
>>>> Stay online with enterprise data centers and the best network in the
>>>> business
>>>> Choose flexible plans and management services without long-term contracts
>>>> Personal 24x7 support from experience hosting pros just a phone call
>>>> away.
>>>> http://p.sf.net/sfu/theplanet-com
>>>>
>>>> _______________________________________________
>>>> Ltp-list mailing list
>>>> Ltp-list@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/ltp-list
>>>>
>>>
>>> Hi Rishi,
>>>
>>> Please refer to the following for my error info. And will you
>>> please try it on your workstation and send me
>>> your result?
>>>
>>> Hi Shengui,
>>>
>>> Yes i am also facing this different issue on my TP. Let me investigate
>>> more on that. Meanwhile if you know the solution can you please post your
>>> thought on this problem ?
>>>
>>> Thanks
>>> Rishi
>>>
>>>
>>> Thanks!
>>>
>>>
>>> ===============================================================================
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> ls
>>> hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
>>> hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> echo 10 > /proc/sys/vm/nr_hugepages
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> cat /proc/meminfo
>>> MemTotal: 4048440 kB
>>> MemFree: 1576656 kB
>>> Buffers: 122652 kB
>>> Cached: 1487772 kB
>>> SwapCached: 0 kB
>>> Active: 1225860 kB
>>> Inactive: 1043268 kB
>>> Active(anon): 684228 kB
>>> Inactive(anon): 16 kB
>>> Active(file): 541632 kB
>>> Inactive(file): 1043252 kB
>>> Unevictable: 0 kB
>>> Mlocked: 0 kB
>>> HighTotal: 3211696 kB
>>> HighFree: 1044060 kB
>>> LowTotal: 836744 kB
>>> LowFree: 532596 kB
>>> SwapTotal: 3903752 kB
>>> SwapFree: 3903752 kB
>>> Dirty: 204 kB
>>> Writeback: 0 kB
>>> AnonPages: 658692 kB
>>> Mapped: 239928 kB
>>> Slab: 109460 kB
>>> SReclaimable: 93676 kB
>>> SUnreclaim: 15784 kB
>>> PageTables: 8332 kB
>>> NFS_Unstable: 0 kB
>>> Bounce: 0 kB
>>> WritebackTmp: 0 kB
>>> CommitLimit: 5917732 kB
>>> Committed_AS: 1389392 kB
>>> VmallocTotal: 122880 kB
>>> VmallocUsed: 44644 kB
>>> VmallocChunk: 75956 kB
>>> HugePages_Total: 10
>>> HugePages_Free: 10
>>> HugePages_Rsvd: 0
>>> HugePages_Surp: 0
>>> Hugepagesize: 2048 kB
>>> DirectMap4k: 8184 kB
>>> DirectMap2M: 903168 kB
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> ./hugeshmget03
>>> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>>> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> echo 32 > /proc/sys/vm/nr_hugepages
>>>
>>>
>>> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>>> ./hugeshmget03
>>> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>>> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>>
>> Sure. : )
>
> The some incorrect assumptions are being made as the test is
> running out of allocatable memory when calling shmget:
>
> #define ENOMEM 12 /* Out of memory */
>
> #define ENOSPC 28 /* No space left on device */
>
> From shmget(2):
>
> ENOMEM No memory could be allocated for segment overhead.
>
> ENOSPC All possible shared memory IDs have been taken (SHMMNI), or
> allocating a segment of the requested size would cause the sys-
> tem to exceed the system-wide limit on shared memory (SHMALL).
>
> I think this is the ultimate problem with the assumption being
> made about the system:
>
> /*
> * The MAXIDS value is somewhat arbitrary and may need to be increased
> * depending on the system being tested.
> */
> #define MAXIDS 8192
>
> This means that 8192 * 1024 * 2048 = 16GB worth of hugepages are
> required in order for the testcase to succeed. That's clearly wrong
> for systems with less than that available memory, and most likely
> won't even be true unless you have an excess of that available memory
> on your running system.
> This value needs to be variable given the number of free available
> hugepages as found in /proc/meminfo, i.e.
>
> gcooper@orangebox /scratch/ltp $ grep HugePages /proc/meminfo
> HugePages_Total: 0
> HugePages_Free: 0
> HugePages_Rsvd: 0
> HugePages_Surp: 0
>
> The testcase needs to be adjusted for this case, or at the very
> least the maximum number of shared memory IDs need to be scooped up,
> then one free'd, then allocated as a hugepage shared memory segment --
> otherwise pulling this off would be impossible on standard systems.
Another note... when grabbing all of the available shared memory
IDs, you can use at minimum 1 byte as per shmget's manpage, but it's
not going to make much sense because memory is allocated on fixed page
sizes [typically 4kB, but sysconf(_SC_PAGESIZE) is the way to
determine the page size in a deterministic and portable manner], so I
suggest using that value as your malloc'able size, then if shmget
fails with ENOMEM fail with tst_resm(TCONF, ""), etc....
-Garrett
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-08 7:29 ` Rishikesh
2010-02-08 8:55 ` shenghui
@ 2010-02-15 3:37 ` shenghui
2010-02-15 5:51 ` Rishikesh K Rajak
1 sibling, 1 reply; 10+ messages in thread
From: shenghui @ 2010-02-15 3:37 UTC (permalink / raw)
To: Rishikesh; +Cc: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 4701 bytes --]
2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
> On 02/08/2010 12:32 PM, shenghui wrote:
>
>
>
> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>
>> On 02/06/2010 09:04 PM, shenghui wrote:
>>
>> Hi all,
>>
>> I want to know how to run hugetlbshmget03? Does it need some
>> arguments?
>> For I have run it several times, always got error "NOMEM" for cannot get
>> hugetlb
>> page. But "cat /proc/meminfo" shows that free hugetlb pages are enough for
>> its
>> request.
>> Does anyone know how to handle this problem?
>>
>> Hi Shenghui,
>>
>> Have you run this testcase after setting up nr_hugepages ? You need to set
>> the pages accordingly and then you need to run the testcase.
>>
>> e.g:
>>
>> echo 10 > /proc/sys/vm/nr_hugepages
>>
>> Please post your result if you still finding issue.
>>
>> Thanks
>> Rishi
>>
>>
>> --
>>
>>
>> Thanks and Best Regards,
>> shenghui
>>
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>>
>>
>> _______________________________________________
>> Ltp-list mailing listLtp-list@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/ltp-list
>>
>>
>>
> Hi Rishi,
>
> Please refer to the following for my error info. And will you please
> try it on your workstation and send me
> your result?
>
> Hi Shengui,
>
> Yes i am also facing this different issue on my TP. Let me investigate more
> on that. Meanwhile if you know the solution can you please post your thought
> on this problem ?
>
> Thanks
> Rishi
>
>
>
> Thanks!
>
>
> ===============================================================================
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ls
> hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
> hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 10 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> cat /proc/meminfo
> MemTotal: 4048440 kB
> MemFree: 1576656 kB
> Buffers: 122652 kB
> Cached: 1487772 kB
> SwapCached: 0 kB
> Active: 1225860 kB
> Inactive: 1043268 kB
> Active(anon): 684228 kB
> Inactive(anon): 16 kB
> Active(file): 541632 kB
> Inactive(file): 1043252 kB
> Unevictable: 0 kB
> Mlocked: 0 kB
> HighTotal: 3211696 kB
> HighFree: 1044060 kB
> LowTotal: 836744 kB
> LowFree: 532596 kB
> SwapTotal: 3903752 kB
> SwapFree: 3903752 kB
> Dirty: 204 kB
> Writeback: 0 kB
> AnonPages: 658692 kB
> Mapped: 239928 kB
> Slab: 109460 kB
> SReclaimable: 93676 kB
> SUnreclaim: 15784 kB
> PageTables: 8332 kB
> NFS_Unstable: 0 kB
> Bounce: 0 kB
> WritebackTmp: 0 kB
> CommitLimit: 5917732 kB
> Committed_AS: 1389392 kB
> VmallocTotal: 122880 kB
> VmallocUsed: 44644 kB
> VmallocChunk: 75956 kB
> HugePages_Total: 10
> HugePages_Free: 10
> HugePages_Rsvd: 0
> HugePages_Surp: 0
> Hugepagesize: 2048 kB
> DirectMap4k: 8184 kB
> DirectMap2M: 903168 kB
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> echo 32 > /proc/sys/vm/nr_hugepages
>
> root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> ./hugeshmget03
> hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>
>
> --
>
>
> Thanks and Best Regards,
> shenghui
>
>
>
Hi Rishi,
I found hugetlbshmget01 has the same problem. Seems we need do
further investigation on these two programs. :)
--
Thanks and Best Regards,
shenghui
[-- Attachment #1.2: Type: text/html, Size: 6467 bytes --]
[-- Attachment #2: Type: text/plain, Size: 254 bytes --]
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-15 3:37 ` shenghui
@ 2010-02-15 5:51 ` Rishikesh K Rajak
2010-02-15 6:30 ` Garrett Cooper
0 siblings, 1 reply; 10+ messages in thread
From: Rishikesh K Rajak @ 2010-02-15 5:51 UTC (permalink / raw)
To: shenghui; +Cc: ltp-list
On Mon, Feb 15, 2010 at 11:37:03AM +0800, shenghui wrote:
> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>
> > Hi Rishi,
> >
> > Please refer to the following for my error info. And will you please
> > try it on your workstation and send me
> > your result?
> >
> > Hi Shengui,
> >
> > Yes i am also facing this different issue on my TP. Let me investigate more
> > on that. Meanwhile if you know the solution can you please post your thought
> > on this problem ?
> >
> > Thanks
> > Rishi
> >
> >
> >
> > Thanks!
> >
> >
> > ===============================================================================
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > ls
> > hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
> > hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > echo 10 > /proc/sys/vm/nr_hugepages
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > cat /proc/meminfo
> > MemTotal: 4048440 kB
> > MemFree: 1576656 kB
> > Buffers: 122652 kB
> > Cached: 1487772 kB
> > SwapCached: 0 kB
> > Active: 1225860 kB
> > Inactive: 1043268 kB
> > Active(anon): 684228 kB
> > Inactive(anon): 16 kB
> > Active(file): 541632 kB
> > Inactive(file): 1043252 kB
> > Unevictable: 0 kB
> > Mlocked: 0 kB
> > HighTotal: 3211696 kB
> > HighFree: 1044060 kB
> > LowTotal: 836744 kB
> > LowFree: 532596 kB
> > SwapTotal: 3903752 kB
> > SwapFree: 3903752 kB
> > Dirty: 204 kB
> > Writeback: 0 kB
> > AnonPages: 658692 kB
> > Mapped: 239928 kB
> > Slab: 109460 kB
> > SReclaimable: 93676 kB
> > SUnreclaim: 15784 kB
> > PageTables: 8332 kB
> > NFS_Unstable: 0 kB
> > Bounce: 0 kB
> > WritebackTmp: 0 kB
> > CommitLimit: 5917732 kB
> > Committed_AS: 1389392 kB
> > VmallocTotal: 122880 kB
> > VmallocUsed: 44644 kB
> > VmallocChunk: 75956 kB
> > HugePages_Total: 10
> > HugePages_Free: 10
> > HugePages_Rsvd: 0
> > HugePages_Surp: 0
> > Hugepagesize: 2048 kB
> > DirectMap4k: 8184 kB
> > DirectMap2M: 903168 kB
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > ./hugeshmget03
> > hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> > hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > echo 32 > /proc/sys/vm/nr_hugepages
> >
> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
> > ./hugeshmget03
> > hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
> > hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
> >
> >
> > --
> >
> >
> > Thanks and Best Regards,
> > shenghui
> >
> >
> >
> Hi Rishi,
>
> I found hugetlbshmget01 has the same problem. Seems we need do
> further investigation on these two programs. :)
Hi Shenghui,
Sure i will have a look into it soon.
Thanks
Rishi
>
>
> --
>
>
> Thanks and Best Regards,
> shenghui
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [LTP] about "hugetlbshmget03"
2010-02-15 5:51 ` Rishikesh K Rajak
@ 2010-02-15 6:30 ` Garrett Cooper
0 siblings, 0 replies; 10+ messages in thread
From: Garrett Cooper @ 2010-02-15 6:30 UTC (permalink / raw)
To: Rishikesh K Rajak; +Cc: ltp-list
On Sun, Feb 14, 2010 at 9:51 PM, Rishikesh K Rajak
<risrajak@linux.vnet.ibm.com> wrote:
> On Mon, Feb 15, 2010 at 11:37:03AM +0800, shenghui wrote:
>> 2010/2/8 Rishikesh <risrajak@linux.vnet.ibm.com>
>>
>> > Hi Rishi,
>> >
>> > Please refer to the following for my error info. And will you please
>> > try it on your workstation and send me
>> > your result?
>> >
>> > Hi Shengui,
>> >
>> > Yes i am also facing this different issue on my TP. Let me investigate more
>> > on that. Meanwhile if you know the solution can you please post your thought
>> > on this problem ?
>> >
>> > Thanks
>> > Rishi
>> >
>> >
>> >
>> > Thanks!
>> >
>> >
>> > ===============================================================================
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > ls
>> > hugeshmget01 hugeshmget02 hugeshmget03 hugeshmget05 Makefile
>> > hugeshmget01.c hugeshmget02.c hugeshmget03.c hugeshmget05.c
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > echo 10 > /proc/sys/vm/nr_hugepages
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > cat /proc/meminfo
>> > MemTotal: 4048440 kB
>> > MemFree: 1576656 kB
>> > Buffers: 122652 kB
>> > Cached: 1487772 kB
>> > SwapCached: 0 kB
>> > Active: 1225860 kB
>> > Inactive: 1043268 kB
>> > Active(anon): 684228 kB
>> > Inactive(anon): 16 kB
>> > Active(file): 541632 kB
>> > Inactive(file): 1043252 kB
>> > Unevictable: 0 kB
>> > Mlocked: 0 kB
>> > HighTotal: 3211696 kB
>> > HighFree: 1044060 kB
>> > LowTotal: 836744 kB
>> > LowFree: 532596 kB
>> > SwapTotal: 3903752 kB
>> > SwapFree: 3903752 kB
>> > Dirty: 204 kB
>> > Writeback: 0 kB
>> > AnonPages: 658692 kB
>> > Mapped: 239928 kB
>> > Slab: 109460 kB
>> > SReclaimable: 93676 kB
>> > SUnreclaim: 15784 kB
>> > PageTables: 8332 kB
>> > NFS_Unstable: 0 kB
>> > Bounce: 0 kB
>> > WritebackTmp: 0 kB
>> > CommitLimit: 5917732 kB
>> > Committed_AS: 1389392 kB
>> > VmallocTotal: 122880 kB
>> > VmallocUsed: 44644 kB
>> > VmallocChunk: 75956 kB
>> > HugePages_Total: 10
>> > HugePages_Free: 10
>> > HugePages_Rsvd: 0
>> > HugePages_Surp: 0
>> > Hugepagesize: 2048 kB
>> > DirectMap4k: 8184 kB
>> > DirectMap2M: 903168 kB
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > ./hugeshmget03
>> > hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>> > hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > echo 32 > /proc/sys/vm/nr_hugepages
>> >
>> > root@crossover-laptop:/home/crossover/repository/ltp-intermediate-20100119/testcases/kernel/mem/hugetlb/hugeshmget#
>> > ./hugeshmget03
>> > hugeshmget03 0 TINFO : errno = 12 : Cannot allocate memory
>> > hugeshmget03 1 TBROK : Didn't get ENOSPC in test setup
>> >
>> >
>> > --
>> >
>> >
>> > Thanks and Best Regards,
>> > shenghui
>> >
>> >
>> >
>> Hi Rishi,
>>
>> I found hugetlbshmget01 has the same problem. Seems we need do
>> further investigation on these two programs. :)
>
> Hi Shenghui,
> Sure i will have a look into it soon.
> Thanks
> Rishi
If the issue isn't supposedly with the running system, please keep
in mind that if the developers are the same in the testcases, odds are
more than likely it's either a) library code, or b) copy-pasted code
(hopefully it's not the latter case, but there's a large amount of
code like that in the tree).
I know it's not extremely helpful at first glance, but that's the
usual case if you can get a fix to work with one testcase, and others
need fixing...
HTH,
-Garrett
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-02-15 6:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-06 15:34 [LTP] about "hugetlbshmget03" shenghui
2010-02-08 5:55 ` Rishikesh
2010-02-08 7:02 ` shenghui
2010-02-08 7:29 ` Rishikesh
2010-02-08 8:55 ` shenghui
2010-02-08 9:56 ` Garrett Cooper
2010-02-08 10:01 ` Garrett Cooper
2010-02-15 3:37 ` shenghui
2010-02-15 5:51 ` Rishikesh K Rajak
2010-02-15 6:30 ` Garrett Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox