* Re: [LTP] [PATCH v4 1/8] A library used to test memcg
2012-02-21 6:14 ` Caspar Zhang
@ 2012-02-21 6:56 ` Peng Haitao
0 siblings, 0 replies; 5+ messages in thread
From: Peng Haitao @ 2012-02-21 6:56 UTC (permalink / raw)
To: Caspar Zhang; +Cc: LTP List
[-- Attachment #1: Type: text/plain, Size: 2071 bytes --]
Caspar Zhang said the following on 2012-2-21 14:14:
>>> This library includes a set of functions used to test memcg.
>>>
>>
>> Hi, Can you comment or commit the following patch?
>>
>
> The patch looks good to me. Yet I'm not familiar with this part of
> codes, so I want to listen to others' opinion if possible.
>
> Also, could you please provide a result log for your updated controller
> tests?
>
Yeah.
[root@RHEL6U1GA-Intel64 ltp]# cat /opt/ltp/runtest/controllers
#DESCRIPTION:Resource Management testing
#cgroup cgroup_regression_test.sh
#memcg_regression memcg_regression_test.sh
memcg_function memcg_function_test.sh
memcg_max_usage_in_bytes memcg_max_usage_in_bytes_test.sh
memcg_move_charge_at_immigrate memcg_move_charge_at_immigrate_test.sh
memcg_memsw_limit_in_bytes memcg_memsw_limit_in_bytes_test.sh
memcg_stat memcg_stat_test.sh
memcg_use_hierarchy memcg_use_hierarchy_test.sh
memcg_usage_in_bytes memcg_usage_in_bytes_test.sh
#memcg_stress memcg_stress_test.sh
#memcg_control PAGESIZE=$(mem_process -p);memcg_control_test.sh $PAGESIZE $PAGESIZE $((PAGESIZE * 2))
#cgroup_fj run_cgroup_test_fj.sh
#controllers test_controllers.sh
[root@RHEL6U1GA-Intel64 ltp]# cat /opt/ltp/results/LTP_RUN_ON-2012_Feb_21-13h_41m_03s.log
Test Start Time: Tue Feb 21 13:41:04 2012
-----------------------------------------
Testcase Result Exit Value
-------- ------ ----------
memcg_function PASS 0
memcg_max_usage_in_bytes PASS 0
memcg_move_charge_at_immigrate PASS 0
memcg_memsw_limit_in_bytes PASS 0
memcg_stat PASS 0
memcg_use_hierarchy PASS 0
memcg_usage_in_bytes PASS 0
-----------------------------------------------
Total Tests: 7
Total Failures: 0
Kernel Version: 2.6.32-131.0.15.el6.x86_64
Machine Architecture: x86_64
Hostname: RHEL6U1GA-Intel64
The test stdout log can refer to the attached file memcg_test.log.
Thanks.
--
Best Regards,
Peng
[-- Attachment #2: memcg_test.log --]
[-- Type: text/plain, Size: 18262 bytes --]
INFO: creating /opt/ltp/results directory
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 6.1 (Santiago)
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Linux RHEL6U1GA-Intel64 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Gnu C gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
Gnu make 3.81
util-linux ng 2.17.2)
mount ng 2.17.2 (with libblkid and selinux support)
modutils 3.9
e2fsprogs 1.41.12
PPP 2.4.5
Linux C Library > libc.2.12
Dynamic linker (ldd) 2.12
Procps 3.2.8
Net-tools 1.60
iproute2 iproute2-ss091226
Kbd 1.15
Sh-utils 8.4
Modules Loaded nfs lockd fscache nfs_acl auth_rpcgss veth lzo_decompress lzo_compress ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_CHECKSUM iptable_mangle iptable_filter ip_tables bridge stp llc autofs4 sunrpc p4_clockmod freq_table speedstep_lib ipv6 ext3 jbd dm_mirror dm_region_hash dm_log vhost_net macvtap macvlan tun uinput e1000 sg sky2 microcode rfkill wmi serio_raw i2c_i801 i2c_core iTCO_wdt iTCO_vendor_support i6300esb shpchp e752x_edac edac_core ext4 mbcache jbd2 sd_mod crc_t10dif mptspi mptscsih mptbase scsi_transport_spi pata_acpi ata_generic ata_piix dm_mod
free reports:
total used free shared buffers cached
Mem: 2055392 1981172 74220 0 46772 1702056
-/+ buffers/cache: 232344 1823048
Swap: 1048568 0 1048568
/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 3000.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5984.66
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 3000.000
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5983.82
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 3000.000
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5983.87
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 1
cpu MHz : 3000.000
cache size : 1024 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5983.81
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
remove test cases which require the block device.
You can specify it with option -b
COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 7439 -n 7439 -p -f /tmp/ltp-OvPMw6aqH2/alltests -l /opt/ltp/results/LTP_RUN_ON-2012_Feb_21-13h_41m_03s.log -C /opt/ltp/output/LTP_RUN_ON-2012_Feb_21-13h_41m_03s.failed
LOG File: /opt/ltp/results/LTP_RUN_ON-2012_Feb_21-13h_41m_03s.log
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-2012_Feb_21-13h_41m_03s.failed
Running tests.......
<<<test_start>>>
tag=memcg_function stime=1329802864
cmdline=" memcg_function_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4096
Warming up for test: 1, pid: 7562
Process is still here after warm up: 7562
memcg_function_test 1 TPASS : rss=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-file -s 4096
Warming up for test: 2, pid: 7581
Process is still here after warm up: 7581
memcg_function_test 2 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --shm -k 3 -s 4096
Warming up for test: 3, pid: 7600
Process is still here after warm up: 7600
memcg_function_test 3 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon --mmap-file --shm -s 4096
Warming up for test: 4, pid: 7619
Process is still here after warm up: 7619
memcg_function_test 4 TPASS : rss=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-lock1 -s 4096
Warming up for test: 5, pid: 7638
Process is still here after warm up: 7638
memcg_function_test 5 TPASS : rss=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4096
Warming up for test: 6, pid: 7657
Process is still here after warm up: 7657
memcg_function_test 6 TPASS : rss=4096/4096
memcg_function_test 6 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-file -s 4096
Warming up for test: 7, pid: 7681
Process is still here after warm up: 7681
memcg_function_test 7 TPASS : rss=0/0
memcg_function_test 7 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --shm -k 8 -s 4096
Warming up for test: 8, pid: 7710
Process is still here after warm up: 7710
memcg_function_test 8 TPASS : rss=0/0
memcg_function_test 8 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon --mmap-file --shm -s 4096
Warming up for test: 9, pid: 7733
Process is still here after warm up: 7733
memcg_function_test 9 TPASS : rss=4096/4096
memcg_function_test 9 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-lock1 -s 4096
Warming up for test: 10, pid: 7756
Process is still here after warm up: 7756
memcg_function_test 10 TPASS : rss=4096/4096
memcg_function_test 10 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 8192
./memcg_lib.sh: line 174: 7780 Killed $TEST_PATH/memcg_process $1 -s $2
memcg_function_test 11 TPASS : memory.failcnt=6
Running /opt/ltp/testcases/bin/memcg_process --mmap-file -s 8192
./memcg_lib.sh: line 174: 7795 Killed $TEST_PATH/memcg_process $1 -s $2
memcg_function_test 12 TPASS : memory.failcnt=6
Running /opt/ltp/testcases/bin/memcg_process --shm -s 8192
./memcg_lib.sh: line 174: 7810 Killed $TEST_PATH/memcg_process $1 -s $2
memcg_function_test 13 TPASS : memory.failcnt=6
./memcg_lib.sh: line 209: 7825 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 14 TPASS : process 7825 is killed
./memcg_lib.sh: line 209: 7839 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 15 TPASS : process 7839 is killed
./memcg_lib.sh: line 209: 7855 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 16 TPASS : process 7855 is killed
./memcg_lib.sh: line 209: 7876 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 17 TPASS : process 7876 is killed
./memcg_lib.sh: line 209: 7896 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 18 TPASS : process 7896 is killed
./memcg_lib.sh: line 209: 7916 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 19 TPASS : process 7916 is killed
./memcg_lib.sh: line 209: 7930 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 20 TPASS : process 7930 is killed
./memcg_lib.sh: line 209: 7944 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_function_test 21 TPASS : process 7944 is killed
memcg_function_test 22 TPASS : input=4095, limit_in_bytes=4096
memcg_function_test 23 TPASS : input=4097, limit_in_bytes=8192
memcg_function_test 24 TPASS : input=1, limit_in_bytes=4096
memcg_function_test 25 TPASS : return value is 0
memcg_function_test 26 TPASS : return value is 1
memcg_function_test 27 TPASS : return value is 1
memcg_function_test 28 TPASS : return value is 1
memcg_function_test 29 TPASS : force memory succeeded
memcg_function_test 30 TPASS : force memory failed as expected
memcg_function_test 31 TPASS : return value is 0
memcg_function_test 32 TPASS : return value is 0
memcg_function_test 33 TPASS : return value is 0
memcg_function_test 34 TPASS : return value is 0
memcg_function_test 35 TPASS : return value is 1
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4096
Warming up for test: 36, pid: 8116
Process is still here after warm up: 8116
memcg_function_test 36 TPASS : rss=4096/4096
memcg_function_test 36 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4096
Warming up for test: 37, pid: 8141
Process is still here after warm up: 8141
memcg_function_test 37 TPASS : rss=4096/4096
memcg_function_test 37 TPASS : rss=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4096
Warming up for test: 38, pid: 8166
Process is still here after warm up: 8166
memcg_function_test 38 TPASS : rss=4096/4096
memcg_function_test 38 TPASS : rss=0/0
<<<execution_status>>>
initiation_status="ok"
duration=136 termination_type=exited termination_id=0 corefile=no
cutime=46 cstime=185
<<<test_end>>>
<<<test_start>>>
tag=memcg_max_usage_in_bytes stime=1329803000
cmdline="memcg_max_usage_in_bytes_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 1, pid: 8200
Process is still here after warm up: 8200
memcg_max_usage_in_bytes_test 1 TPASS : memory.max_usage_in_bytes=4194304/4194304
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 2, pid: 8218
Process is still here after warm up: 8218
memcg_max_usage_in_bytes_test 2 TPASS : memory.memsw.max_usage_in_bytes=4194304/4194304
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 3, pid: 8235
Process is still here after warm up: 8235
memcg_max_usage_in_bytes_test 3 TPASS : memory.max_usage_in_bytes=4194304/4194304
memcg_max_usage_in_bytes_test 3 TPASS : memory.max_usage_in_bytes=0/0
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 4, pid: 8254
Process is still here after warm up: 8254
memcg_max_usage_in_bytes_test 4 TPASS : memory.memsw.max_usage_in_bytes=4194304/4194304
memcg_max_usage_in_bytes_test 4 TPASS : memory.memsw.max_usage_in_bytes=0/0
<<<execution_status>>>
initiation_status="ok"
duration=24 termination_type=exited termination_id=0 corefile=no
cutime=6 cstime=27
<<<test_end>>>
<<<test_start>>>
tag=memcg_move_charge_at_immigrate stime=1329803024
cmdline="memcg_move_charge_at_immigrate_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
Warming up for test: 1, pid: 8290
Process is still here after warm up: 8290
memcg_move_charge_at_immigrate_test 1 TPASS : memory.usage_in_bytes=0/0
memcg_move_charge_at_immigrate_test 1 TPASS : memory.usage_in_bytes=4096/4096
Warming up for test: 2, pid: 8312
Process is still here after warm up: 8312
memcg_move_charge_at_immigrate_test 2 TPASS : memory.usage_in_bytes=4096/4096
memcg_move_charge_at_immigrate_test 2 TPASS : memory.usage_in_bytes=8192/8192
Warming up for test: 3, pid: 8334
Process is still here after warm up: 8334
memcg_move_charge_at_immigrate_test 3 TPASS : memory.usage_in_bytes=8192/8192
memcg_move_charge_at_immigrate_test 3 TPASS : memory.usage_in_bytes=4096/4096
Warming up for test: 4, pid: 8356
Process is still here after warm up: 8356
memcg_move_charge_at_immigrate_test 4 TPASS : memory.usage_in_bytes=8192/8192
memcg_move_charge_at_immigrate_test 4 TPASS : memory.usage_in_bytes=0/0
<<<execution_status>>>
initiation_status="ok"
duration=25 termination_type=exited termination_id=0 corefile=no
cutime=7 cstime=21
<<<test_end>>>
<<<test_start>>>
tag=memcg_memsw_limit_in_bytes stime=1329803049
cmdline="memcg_memsw_limit_in_bytes_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
./memcg_lib.sh: line 209: 8388 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_memsw_limit_in_bytes_test 1 TPASS : process 8388 is killed
./memcg_lib.sh: line 209: 8402 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_memsw_limit_in_bytes_test 2 TPASS : process 8402 is killed
./memcg_lib.sh: line 209: 8416 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_memsw_limit_in_bytes_test 3 TPASS : process 8416 is killed
./memcg_lib.sh: line 209: 8430 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_memsw_limit_in_bytes_test 4 TPASS : process 8430 is killed
./memcg_lib.sh: line 209: 8444 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_memsw_limit_in_bytes_test 5 TPASS : process 8444 is killed
memcg_memsw_limit_in_bytes_test 6 TPASS : input=4095, limit_in_bytes=4096
memcg_memsw_limit_in_bytes_test 7 TPASS : input=4097, limit_in_bytes=8192
memcg_memsw_limit_in_bytes_test 8 TPASS : input=1, limit_in_bytes=4096
memcg_memsw_limit_in_bytes_test 9 TPASS : return value is 0
memcg_memsw_limit_in_bytes_test 10 TPASS : return value is 1
memcg_memsw_limit_in_bytes_test 11 TPASS : return value is 1
memcg_memsw_limit_in_bytes_test 12 TPASS : return value is 1
<<<execution_status>>>
initiation_status="ok"
duration=23 termination_type=exited termination_id=0 corefile=no
cutime=12 cstime=47
<<<test_end>>>
<<<test_start>>>
tag=memcg_stat stime=1329803072
cmdline="memcg_stat_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
Running /opt/ltp/testcases/bin/memcg_process --shm -k 3 -s 4096
Warming up for test: 1, pid: 8542
Process is still here after warm up: 8542
memcg_stat_test 1 TPASS : cache=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-file -s 4096
Warming up for test: 2, pid: 8562
Process is still here after warm up: 8562
memcg_stat_test 2 TPASS : mapped_file=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-lock1 -s 4096
Warming up for test: 3, pid: 8587
Process is still here after warm up: 8587
memcg_stat_test 3 TPASS : unevictable=4096/4096
Running /opt/ltp/testcases/bin/memcg_process --mmap-lock2 -s 4096
Warming up for test: 4, pid: 8606
Process is still here after warm up: 8606
memcg_stat_test 4 TPASS : unevictable=4096/4096
memcg_stat_test 5 TPASS : hierarchical_memory_limit=4096/4096
memcg_stat_test 6 TPASS : hierarchical_memory_limit=8192/8192
memcg_stat_test 7 TPASS : hierarchical_memsw_limit=4096/4096
memcg_stat_test 8 TPASS : hierarchical_memsw_limit=8192/8192
<<<execution_status>>>
initiation_status="ok"
duration=29 termination_type=exited termination_id=0 corefile=no
cutime=9 cstime=33
<<<test_end>>>
<<<test_start>>>
tag=memcg_use_hierarchy stime=1329803101
cmdline="memcg_use_hierarchy_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
./memcg_lib.sh: line 209: 8696 Killed $TEST_PATH/memcg_process $2 -s $3
memcg_use_hierarchy_test 1 TPASS : process 8696 is killed
memcg_use_hierarchy_test 2 TPASS : return value is 1
memcg_use_hierarchy_test 3 TPASS : return value is 1
<<<execution_status>>>
initiation_status="ok"
duration=5 termination_type=exited termination_id=0 corefile=no
cutime=4 cstime=13
<<<test_end>>>
<<<test_start>>>
tag=memcg_usage_in_bytes stime=1329803106
cmdline="memcg_usage_in_bytes_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 1, pid: 8745
Process is still here after warm up: 8745
memcg_usage_in_bytes_test 1 TPASS : memory.usage_in_bytes=4194304/4194304
Running /opt/ltp/testcases/bin/memcg_process --mmap-anon -s 4194304
Warming up for test: 2, pid: 8762
Process is still here after warm up: 8762
memcg_usage_in_bytes_test 2 TPASS : memory.memsw.usage_in_bytes=4194304/4194304
incrementing stop
<<<execution_status>>>
initiation_status="ok"
duration=12 termination_type=exited termination_id=0 corefile=no
cutime=3 cstime=11
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: 20120104-68-g2e2f72a
###############################################################"
Done executing testcases."
LTP Version: 20120104-68-g2e2f72a
###############################################################"
[-- Attachment #3: Type: text/plain, Size: 381 bytes --]
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 5+ messages in thread