On Wed, Feb 25, 2009 at 03:30:22AM -0800, Matt Helsley wrote:
> These testcases cover the basic functionality of the kernel cgroup
> freezer controller described in the kernel's
> Documentation/cgroups/freezer-subsystem.txt file. Briefly:
> 
> The freezer subsystem in the cgroup filesystem defines a file named
> freezer.state. Writing "FROZEN" to the state file will freeze all tasks
> in the cgroup or return with errno EBUSY if the group can't be frozen
> immediately (use /bin/echo if you wish to check exit codes). After a
> successful write of "FROZEN" writing "THAWED" will unfreeze the tasks in
> the cgroup. Reading will return the current state.
> 
> Note that freezer.state doesn't exist in the root cgroup, which means the
> root cgroup is non-freezable.
> 
> * Sample usage:
> 
>    $ mkdir /containers
>    $ mount -t cgroup -ofreezer freezer  /containers
>    $ mkdir /containers/0
>    $ echo $some_pid > /containers/0/tasks
>    $ cat /containers/0/tasks/freezer.state
>    THAWED
>    $ echo FROZEN > /containers/0/tasks/freezer.state
>    <IO Error (busy)>
>    $ cat /containers/0/tasks/freezer.state
>    FREEZING
>    $ sleep 0.2
>    $ echo FROZEN > /containers/0/tasks/freezer.state
>    $ cat /containers/0/tasks/freezer.state
>    FROZEN
>    $ echo FROZEN > /containers/0/tasks/freezer.state

Argh. Should be "echo THAWED" in the line above. Thanks to Serge for
finding this problem in the description.

> ---
> Results for x86 and ppc64 will be posted to the ltp-results list separately.

Here are the results.

ppc64:
------
log:

Test Start Time: Mon Feb 23 18:44:38 2009
-----------------------------------------
Testcase                       Result     Exit Value
--------                       ------     ----------
controllers                    PASS       0    

-----------------------------------------------
Total Tests: 1
Total Failures: 0
Kernel Version: 2.6.28
Machine Architecture: i686
Hostname: c0-f10.localdomain

stdout:

INFO: creating /root/ltp-freezer-test/output directory
INFO: creating /root/ltp-freezer-test/results directory

    INFO: no command files were provided, using default,
          system calls, memory management, IPC, scheduler
          direct io, file system, math and pty tests will 
          now be executed
    
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Fedora release 10 (Cambridge)
Fedora release 10 (Cambridge)
Fedora release 10 (Cambridge)
Linux c0-f10.localdomain 2.6.28 #1 SMP Tue Feb 10 02:48:39 PST 2009 i686 i686 
i386 GNU/Linux
 
Gnu C                  gcc (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Gnu make               3.81
util-linux             ng 2.14.1)
mount                  ng 2.14.1 (with libblkid and selinux support)
modutils               3.5
e2fsprogs              1.41.3
Linux C Library        > libc.2.9
Dynamic linker (ldd)   2.9
Procps                 3.2.7
Net-tools              1.60
Kbd                    1.12
Sh-utils               6.12
Modules Loaded         sunrpc virtio_net pcspkr floppy i2c_piix4 i2c_core 
ata_generic pata_acpi

free reports:
             total       used       free     shared    buffers     cached
Mem:        514024      65816     448208          0       4176      24972
-/+ buffers/cache:      36668     477356
Swap:       409648          0     409648

/proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 2
model name      : QEMU Virtual CPU version 0.9.1
stepping        : 3
cpu MHz         : 2393.962
cache size      : 2048 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat 
pse36 clflush mmx fxsr sse sse2 up pni
bogomips        : 4787.92
clflush size    : 64
power management:

