Hi,

From: Jiri Palecek <[email protected]>
Subject: Re: [LTP] growfiles gf07 test FAIL
Date: Thu, 12 Mar 2009 14:45:17 +0100

> Hi,
> 
> On Wednesday 11 March 2009 15:43:37 Francesco RUNDO wrote:
>> Hi All,
>> 
>> I'd like to show a strange behaviour I got by running latest 
>> LTP-20090131 on SH based hw (and also for i386).
>> 
>> During the LTP session, running the gf0x testcases 
>> ($LTPROOT/testcases/kernel/fs/doio/) I got the same error previously 
>> reported by Alvin (see below).
>> I checked it on i386 arch with FC7 (Fedora core 7), and I got the same 
>> error/behaviour.
>> 
>> As for Alvin, only gf07 test fails as the others gf0x tests worked fine 
>> both in SH arch and i386 ones.
>> 
>> I've analyzed the error and looking at the source code and it seems to 
>> me that the test gf07 should pass without problem!
>> 
>> The gf07 basically checks the growing of file with random lseek and  
>> "polled async" type of  aio operations ("-I p "  option).
>> 
>> The test at the end, run the function "dataasciichk()".
>> 
>> Only, for gf07 that function returns an error (even though it should 
>> return no errors!).
>> 
>> The function "dataasciichk()" is included in the LTPROOT/lib files 
>> (included with the tlibio.[ch]) to provide the libltp.a library.
>> 
>> Now, recently some code related to async io has been changed on the 
>> tlibio.[ch] so that I think probably the problem could be placed on that 
>> changes.
>> 
>> As reported Alvin, the same code built by using previous tlibio.o works 
>> fine. The source code of the growfile.c and dataasciichk.[ch] is 
>> basically the same of previous LTP release (20081031).
>> 
>> Finally, I've to say that changing some paramaters at command line, the 
>> gf07 works fine (even though the check made by dataasciichk() is the same):
>> ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p 
>> g_rand13 g_rand13.2: DIDN'T WORK
>> ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p 
>> g_rand13 g_rand13.2: WORKs FINE
>> ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--3 -i 0 -L 30 -C 1 -I p 
>> g_rand13 g_rand13.2: WORKs FINE
>> ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I s 
>> g_rand13 g_rand13.2: WORKs FINE
>> ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I a 
>> g_rand13 g_rand13.2: WORKs FINE
>> 
>> Please, could you send me your opinion/feedback ?
>> 
>> Thanks so much.
> 
> I already looked at it, there are various problems. First, it actually 
> selects pread() instead of polled aio, second, growfiles doesn't work with 
> pread(), third, it doesn't give useful error info sometimes. Expect patches 
> soon.
> 

Comparing 20090228 with 20081031 release, not only gf07 failed for me,
but also several other gf* test cases,

gf01                           FAIL       1
gf02                           FAIL       1
gf03                           PASS       0
gf04                           PASS       0
gf05                           FAIL       1
gf06                           PASS       0
gf07                           FAIL       1
gf08                           PASS       0
gf09                           FAIL       1
gf10                           FAIL       1
gf11                           FAIL       1
gf12                           PASS       0
gf13                           FAIL       1
gf14                           PASS       0
gf15                           FAIL       1
gf16                           PASS       0
gf17                           PASS       0
gf18                           FAIL       1
gf19                           FAIL       1

<<<test_start>>>
tag=gf01 stime=1237381056
cmdline="growfiles -W gf01 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10
glseek20 glseek20.2"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf01): 30959 growfiles.c/2445: 1 CW
DEBUG tlibio.c/1547: No I/O method chosen
growfiles(gf01): 30959 growfiles.c/1678: 1 Hit max errors value of 1
gf01        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=gf02 stime=1237381056
cmdline="growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf02): 30960 growfiles.c/2143: 1
growfiles(gf02): 30960 growfiles.c/1678: 1 Hit max errors value of 1
gf02        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

...

