Hi!
> >> This a series promised in 'Re: [LTP] [PATCH V2 8/8] controllers/cpuset: 
> >> reorganization'.
> > The patches looks good, but when I try to run it on SLES11 SP3 I got
> > failures in setup() in cpuset_funcs.sh:
> >
> > TFAIL  :  Could not mount cgroup filesystem with
> > TWARN  :  /dev/cpuset already exists.. overwriting
> > mkdir: cannot create directory `/dev/cpuset': File exists
> > ...
> >
> >
> > If I comment the code in the setup() the tests at least run, but I got a
> > lot of invalid arguments and errors (see bellow). This is machine with
> > two nodes and 24 Xeon CPUs.
> 
> Thanks. I will check it. Could you paste the code you comment?

Just disable the setup, for example like this:

diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh 
b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
index a83845c..b178d53 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
@@ -129,6 +129,7 @@ check()
 # clean any group created eralier (if any)
 setup()
 {
+       return 0;
        if [ -e "$CPUSET" ]
        then
                tst_resm TWARN "$CPUSET already exist.. overwriting"


And as I've looked for the the cpuset_funcs.sh I've found that there are two 
copies of the file that differ only in one line.

$ find -name cpuset_funcs.sh
./testcases/kernel/controllers/cpuset/cpuset_lib/cpuset_funcs.sh
./testcases/kernel/controllers/cpuset/cpuset_funcs.sh

$ diff -u cpuset_funcs.sh cpuset_lib/cpuset_funcs.sh 
--- cpuset_funcs.sh     2013-10-16 12:06:12.978604247 +0200
+++ cpuset_lib/cpuset_funcs.sh  2013-05-27 11:16:48.186777123 +0200
@@ -31,7 +31,7 @@
        N_NODES="`cat /sys/devices/system/node/has_normal_memory`"
 fi
 N_NODES=${N_NODES#*-*}
-N_NODES=$(($N_NODES + 1))
+: $((N_NODES++))
 
 CPUSET="/dev/cpuset"
 CPUSET_TMP="/tmp/cpuset_tmp"


We should remove one of them...

> I suppose cleanup() function doesn't perform normally. Since it has many 
> '> /dev/null 2>&1' you didn't see any errors on the screen.

That is likely.

And after I've rebooted the machine, the tests seems to run fine (the setup is
no longer commented).

I think that the problem is that the cleanup() is not able to cope with the
/dev/cpuset directory left out after killed cpuset01 test. I will look into
this.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to