remove test cases which require the block device.
You can specify it by option -b
LOG File: /root/ltp-freezer-test/results/LTP_RUN_ON-2009_Feb_23-18h_44m_37s.log
FAILED COMMAND File: 
/root/ltp-freezer-test/output/LTP_RUN_ON-2009_Feb_23-18h_44m_37s.failed
Running tests.......
<<<test_start>>>
tag=controllers stime=1235443478
cmdline="test_controllers.sh"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
CONTROLLERS TESTCASES: WARNING
Kernel does not support for cpu controller
Skipping all cpu controller testcases....
CONTROLLERS TESTCASES: WARNING
Kernel does not support for memory controller
Skipping all memory controller testcases....
CONTROLLERS TESTCASES: WARNING
Kernel does not support blockio controller
Skipping all block device I/O throttling testcases....
~/ltp-freezer-test/testcases/kernel/controllers/freezer /tmp/ltp-TYLN7ttZa1
Variable TST_TOTAL is set to 0, must be greater than zero
chmod u+x *.sh
Variable TST_TOTAL is set to 0, must be greater than zero
Variable TST_TOTAL is set to 0, must be greater than zero
Variable TST_TOTAL is set to 0, must be greater than zero
write_freezing.sh    0  INFO  :   running write_freezing.sh
write_freezing.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/write_freezing.sh
write_freezing.sh    2  PASS  :  write_freezing.sh
freeze_write_freezing.sh    0  INFO  :   running freeze_write_freezing.sh
freeze_write_freezing.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_write_freezing.sh
freeze_write_freezing.sh    3  PASS  :  freeze_write_freezing.sh
freeze_thaw.sh    0  INFO  :   running freeze_thaw.sh
freeze_thaw.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_thaw.sh
freeze_thaw.sh    4  PASS  :  freeze_thaw.sh
freeze_sleep_thaw.sh    0  INFO  :   running freeze_sleep_thaw.sh
INFO: Waiting until sleep command should have finished (1961) ... done.
freeze_sleep_thaw.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_sleep_thaw.sh
freeze_sleep_thaw.sh    5  PASS  :  freeze_sleep_thaw.sh
freeze_kill_thaw.sh    0  INFO  :   running freeze_kill_thaw.sh
INFO: Killing 2048 ... done.
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/libcgroup_freezer: 
line 924:  2048 Terminated              "$sample_cmd" "${ar...@]}"
freeze_kill_thaw.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_kill_thaw.sh
freeze_kill_thaw.sh    6  PASS  :  freeze_kill_thaw.sh
freeze_move_thaw.sh    0  INFO  :   running freeze_move_thaw.sh
freeze_move_thaw.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_move_thaw.sh
freeze_move_thaw.sh    7  PASS  :  freeze_move_thaw.sh
freeze_cancel.sh    0  INFO  :   running freeze_cancel.sh
freeze_cancel.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_cancel.sh
freeze_cancel.sh    8  PASS  :  freeze_cancel.sh
freeze_self_thaw.sh    0  INFO  :   running freeze_self_thaw.sh
freeze_self_thaw.sh    0  INFO  :   Waiting for 2355 to freeze itself
freeze_self_thaw.sh    0  INFO  :   2355 freezing itself
freeze_self_thaw.sh    0  INFO  :   2355 thawed successfully
freeze_self_thaw.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_self_thaw.sh
freeze_self_thaw.sh    9  PASS  :  freeze_self_thaw.sh
stop_freeze_thaw_cont.sh    0  INFO  :   running stop_freeze_thaw_cont.sh
stop_freeze_thaw_cont.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/stop_freeze_thaw_cont.sh
stop_freeze_thaw_cont.sh   10  PASS  :  stop_freeze_thaw_cont.sh
stop_freeze_sleep_thaw_cont.sh    0  INFO  :   running 
stop_freeze_sleep_thaw_cont.sh
INFO: Waiting until sleep command should have finished (2553) ... done.
stop_freeze_sleep_thaw_cont.sh    0  INFO  :   Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/stop_freeze_sleep_thaw_cont.sh
stop_freeze_sleep_thaw_cont.sh   11  PASS  :  stop_freeze_sleep_thaw_cont.sh
fork_freeze.sh    0  INFO  :   running fork_freeze.sh
fork_freeze.sh 12/11: TINFO  Cleaning up 
/root/ltp-freezer-test/testcases/kernel/controllers/freezer/fork_freeze.sh
fork_freeze.sh   12  PASS  :  fork_freeze.sh
/tmp/ltp-TYLN7ttZa1
incrementing stop
<<<execution_status>>>
duration=70 termination_type=exited termination_id=0 corefile=no
cutime=506 cstime=531
<<<test_end>>>
INFO: pan reported all tests PASS
LTP Version: LTP-20090131
        
       ###############################################################"
        
            Done executing testcases."
            LTP Version:  LTP-20090131
       ###############################################################"