growfiles(gf05): 30963 growfiles.c/2143: 1
growfiles(gf05): 30963 growfiles.c/1678: 1 Hit max errors value of 1
gf05        1  FAIL  :  Test failed
<<<test_start>>>
tag=gf05 stime=1237381056
cmdline="growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T 10 -c9 -I
p -u -f gf07_"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

...

growfiles(gf07): 31184 growfiles.c/2143: 1
growfiles(gf07): 31184 growfiles.c/1678: 1 Hit max errors value of 1
gf07        1  FAIL  :  Test failed
<<<test_start>>>
tag=gf07 stime=1237381087
cmdline="growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1
-I p g_rand13 g_rand13.2"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

...

<<<test_start>>>
tag=gf09 stime=1237381118
cmdline="growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1
-I p g_rand12 g_rand12.2"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf09): 31434 growfiles.c/2143: 1
growfiles(gf09): 31434 growfiles.c/1678: 1 Hit max errors value of 1
gf09        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=gf10 stime=1237381118
cmdline="growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l
g_lio14 g_lio14.2"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf10): 31435 growfiles.c/2143: 1
growfiles(gf10): 31435 growfiles.c/1678: 1 Hit max errors value of 1
gf10        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=gf11 stime=1237381118
cmdline="growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L
g_lio15 g_lio15.2"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf11): 31436 growfiles.c/2143: 1
growfiles(gf11): 31436 growfiles.c/1678: 1 Hit max errors value of 1
gf11        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

...

<<<test_start>>>
tag=gf18 stime=1237381438
cmdline="growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l
-S 2 -f Lgf04_"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf18): 1371 growfiles.c/1956: 1
DEBUG tlibio.c/996: No I/O method chosen
growfiles(gf18): 1371 growfiles.c/1956: 2
DEBUG tlibio.c/996: No I/O method chosen
growfiles(gf18): 1371 growfiles.c/1956: 2
DEBUG tlibio.c/996: No I/O method chosen
growfiles(gf18): 1371 growfiles.c/1956: 3
DEBUG tlibio.c/996: No I/O method chosen
growfiles(gf18): 1371 growfiles.c/2445: 4 CW
DEBUG tlibio.c/1547: No I/O method chosen
growfiles(gf18): 1371 growfiles.c/1678: 4 Hit max errors value of 1
gf18        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=1
<<<test_end>>>
<<<test_start>>>
tag=gf19 stime=1237381438
cmdline="growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T 10 -c9 -I
p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
growfiles(gf19): 1372 growfiles.c/2143: 1
growfiles(gf19): 1372 growfiles.c/1678: 1 Hit max errors value of 1
gf19        1  FAIL  :  Test failed
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>

CAI Qian

> Regards
>     Jiri Palecek
> 
>> Regards,
>> FR
>> 
>> Alvin wrote:
>> 
>> > Hi, all,
>> >
>> > The kernel is 2.6.24-19-386 and ltp suite is ltp-full-20090131.gz. 
>> > Only gf07 failed, other growfiles test cases pass. And I modified 
>> > ltp/include/tlibio.h ltp/lib/tlibio.c to the previous version, it will 
>> > pass.
>> >
>> > Error Log:
>> >
>> > $ ./growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I 
>> > p g_rand13 g_rand13.2
>> > growfiles(gf07): 24212 growfiles.c/2513: 1 CW data mismatch at offset 
>> > 0, exp:0101, act:0 in file g_rand13
>> > growfiles(gf07): 24212 growfiles.c/1678: 1 Hit max errors value of 1
>> > gf07        1  FAIL  :  Test failed
>> >
>> >
>> > ~Alvin
>> >
>> >------------------------------------------------------------------------
>> >
>> >------------------------------------------------------------------------------
>> >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> >-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> >-Strategies to boost innovation and cut costs with open source participation
>> >-Receive a $600 discount off the registration fee with the source code: SFAD
>> >http://p.sf.net/sfu/XcvMzF8H
>> >
>> >------------------------------------------------------------------------
>> >
>> >_______________________________________________
>> >Ltp-list mailing list
>> >[email protected]
>> >https://lists.sourceforge.net/lists/listinfo/ltp-list
>> >  
>> >
>> 
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to