Hi Subrata, 

Since even after applying the patch and allocating enough hugepages, I would
still get this error:

hugeshmget03 0 INFO : errno = 12: Cannot allocate memory
hugeshmget03 1 BROK : Didn't get ENOSPC in test setup.

Is it safe to say that it is more leaning towards something broken in the
test script as opposed to configuration error?



Subrata Modak wrote:
> 
> 
> On Fri, 2009-01-23 at 12:58 +0530, Subrata Modak wrote:
>> On Thu, 2009-01-22 at 15:56 +0530, Subrata Modak wrote: 
>> > On Wed, 2009-01-21 at 10:36 -0800, Mark130 wrote:
>> > > Hi Subrata,
>> > > 
>> > > Will this fix for all the hugetlb* tests be included in the next
>> release of
>> > > the LTP Suite?
>> > 
>> > I thought i will be writing it. Let me see if i can push it through
>> this
>> > release. Thanks for reminding me.
>> 
>> Here it goes. What i have tried to do is fix only the broken issues,
>> where the test case(s) will not execute if enough hugepages are not
>> available in the system. Now, i leave it on the discrition of the user
>> to increase the hugepages in their system before executing these tests. 
>> 
>> Else, if you all agree on some way to autoset that before test
>> execution, it would be welcome.
>> 
>> Following patches Follow:
>> 
>> __001-Fix_Hugepages-Add_declaration_for_new_functions.patch
>> __002-Fix_Hugepages-Add_definitions_for_new_functions.patch
>> __003-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugepageshmget01.patch
>> __004-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugepageshmget03.patch
>> __005-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugepageshmget03_remaining_fixes.patch
>> __006-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugepageshmget05.patch
>> __007-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugepageshmget02.patch
>> __008-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmat01.patch
>> __009-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmat02.patch
>> __010-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmat03.patch
>> __011-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmctl01.patch
>> __012-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmctl02.patch
>> __013-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmctl03.patch
>> __014-Fix_Hugepages-Allocate_hugepages_only_if_available_to_hugeshmdt01.patch
> 
> Checked them in.
> 
> Regards--
> Subrata
> 
>> 
>> Regards--
>> Subrata
>> 
>> > 
>> > Regards--
>> > Subrata
>> > 
>> > > 
>> > > Thanks for your Help
>> > > 
>> > > 
>> > > Subrata Modak wrote:
>> > > > 
>> > > > A fix for all the hugetlb* tests are on the way, on similar lines
>> as
>> > > > based on the fix being proposed by Vinay for msgctl11.c
>> > > > (http://marc.info/?l=ltp-list&m=123139624914488&w=2), regarding
>> checking
>> > > > of Hugepages for the system.
>> > > > 
>> > > > Regards--
>> > > > Subrata
>> > > > 
>> > > > On Tue, 2009-01-06 at 15:55 -0800, Mark130 wrote:
>> > > >> Hi, 
>> > > >> 
>> > > >> I am using the LTP 20081031 version and I am encountering the
>> error when
>> > > >> running hugeshmget03.
>> > > >> hugeshmget03 0 INFO : errno = 12: Cannot allocate memory
>> > > >> hugeshmget03 1 BROK : Didn't get ENOSPC in test setup.
>> > > >> 
>> > > >> I currently have 2 x 1GB Memory populated in my system.  I have
>> also
>> > > >> configured 512 Hugepages of size 2048kb.  
>> > > >> 
>> > > >> Could someone give me a better insight to this failure and what
>> this loop
>> > > >> does:
>> > > >>       /*
>> > > >>        * Use a while loop to create the maximum number of memory
>> segments.
>> > > >>        * If the loop exceeds MAXIDS, then break the test and cleanup.
>> > > >>        */
>> > > >>       while ((shm_id_1 = shmget(IPC_PRIVATE, HUGE_SHM_SIZE, 
>> > > >> SHM_HUGETLB
>> |
>> > > >> IPC_CREAT |
>> > > >>            IPC_EXCL | SHM_RW)) != -1) {
>> > > >>               shm_id_arr[num_shms++] = shm_id_1;
>> > > >>               if (num_shms == MAXIDS) {
>> > > >>                       tst_brkm(TBROK, cleanup, "The maximum number of 
>> > > >> shared "
>> > > >>                                "memory ID's has been\n\t reached.  
>> > > >> Please "
>> > > >>                                "increase the MAXIDS value in the 
>> > > >> test.");
>> > > >>               }
>> > > >>       }
>> > > >> 
>> > > >>       /*
>> > > >>        * If the errno is other than ENOSPC, then something else is
>> wrong.
>> > > >>        */
>> > > >>       if (errno != ENOSPC) {
>> > > >>               tst_resm(TINFO, "errno = %d : %s", errno, 
>> > > >> strerror(errno));
>> > > >>               tst_brkm(TBROK, cleanup, "Didn't get ENOSPC in test 
>> > > >> setup");
>> > > >>       }
>> > > >> }
>> > > >> When I was putting a watch to num_shms, it seems like once it
>> reaches to
>> > > >> the
>> > > >> value 1 or 2, it will exit the while loop.
>> > > >> 
>> > > >> Thanks for all your help
>> > > >> 
>> > > >> 
>> > > >> 
>> > > > 
>> > > > 
>> > > >
>> ------------------------------------------------------------------------------
>> > > > Check out the new SourceForge.net Marketplace.
>> > > > It is the best place to buy or sell services for
>> > > > just about anything Open Source.
>> > > > http://p.sf.net/sfu/Xq1LFB
>> > > > _______________________________________________
>> > > > Ltp-list mailing list
>> > > > Ltp-list@lists.sourceforge.net
>> > > > https://lists.sourceforge.net/lists/listinfo/ltp-list
>> > > > 
>> > > > 
>> > > 
>> > 
>> > 
>> >
>> ------------------------------------------------------------------------------
>> > This SF.net email is sponsored by:
>> > SourcForge Community
>> > SourceForge wants to tell your story.
>> > http://p.sf.net/sfu/sf-spreadtheword
>> > _______________________________________________
>> > Ltp-list mailing list
>> > Ltp-list@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/ltp-list
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Ltp-list mailing list
>> Ltp-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
> 

-- 
View this message in context: 
http://www.nabble.com/hugeshmget03.c-%22Didn%27t-get-ENOSPC-in-test-setup%22-tp21319323p21935357.html
Sent from the ltp-list mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to