testcases: fs_bind: fix hanging of testscript
PATCH 1/7 testcases: fs_bind: fix hanging of testscript
From: Andrew Chen <[email protected]>
Busybox's xargs doesn't recongize the --max-args option. Use -n instead.
--- ltp-full-20101031/testscripts/test_fs_bind.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
ltp-full-20101031/testscripts/test_fs_bind.sh +1 -1
@@ -318,7 +318,7 @@ restore_mounts() # new mounts around and will never remove mounts outside the test # directory ( while grep_mounts ; do - grep_mounts | awk '{print $3}' | xargs -r --max-args=1 umount -l + grep_mounts | awk '{print $3}' | xargs -r -n 1 umount -l done ) >& /dev/null # mount list and exit with 0
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 2/7 testcases: cgroup: correct wrong variable used in the testscript
From: Andrew Chen <[email protected]>
--- .../controllers/cgroup/cgroup_regression_test.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +1 -1
@@ -254,7 +254,7 @@ test_5() subsys1=`tail -n 1 /proc/cgroups | awk '{ print $1 }'` subsys2=`tail -n 2 /proc/cgroups | head -1 | awk '{ print $1 }'` - mount -t cgroup -o $subsys1,$subsys xxx cgroup/ + mount -t cgroup -o $subsys1,$subsys2 xxx cgroup/ if [ $? -ne 0 ]; then tst_resm TFAIL "mount $subsys1 and $subsys2 failed" failed=1
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/7] testcases: cgroup: correct wrong variable used in the testscript
Hi!
Quoted 14 lines
From: Andrew Chen <[email protected]>
Signed-off-by Andrew Chen <[email protected]>--- .../controllers/cgroup/cgroup_regression_test.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +0
-0
ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh test_5() · line 260
Quoted 8 lines
ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +1
-1@@ -254,7 +254,7 @@ test_5() subsys1=`tail -n 1 /proc/cgroups | awk '{ print $1 }'` subsys2=`tail -n 2 /proc/cgroups | head -1 | awk '{ print $1 }'` - mount -t cgroup -o $subsys1,$subsys xxx cgroup/ + mount -t cgroup -o $subsys1,$subsys2 xxx cgroup/ if [ $? -ne 0 ]; then tst_resm TFAIL "mount $subsys1 and $subsys2 failed" failed=1
Please don't leave the commit messages empty, even for such change it should be something like:
"Fix typo in cgroup_regression_test.sh."
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 2/7] testcases: cgroup: correct wrong variable used in the testscript
Hi!
Quoted 26 lines
Quoted 14 lines
From: Andrew Chen <[email protected]>
Signed-off-by Andrew Chen <[email protected]>--- .../controllers/cgroup/cgroup_regression_test.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +0
-0ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh test_5() · line 260
Quoted 8 lines
ltp-full-20101031/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh +1
-1@@ -254,7 +254,7 @@ test_5() subsys1=`tail -n 1 /proc/cgroups | awk '{ print $1 }'` subsys2=`tail -n 2 /proc/cgroups | head -1 | awk '{ print $1 }'` - mount -t cgroup -o $subsys1,$subsys xxx cgroup/ + mount -t cgroup -o $subsys1,$subsys2 xxx cgroup/ if [ $? -ne 0 ]; then tst_resm TFAIL "mount $subsys1 and $subsys2 failed" failed=1Please don't leave the commit messages empty, even for such change it should be something like:
Quoted 1 line
"Fix typo in
cgroup_regression_test.sh."
Argh, scratch that. I'm allways confused by git generated emails.
I would certainly expect that they add the first line of commit message not only to subject but into the mail body as well.
Anyway the patches won't apply as they have ltp-full-20101031 prefix in the path and 'git am' couldn't find the files.
PS: It's better to work with the LTP git repository to be sure you are
not fixing fixed problem.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 3/7 testcases: controllers: fix wrong cpu number calculated
In reply to Andrew ChenFrom: Andrew Chen <[email protected]>
Only "Processor" will be showed up in /proc/cpuinfo for ARM non-SMP CPUs. Ignore case to fix this issue.
--- .../kernel/controllers/cpuacct/run_cpuacct_test.sh | 2 +- .../controllers/cpuctl/run_cpuctl_latency_test.sh | 4 ++-- .../controllers/cpuctl/run_cpuctl_stress_test.sh | 2 +- .../kernel/controllers/cpuctl/run_cpuctl_test.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
ltp-full-20101031/testcases/kernel/controllers/cpuacct/run_cpuacct_test.sh +1 -1
@@ -68,7 +68,7 @@ cleanup mes="CPU Accounting Controller" cg_path="/dev/cpuacct"; -num_online_cpus=`cat /proc/cpuinfo | grep -w processor | wc -l` +num_online_cpus=`cat /proc/cpuinfo | grep -w -i processor | wc -l` #Function to create tasks equal to num_online_cpus. nr_tasks ()
ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_latency_test.sh +2 -2
@@ -99,7 +99,7 @@ calc_allowed_latency() sys_latency=`cat /proc/sys/kernel/sched_wakeup_granularity_ns` allowed_latency=`expr $sys_latency / 1000` # in microseconds else - num_cpus=`cat /proc/cpuinfo | grep -w processor | wc -l` + num_cpus=`cat /proc/cpuinfo | grep -w -i processor | wc -l` log2 $num_cpus; ln_num_cpus=$? ln_num_cpus=`expr $ln_num_cpus + 1`
@@ -170,7 +170,7 @@ PWD=`pwd` "2") # With group scheduling echo TINFO "Running cpuctl Latency Test 2" - NUM_CPUS=`cat /proc/cpuinfo | grep -w processor | wc -l`; + NUM_CPUS=`cat /proc/cpuinfo | grep -w -i processor | wc -l`; get_num_groups; # NUM_GROUPS is set now do_setup;
ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_stress_test.sh +1 -1
@@ -64,7 +64,7 @@ SCRIPT_PID=$$; FILE="stress-678"; # suffix for results file TEST_NAME="CPUCTL NUM_GROUPS vs NUM_TASKS TEST:"; -NUM_CPUS=`cat /proc/cpuinfo | grep -w processor | wc -l` +NUM_CPUS=`cat /proc/cpuinfo | grep -w -i processor | wc -l` N=$NUM_CPUS; # Default total num of groups (classes) M=10; # Default total num of tasks in a group
ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_test.sh +1 -1
@@ -59,7 +59,7 @@ NICEVALUE=-20; # Nice value to renice a task with SCRIPT_PID=$$; PWD=`pwd` cd $LTPROOT/testcases/bin/ -NUM_CPUS=`cat /proc/cpuinfo | grep -w processor | wc -l` +NUM_CPUS=`cat /proc/cpuinfo | grep -w -i processor | wc -l` . parameters.sh
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 3/7] testcases: controllers: fix wrong cpu number calculated
Hi!
Quoted 40 lines
From: Andrew Chen <[email protected]>
Only "Processor" will be showed up in
/proc/cpuinfofor ARM non-SMP CPUs. Ignore case to fix this issue.Signed-off-by Andrew Chen <[email protected]>--- .../kernel/controllers/cpuacct/run_cpuacct_test.sh | 2 +- .../controllers/cpuctl/run_cpuctl_latency_test.sh | 4 ++-- .../controllers/cpuctl/run_cpuctl_stress_test.sh | 2 +- .../kernel/controllers/cpuctl/run_cpuctl_test.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)ltp-full-20101031/testcases/kernel/controllers/cpuacct/run_cpuacct_test.sh +1
-1@@ -68,7 +68,7 @@ cleanup mes="CPU Accounting Controller" cg_path="/dev/cpuacct"; -num_online_cpus=`cat /proc/cpuinfo | grep -w processor | wc -l` +num_online_cpus=`cat /proc/cpuinfo | grep -w -i processor | wc -l` #Function to create tasks equal to num_online_cpus. nr_tasks ()ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_latency_test.sh +1
-1@@ -99,7 +99,7 @@ calc_allowed_latency() sys_latency=`cat /proc/sys/kernel/sched_wakeup_granularity_ns` allowed_latency=`expr $sys_latency / 1000` # in microseconds else - num_cpus=`cat /proc/cpuinfo | grep -w processor | wc -l` + num_cpus=`cat /proc/cpuinfo | grep -w -i processor | wc -l` log2 $num_cpus; ln_num_cpus=$? ln_num_cpus=`expr $ln_num_cpus + 1`
ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_latency_test.sh PWD=`pwd` · line 175
Quoted 7 lines
ltp-full-20101031/testcases/kernel/controllers/cpuctl/run_cpuctl_latency_test.sh +1
-1@@ -170,7 +170,7 @@ PWD=`pwd` "2") # With group scheduling echo TINFO "Running cpuctl Latency Test 2" - NUM_CPUS=`cat /proc/cpuinfo | grep -w processor | wc -l`; + NUM_CPUS=`cat /proc/cpuinfo | grep -w -i processor | wc -l`; get_num_groups; # NUM_GROUPS is set now do_setup;
Same for this one.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 4/7 testcases: memcg_function: set hugepage size to zero when no hugepage support
In reply to Andrew ChenFrom: Andrew Chen <[email protected]>
--- .../memcg/functional/memcg_function_test.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
ltp-full-20101031/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh +1 -0
@@ -45,6 +45,7 @@ FAIL=1 PAGESIZE=`./memcg_getpagesize` HUGEPAGESIZE=`grep Hugepagesize /proc/meminfo | awk '{ print $2 }'` +[ -z $HUGEPAGESIZE ] && HUGEPAGESIZE=0 HUGEPAGESIZE=$(( $HUGEPAGESIZE * 1024 )) cur_id=0
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 5/7 runltp: precise pattern matching for skipped testcases
In reply to Andrew ChenFrom: Andrew Chen <[email protected]>
--- ltp-full-20101031/runltp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
ltp-full-20101031/runltp +1 -1
@@ -681,7 +681,7 @@ main() if [ -n "$SKIPFILE" ] then for file in $( cat $SKIPFILE ); do - sed -i "/$file/d" ${TMP}/alltests + sed -i "/^$file[ \t]/d" ${TMP}/alltests done fi
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 6/7 runtest/fs: change parameters of growfiles
In reply to Andrew ChenFrom: Andrew Chen <[email protected]>
Ensure the number of created file (-S) cannot divide by the rate shrinkfile() is involked (-T), or file shrinking will always happen on the same file.
--- ltp-full-20101031/runtest/fs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
ltp-full-20101031/runtest/fs +2 -2
@@ -14,9 +14,9 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gf gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR -gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_ -d $TMPDIR +gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR gf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ -d $TMPDIR gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIR
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 6/7] runtest/fs: change parameters of growfiles
Hi!
Quoted 4 lines
ltp-full-20101031/runtest/fs +0
-0@@ -14,9 +14,9 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gf gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18
ltp-full-20101031/runtest/fs gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gf · line 22
Quoted 10 lines
ltp-full-20101031/runtest/fs +2
-2gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR -gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_ -d $TMPDIR +gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR gf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ -d $TMPDIR gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIR
Any reason why you have changed the order of the execution (the gf18 now preceeds gf16 and gf17)?
Also I'm not sure if 'shrinking on the same file' wasn't intentional (most likely not but I'm not sure yet).
Signature · 12 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
A message that is not in the archive (sent off-list or not yet received): CANj_sbC3+eO+6=_S4MO8Wr1o6b7Oo9mbX=EehBFaQb6dj=xOww@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CAGH67wROk8oOO85TVCZxfNofy2M1NdQXPTkuEHezgUJy8Jx-zw@mail.gmail.com
Re: [LTP] [PATCH 6/7] runtest/fs: change parameters of growfiles
Quoted 23 lines
Quoted 23 lines
Quoted 8 lines
Quoted 8 lines
ltp-full-20101031/runtest/fs +0
-0@@ -14,9 +14,9 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gfgf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR
ltp-full-20101031/runtest/fs +0
-2-gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRQuoted 9 lines
Quoted 6 lines
gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f
Lgf04_-d $TMPDIRltp-full-20101031/runtest/fs +2
-0+gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRgf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f
gf08i_-d $TMPDIR gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIRAny reason why you have changed the order of the execution (the gf18 now preceeds gf16 and gf17)?
Sorry, that's my mistake.
I will resend the patch later.Quoted 3 lines
Also I'm not sure if 'shrinking on the same file' wasn't intentional (most likely not but I'm not sure yet).
Quoted 8 lines
Quoted 4 lines
We made the patch here for the following problem:
gf16/gf17 create 10 files and keep them growing and shrinking. But shrinking on the same file leads the others to be growing only which may cause the tests run out of memory.Keep things simple. Each testcase should operate on a fresh file (mk*temp generated filename) to ensure determinism and avoid potential issues with execution ordering, memory starvation, etc.
Not really the case here. The tests itself plays with several files at once making them grow and shrink.
Signature · 12 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 6/7] runtest/fs: change parameters of growfiles
In reply to a message not in the archiveHi!
Quoted 20 lines
Quoted 8 lines
Quoted 8 lines
ltp-full-20101031/runtest/fs +0
-0@@ -14,9 +14,9 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gfgf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR
ltp-full-20101031/runtest/fs +0
-2-gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRQuoted 9 lines
Quoted 6 lines
gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f
Lgf04_-d $TMPDIRltp-full-20101031/runtest/fs +2
-0+gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRgf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f
gf08i_-d $TMPDIR gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIRAny reason why you have changed the order of the execution (the gf18 now preceeds gf16 and gf17)?
Sorry, that's my mistake.
I will resend the patch later.
Quoted 7 lines
Quoted 3 lines
Also I'm not sure if 'shrinking on the same file' wasn't intentional (most likely not but I'm not sure yet).
We made the patch here for the following problem:
gf16/gf17 create 10 files and keep them growing and shrinking. But shrinking on the same file leads the others to be growing only which may cause the tests run out of memory.
Ah right, this should have been in the commit description and also the amount of the memory consumed. That makes clear why you did such change as the change itself doesn't define the problem that you hit...
Signature · 12 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 6/7] runtest/fs: change parameters of growfiles
Hi!
Quoted 23 lines
Quoted 23 lines
Quoted 8 lines
Quoted 8 lines
ltp-full-20101031/runtest/fs +0
-0@@ -14,9 +14,9 @@ gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gfgf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR
ltp-full-20101031/runtest/fs +0
-2-gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR -gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRQuoted 9 lines
Quoted 6 lines
gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f
Lgf04_-d $TMPDIRltp-full-20101031/runtest/fs +2
-0+gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR +gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIRgf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f
gf08i_-d $TMPDIR gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIRAny reason why you have changed the order of the execution (the gf18 now preceeds gf16 and gf17)?
Sorry, that's my mistake.
I will resend the patch later.Quoted 3 lines
Also I'm not sure if 'shrinking on the same file' wasn't intentional (most likely not but I'm not sure yet).
Quoted 9 lines
Quoted 4 lines
We made the patch here for the following problem:
gf16/gf17 create 10 files and keep them growing and shrinking. But shrinking on the same file leads the others to be growing only which may cause the tests run out of memory.Ah right, this should have been in the commit description and also the amount of the memory consumed. That makes clear why you did such change as the change itself doesn't define the problem that you hit...
Ping, any progress on this?
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CANj_sbD=c+R4YVwqh1tSw-4LanVimNos5rFc0tU872ouCLf-8g@mail.gmail.com
Re: [LTP] [PATCH 6/7 V2] runtest/fs: change parameters of growfiles
Hi!
Quoted 3 lines
Hi Cyril,
Is this OK?
Yes, this time both description and patche seem fine. Will commit in a minute.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
PATCH 7/7 testcases: syscalls: close file descriptors before unlinking
In reply to Andrew ChenFrom: Andrew Chen <[email protected]>
Ensure file descriptors are closed before unlinking them, or we cannot remove the generated directories after these tests. The leftover directories may cause tests failed in latter runs once the directory names are hit.
--- .../testcases/kernel/syscalls/fstatat/fstatat01.c | 4 +++- .../kernel/syscalls/futimesat/futimesat01.c | 4 +++- .../testcases/kernel/syscalls/openat/openat01.c | 11 ++++++++++- .../kernel/syscalls/readlinkat/readlinkat01.c | 4 +++- .../kernel/syscalls/renameat/renameat01.c | 4 +++- .../kernel/syscalls/unlinkat/unlinkat01.c | 5 ++++- 6 files changed, 26 insertions(+), 6 deletions(-)
ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c +3 -1
@@ -73,6 +73,7 @@ char testfile[256];char testfile2[256 ];char testfile3[256 ];int dirfd, fd, ret; +int innerfd;int fds[TEST_CASES ];char *filenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,EINVAL ,0 };
@@ -217,7 +218,7 @@ void setup_every_copy()exit (-1 ); } - fd =open (testfile2,O_CREAT |O_RDWR ,0600 ); + innerfd =open (testfile2,O_CREAT |O_RDWR ,0600 );if (fd <0 ) {perror ("open: " );exit (-1 );
@@ -258,6 +259,7 @@ void setup()void cleanup () {/* Remove them */ +close (innerfd);unlink (testfile2);unlink (testfile3);unlink (testfile);
ltp-full-20101031/testcases/kernel/syscalls/futimesat/futimesat01.c +3 -1
@@ -73,6 +73,7 @@ char testfile[256];char testfile2[256 ];char testfile3[256 ];int dirfd, fd, ret; +int innerfd;int fds[TEST_CASES ];char *filenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,0 };
@@ -184,7 +185,7 @@ void setup_every_copy()exit (-1 ); } - fd =open (testfile2,O_CREAT |O_RDWR ,0600 ); + innerfd =open (testfile2,O_CREAT |O_RDWR ,0600 );if (fd <0 ) {perror ("open: " );exit (-1 );
@@ -224,6 +225,7 @@ void setup()void cleanup () {/* Remove them */ +close (innerfd);unlink (testfile2);unlink (testfile3);unlink (testfile);
ltp-full-20101031/testcases/kernel/syscalls/openat/openat01.c +10 -1
@@ -72,6 +72,7 @@ char testfile[256];char testfile2[256 ];char testfile3[256 ];int dirfd, fd, ret; +int innerfds[2 ];int fds[TEST_CASES ];char *filenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,0 };
@@ -118,9 +119,12 @@ int main(int ac, char **av)* Call openat */ for (i =0 ; i <TST_TOTAL ; i++) { -TEST (myopenat +TEST (fd =myopenat (fds[i], filenames[i],O_CREAT |O_WRONLY ,0600 )); +if (i <2 ) + innerfds[i] = fd; +/* check return code */ if (TEST_ERRNO == expected_errno[i]) {
@@ -206,7 +210,12 @@ void setup()void cleanup () {/* Remove them */ +int i;char tmppathname[256 ]; + +for (i =0 ; i <2 ; ++i) +close (innerfds[i]); +strcpy (tmppathname, pathname);unlink (strcat (strcat (tmppathname,"/" ), testfile));unlink (testfile);
ltp-full-20101031/testcases/kernel/syscalls/readlinkat/readlinkat01.c +3 -1
@@ -83,6 +83,7 @@ char dtestfile2[256];char testfile3[256 ];char dtestfile3[256 ];int dirfd, fd, ret; +int innerfd;int fds[TEST_CASES ];char *filenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,0 };
@@ -222,7 +223,7 @@ void setup_every_copy()exit (-1 ); } - fd =open (testfile2,O_CREAT |O_RDWR ,0600 ); + innerfd =open (testfile2,O_CREAT |O_RDWR ,0600 );if (fd <0 ) {perror ("open: " );exit (-1 );
@@ -285,6 +286,7 @@ void setup()void cleanup () {/* Remove them */ +close (innerfd);unlink (testfile2);unlink (dtestfile2);unlink (testfile3);
ltp-full-20101031/testcases/kernel/syscalls/renameat/renameat01.c +3 -1
@@ -81,6 +81,7 @@ char dtestfile2[256];char testfile3[256 ];char dtestfile3[256 ];int olddirfd, newdirfd, fd, ret; +int innerfd;int oldfds[TEST_CASES ], newfds[TEST_CASES ];char *oldfilenames[TEST_CASES ], *newfilenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,0 };
@@ -208,7 +209,7 @@ void setup_every_copy()exit (-1 ); } - fd =open (testfile2,O_CREAT |O_RDWR ,0600 ); + innerfd =open (testfile2,O_CREAT |O_RDWR ,0600 );if (fd <0 ) {perror ("open: " );exit (-1 );
@@ -258,6 +259,7 @@ void setup()void cleanup () {/* Remove them */ +close (innerfd);unlink (testfile2);unlink (dtestfile2);unlink (testfile3);
ltp-full-20101031/testcases/kernel/syscalls/unlinkat/unlinkat01.c +4 -1
@@ -78,6 +78,7 @@ char testfile[256];char testfile2[256 ];char testfile3[256 ];int dirfd, fd, ret; +int innerfd;int fds[TEST_CASES ];char *filenames[TEST_CASES ];int expected_errno[TEST_CASES ] = {0 ,0 ,ENOTDIR ,EBADF ,EINVAL ,0 ,0 };
@@ -196,7 +197,7 @@ void setup_every_copy()exit (-1 ); } - fd =open (testfile2,O_CREAT |O_RDWR ,0600 ); + innerfd =open (testfile2,O_CREAT |O_RDWR ,0600 );if (fd <0 ) {perror ("open: " );exit (-1 );
@@ -239,6 +240,8 @@ void cleanup() {/* Remove them */ char tmppathname[256 ] ="" ; + +close (innerfd);strcat (strcat (strcat (tmppathname, pathname),"/" ), subpathname);rmdir (tmppathname);unlink (testfile2);
Signature · 13 lines
1.6.5 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 7/7] testcases: syscalls: close file descriptors before unlinking
Hi!
Quoted 4 lines
Ensure file descriptors are closed before unlinking them, or we cannot remove the generated directories after these tests. The leftover directories may cause tests failed in latter runs once the directory names are hit.
I fail to see the problem here (which doesn't mean that there isn't any). If you do unlink() of file, it's removed from filesystem tree regardless if it's open or not.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Re: [LTP] [PATCH 7/7] testcases: syscalls: close file descriptors before unlinking
In reply to Andrew ChenHi!
Quoted 4 lines
Ensure file descriptors are closed before unlinking them, or we cannot remove the generated directories after these tests. The leftover directories may cause tests failed in latter runs once the directory names are hit.
Basically all the patches but this one looks reasonably. Could you please fix and resend the rest of the patches. Also have you tried to change the setup to create files in TMP insted of PWD?
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
A message that is not in the archive (sent off-list or not yet received): CANj_sbBZGdHond=dOHRKtgBrEHYiK8-iQD=hM-iv3ZU1J5_aYQ@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): CANj_sbB1KoHxDCBEnGGX66LihMY-00N+mj+rv-4zPYA7XpkssQ@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CANj_sbCv=TKkRuaPmfWOBz4qArC1eKEuCoDiMb2oLrWCOf_GWQ@mail.gmail.com
Re: [LTP] [PATCH 7/7] testcases: syscalls: close file descriptors before unlinking
Hi!
Quoted 3 lines
I've tried creating the files in TMP and the tests got passed. I also checked the
rmdir(), it worked fine and no ENOTEMPTY. So, is this a filesystem specific issue?
Not really sure, for some reason files in $LTPROOT are not removed if the fd is open on unlink(), could be anything from kernel bug to well defined behavior in your setup.
Anyway these tests needs to be fixed and as usual patches are welcome ;).
Signature · 12 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [LTP] [PATCH] testcases: syscalls: use tst_tmpdir() interface
Hi!
First of all, please use more recent LTP source (ideally git checkout). The '/* End setup() */' and '/* End cleanup() */' comments were removed about an year ago.
Quoted 13 lines
index 5f81dac..0851cbc 100644
ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c +2
-0@@ -247,6 +247,8 @@ void setup()/* capture signals */ tst_sig (NOFORK ,DEF_HANDLER , cleanup); +tst_tmpdir (); +/* Pause if that option was specified */ TEST_PAUSE ; }/* End setup() */
ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c void cleanup() · line 278
Quoted 8 lines
ltp-full-20101031/testcases/kernel/syscalls/fstatat/fstatat01.c +2
-0@@ -269,6 +271,8 @@ void cleanup()*/ TEST_CLEANUP ; +tst_rmdir (); +/* exit with return code appropriate for results */ tst_exit (); }/* End cleanup() */
You missed the testfile3 that uses absolute path to /tmp/ which should rather be absoulute path to tst_tmpdir. Something like this should work:
snprintf(testfile3, sizeof(testfile3),
"%s/fstatattestfile.txt", tst_get_tmpdir())
Note that we no longer need the pid in the filenames as the create test directory is unique.
And the same goes for the rest of the testcases.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 12 lines
Busybox's xargs doesn't recongize the --max-args option. Use -n instead.
Signed-off-by Andrew Chen <[email protected]>--- ltp-full-20101031/testscripts/test_fs_bind.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)ltp-full-20101031/testscripts/test_fs_bind.sh +0
-0
ltp-full-20101031/testscripts/test_fs_bind.sh restore_mounts() · line 324
Quoted 8 lines
ltp-full-20101031/testscripts/test_fs_bind.sh +1
-1@@ -318,7 +318,7 @@ restore_mounts() # new mounts around and will never remove mounts outside the test # directory ( while grep_mounts ; do - grep_mounts | awk '{print $3}' | xargs -r --max-args=1 umount -l + grep_mounts | awk '{print $3}' | xargs -r -n 1 umount -l done ) >& /dev/null # mount list and exit with 0
This patch is good to go, but doesn't apply.
git am ...
Applying: testcases: fs_bind: fix hanging of testscript
error: ltp-full-20101031/testscripts/test_fs_bind.sh: does not exist in index Patch failed at 0001 testcases: fs_bind: fix hanging of testscript When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort".
As I said before there is ltp-full-20101031 that shouldn't be there. Could you please fix and resend it.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list