ppc64:
-----
log:

Test Start Time: Thu Feb 19 00:51:59 2009
-----------------------------------------
Testcase                       Result     Exit Value
--------                       ------     ----------
controllers                    PASS       0    

-----------------------------------------------
Total Tests: 1
Total Failures: 0
Kernel Version: 2.6.28-autokern1
Machine Architecture: ppc64
Hostname: alrtbc1.austin.ibm.com

stdout:

INFO: creating /usr/local/autobench/var/tmp/user/ltp-freezer-test/output 
directory
INFO: creating /usr/local/autobench/var/tmp/user/ltp-freezer-test/results 
directory

    INFO: no command files were provided, using default,
          system calls, memory management, IPC, scheduler
          direct io, file system, math and pty tests will 
          now be executed
    
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
Linux alrtbc1.austin.ibm.com 2.6.28-autokern1 #1 SMP Wed Feb 18 19:32:40 EST 
2009 ppc64 ppc64 ppc64 GNU/Linux
 
Gnu C                  gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
Gnu make               3.81
util-linux             pre7)
mount                  pre7)
modutils               3.3-pre2
e2fsprogs              1.39
PPP                    2.4.4
Linux C Library        > libc.2.5
Dynamic linker (ldd)   2.5
Procps                 3.2.7
Net-tools              1.60
Kbd                    1.12
Sh-utils               5.97
Modules Loaded         binfmt_misc dm_multipath dm_mirror dm_region_hash dm_log 
dm_mod autofs4 sg

free reports:
             total       used       free     shared    buffers     cached
Mem:        470052     227676     242376          0      15620     150288
-/+ buffers/cache:      61768     408284
Swap:            0          0          0

/proc/cpuinfo
processor       : 0
cpu             : PPC970, altivec supported
clock           : 1600.000000MHz
revision        : 2.2 (pvr 0039 0202)

processor       : 1
cpu             : PPC970, altivec supported
clock           : 1600.000000MHz
revision        : 2.2 (pvr 0039 0202)

timebase        : 199837323
platform        : pSeries
model           : IBM,8842-21X
machine         : CHRP IBM,8842-21X
remove test cases which require the block device.
You can specify it by option -b
LOG File: 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/results/LTP_RUN_ON-2009_Feb_19-00h_51m_58s.log
FAILED COMMAND File: 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/output/LTP_RUN_ON-2009_Feb_19-00h_51m_58s.failed
Running tests.......
<<<test_start>>>
tag=controllers stime=1235022719
cmdline="test_controllers.sh"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
CONTROLLERS TESTCASES: WARNING
Kernel does not support for cpu controller
Skipping all cpu controller testcases....
CONTROLLERS TESTCASES: WARNING
Kernel does not support for memory controller
Skipping all memory controller testcases....
CONTROLLERS TESTCASES: WARNING
Kernel does not support blockio controller
Skipping all block device I/O throttling testcases....
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer
 /tmp/ltp-YydVS28010
