From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NeO3r-0005aA-VQ for ltp-list@lists.sourceforge.net; Mon, 08 Feb 2010 07:29:35 +0000 Received: from e23smtp03.au.ibm.com ([202.81.31.145]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NeO3q-0003le-98 for ltp-list@lists.sourceforge.net; Mon, 08 Feb 2010 07:29:35 +0000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp03.au.ibm.com (8.14.3/8.13.1) with ESMTP id o187QGXv028131 for ; Mon, 8 Feb 2010 18:26:16 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o187OBD21773782 for ; Mon, 8 Feb 2010 18:24:11 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o187TFtH002504 for ; Mon, 8 Feb 2010 18:29:16 +1100 Message-ID: <4B6FBD49.6050605@linux.vnet.ibm.com> Date: Mon, 08 Feb 2010 12:59:13 +0530 From: Rishikesh MIME-Version: 1.0 References: <5a774f4c1002060734v174f790ah976977edf6aa50a4@mail.gmail.com> <4B6FA757.2010309@linux.vnet.ibm.com> <5a774f4c1002072302n4eaf5c6fycbabbbe4524a483d@mail.gmail.com> In-Reply-To: <5a774f4c1002072302n4eaf5c6fycbabbbe4524a483d@mail.gmail.com> Subject: Re: [LTP] about "hugetlbshmget03" List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9140855421630374144==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: shenghui Cc: ltp-list@lists.sourceforge.net This is a multi-part message in MIME format. --===============9140855421630374144== Content-Type: multipart/alternative; boundary="------------020900030605060604090207" This is a multi-part message in MIME format. --------------020900030605060604090207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/08/2010 12:32 PM, shenghui wrote: > > > 2010/2/8 Rishikesh > > > 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 > > > -- > > > Thanks and Best Regards, > shenghui --------------020900030605060604090207 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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.
_______________________________________________ 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


--


Thanks and Best Regards,
shenghui

--------------020900030605060604090207-- --===============9140855421630374144== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============9140855421630374144== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============9140855421630374144==--