Variable TST_TOTAL is set to 0, must be greater than zero
chmod u+x *.sh
Variable TST_TOTAL is set to 0, must be greater than zero
Variable TST_TOTAL is set to 0, must be greater than zero
Variable TST_TOTAL is set to 0, must be greater than zero
write_freezing.sh    0  INFO  :   running write_freezing.sh
write_freezing.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/write_freezing.sh
write_freezing.sh    2  PASS  :  write_freezing.sh
freeze_write_freezing.sh    0  INFO  :   running freeze_write_freezing.sh
freeze_write_freezing.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_write_freezing.sh
freeze_write_freezing.sh    3  PASS  :  freeze_write_freezing.sh
freeze_thaw.sh    0  INFO  :   running freeze_thaw.sh
freeze_thaw.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_thaw.sh
freeze_thaw.sh    4  PASS  :  freeze_thaw.sh
freeze_sleep_thaw.sh    0  INFO  :   running freeze_sleep_thaw.sh
INFO: Waiting until sleep command should have finished (28377) ... done.
freeze_sleep_thaw.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_sleep_thaw.sh
freeze_sleep_thaw.sh    5  PASS  :  freeze_sleep_thaw.sh
freeze_kill_thaw.sh    0  INFO  :   running freeze_kill_thaw.sh
INFO: Killing 28464 ... done.
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/libcgroup_freezer:
 line 924: 28464 Terminated              "$sample_cmd" "${ar...@]}"
freeze_kill_thaw.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_kill_thaw.sh
freeze_kill_thaw.sh    6  PASS  :  freeze_kill_thaw.sh
freeze_move_thaw.sh    0  INFO  :   running freeze_move_thaw.sh
freeze_move_thaw.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_move_thaw.sh
freeze_move_thaw.sh    7  PASS  :  freeze_move_thaw.sh
freeze_cancel.sh    0  INFO  :   running freeze_cancel.sh
freeze_cancel.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_cancel.sh
freeze_cancel.sh    8  PASS  :  freeze_cancel.sh
freeze_self_thaw.sh    0  INFO  :   running freeze_self_thaw.sh
freeze_self_thaw.sh    0  INFO  :   Waiting for 28771 to freeze itself
freeze_self_thaw.sh    0  INFO  :   28771 freezing itself
freeze_self_thaw.sh    0  INFO  :   28771 thawed successfully
freeze_self_thaw.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/freeze_self_thaw.sh
freeze_self_thaw.sh    9  PASS  :  freeze_self_thaw.sh
stop_freeze_thaw_cont.sh    0  INFO  :   running stop_freeze_thaw_cont.sh
stop_freeze_thaw_cont.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/stop_freeze_thaw_cont.sh
stop_freeze_thaw_cont.sh   10  PASS  :  stop_freeze_thaw_cont.sh
stop_freeze_sleep_thaw_cont.sh    0  INFO  :   running 
stop_freeze_sleep_thaw_cont.sh
INFO: Waiting until sleep command should have finished (28964) ... done.
stop_freeze_sleep_thaw_cont.sh    0  INFO  :   Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/stop_freeze_sleep_thaw_cont.sh
stop_freeze_sleep_thaw_cont.sh   11  PASS  :  stop_freeze_sleep_thaw_cont.sh
fork_freeze.sh    0  INFO  :   running fork_freeze.sh
fork_freeze.sh 12/11: TINFO  Cleaning up 
/usr/local/autobench/var/tmp/user/ltp-freezer-test/testcases/kernel/controllers/freezer/fork_freeze.sh
fork_freeze.sh 12/11: TWARN sample process is frozen stiff
fork_freeze.sh 12/11: TWARN cgroup task list is not empty: 
  PID  PPID  PGID   TID TPGID          BLOCKED          IGNORED          
PENDING STAT TT       COMMAND
29062 29052 28131 29062 28004 0000000000000000 0000000000000006 
0000000000004000 R    pts/0    [timed_forkbomb]
fork_freeze.sh   12  PASS  :  fork_freeze.sh
/tmp/ltp-YydVS28010
incrementing stop
<<<execution_status>>>
duration=70 termination_type=exited termination_id=0 corefile=no
cutime=342 cstime=521
<<<test_end>>>
INFO: pan reported all tests PASS
LTP Version: LTP-20090131
        
       ###############################################################"
        
            Done executing testcases."
            LTP Version:  LTP-20090131
       ###############################################################"

------------------------------------------------------------------------------
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

Reply via email to