239
test/mng_mod/issues/1032-34/result.log
Normal file
239
test/mng_mod/issues/1032-34/result.log
Normal file
@ -0,0 +1,239 @@
|
||||
①Issueで報告されたテストプログラムによる確認
|
||||
$ mcexec ./test_mck -s getrusage -n 0
|
||||
TEST_SUITE: getrusage
|
||||
TEST_NUMBER: 0
|
||||
ARGS:
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=0s + 565us
|
||||
ru_stime=0s + 14923us
|
||||
ru_maxrss=6088
|
||||
------------------------------
|
||||
allocation memory 16777216 byte(16384 KiB)
|
||||
alarm 2 seconds wait.
|
||||
sleep 2 seconds wait.
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=1s + 998545us
|
||||
ru_stime=2s + 17802us
|
||||
ru_maxrss=22492
|
||||
------------------------------
|
||||
free memory 16777216 byte(16384 KiB)
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=1s + 998554us
|
||||
ru_stime=2s + 17932us
|
||||
ru_maxrss=22492
|
||||
------------------------------
|
||||
RESULT: you need check rusage value
|
||||
|
||||
$ mcexec ./test_mck -s getrusage -n 1
|
||||
TEST_SUITE: getrusage
|
||||
TEST_NUMBER: 1
|
||||
ARGS:
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=0s + 0us
|
||||
ru_stime=0s + 0us
|
||||
ru_maxrss=0
|
||||
------------------------------
|
||||
allocation memory 16777216 byte(16384 KiB)
|
||||
alarm 2 seconds wait.
|
||||
sleep 2 seconds wait.
|
||||
free memory 16777216 byte(16384 KiB)
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=1s + 998065us
|
||||
ru_stime=2s + 2942us
|
||||
ru_maxrss=21828
|
||||
------------------------------
|
||||
RESULT: you need check rusage value
|
||||
|
||||
$ mcexec ./test_mck -s getrusage -n 1
|
||||
TEST_SUITE: getrusage
|
||||
TEST_NUMBER: 2
|
||||
ARGS:
|
||||
[parent before]
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=0s + 563us
|
||||
ru_stime=0s + 10281us
|
||||
ru_maxrss=6096
|
||||
------------------------------
|
||||
[child before]
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=0s + 7us
|
||||
ru_stime=0s + 30us
|
||||
ru_maxrss=14304
|
||||
------------------------------
|
||||
allocation memory 16777216 byte(16384 KiB)
|
||||
alarm 2 seconds wait.
|
||||
sleep 2 seconds wait.
|
||||
free memory 16777216 byte(16384 KiB)
|
||||
[child after]
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=1s + 997905us
|
||||
ru_stime=2s + 3090us
|
||||
ru_maxrss=30708
|
||||
------------------------------
|
||||
[parent after]
|
||||
------------------------------
|
||||
show_rusage():
|
||||
ru_utime=0s + 580us
|
||||
ru_stime=4s + 12829us
|
||||
ru_maxrss=30712
|
||||
------------------------------
|
||||
RESULT: you need check rusage value
|
||||
|
||||
②McKernelでのgetrusage()の基本動作確認
|
||||
/home/satoken/ppos/bin/mcexec ./CT_001
|
||||
---- just started ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 0.000526 s (+ 0.000526 s)
|
||||
[OK] stime: 0.010256 s (+ 0.010256 s)
|
||||
---- add utime 2sec ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 1.997451 s (+ 1.996925 s)
|
||||
[OK] stime: 0.010382 s (+ 0.000126 s)
|
||||
---- add stime 1sec ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 1.997458 s (+ 0.000007 s)
|
||||
[OK] stime: 1.008919 s (+ 0.998537 s)
|
||||
*** CT_001 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_002
|
||||
---- just started ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 6016 KB (+ 6016 KB)
|
||||
---- mmap and access 12MB (12288 KB) ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 18356 KB (+ 12340 KB)
|
||||
---- munmap 12MB (12288 KB) ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 18356 KB (+ 0 KB)
|
||||
---- mmap and access 16MB (16384 KB) ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 22452 KB (+ 4096 KB)
|
||||
*** CT_002 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_003
|
||||
---- just started ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 0.000528 s (+ 0.000528 s)
|
||||
[OK] stime: 0.010259 s (+ 0.010259 s)
|
||||
---- create thread and join ----
|
||||
---- add utime 2sec in sub thread ----
|
||||
---- add stime 1sec in sub thread ----
|
||||
---- sub thread exit ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 1.997488 s (+ 1.996960 s)
|
||||
[OK] stime: 4.005689 s (+ 3.995430 s)
|
||||
*** CT_003 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_004
|
||||
---- just started ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 6012 KB (+ 6012 KB)
|
||||
---- create thread and join ----
|
||||
---- mmap and access 16MB (16384 KB) in sub thread ----
|
||||
---- munmap 16MB (16384 KB) in sub thread ----
|
||||
---- sub thread exit ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] maxrss: 30652 KB (+ 24640 KB)
|
||||
*** CT_004 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_005
|
||||
---- just started ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 0.000520 s (+ 0.000520 s)
|
||||
[OK] stime: 0.010293 s (+ 0.010293 s)
|
||||
[OK] maxrss: 6016 KB (+ 6016 KB)
|
||||
---- fork child process ----
|
||||
---- add utime 3sec in parent ----
|
||||
---- wait child's exit ----
|
||||
[ RUSAGE_SELF ]
|
||||
[OK] utime: 2.995897 s (+ 2.995377 s)
|
||||
[OK] stime: 0.015820 s (+ 0.005527 s)
|
||||
[OK] maxrss: 6088 KB (+ 72 KB)
|
||||
*** CT_005 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_006
|
||||
---- just started ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] utime: 0.000000 s (+ 0.000000 s)
|
||||
[OK] stime: 0.000000 s (+ 0.000000 s)
|
||||
---- fork child process ----
|
||||
---- add utime 1sec in parent ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] utime: 0.000000 s (+ 0.000000 s)
|
||||
[OK] stime: 0.000000 s (+ 0.000000 s)
|
||||
---- wait child's exit ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] utime: 1.996942 s (+ 1.996942 s)
|
||||
[OK] stime: 0.998600 s (+ 0.998600 s)
|
||||
*** CT_006 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_007
|
||||
---- just started ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] maxrss: 0 KB (+ 0 KB)
|
||||
---- fork child process ----
|
||||
---- mmap and access 32MB (32768 KB) in parent ----
|
||||
---- munmap 32MB (32768 KB) in parent ----
|
||||
---- wait child's exit ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] maxrss: 21520 KB (+ 21520 KB)
|
||||
*** CT_007 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_008
|
||||
---- just started ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] utime: 0.000000 s (+ 0.000000 s)
|
||||
[OK] stime: 0.000000 s (+ 0.000000 s)
|
||||
[OK] maxrss: 0 KB (+ 0 KB)
|
||||
---- fork child process ----
|
||||
---- wait child's exit ----
|
||||
[ RUSAGE_CHILDREN ]
|
||||
[OK] utime: 2.999739 s (+ 2.999739 s)
|
||||
[OK] stime: 2.009159 s (+ 2.009159 s)
|
||||
[OK] maxrss: 37900 KB (+ 37900 KB)
|
||||
*** CT_008 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_009
|
||||
---- just started ----
|
||||
[OK] utime: 0.000533 s (+ 0.000533 s)
|
||||
[OK] stime: 0.010117 s (+ 0.010117 s)
|
||||
---- add utime 1sec in main thread ----
|
||||
---- create thread and join ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] utime: 0.000005 s (+ 0.000005 s)
|
||||
[OK] stime: 0.000015 s (+ 0.000015 s)
|
||||
---- add utime 2sec in sub thread ----
|
||||
---- add stime 1sec in sub thread ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] utime: 1.996923 s (+ 1.996923 s)
|
||||
[OK] stime: 0.998568 s (+ 0.998568 s)
|
||||
---- sub thread exit ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] utime: 0.999024 s (+ 0.998491 s)
|
||||
[OK] stime: 3.007089 s (+ 2.996972 s)
|
||||
*** CT_009 PASS
|
||||
|
||||
/home/satoken/ppos/bin/mcexec ./CT_010
|
||||
---- just started ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] maxrss: 6012 KB (+ 6012 KB)
|
||||
---- mmap and access 8MB (8192 KB) in main thread ----
|
||||
---- munmap 8MB (8192 KB) in main thread ----
|
||||
---- create and join thread ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] maxrss: 14268 KB
|
||||
---- mmap and access 16MB (16384 KB) in sub thread ----
|
||||
---- munmap 16MB (16384 KB) in sub thread ----
|
||||
---- sub thread exit ----
|
||||
[ RUSAGE_THREAD ]
|
||||
[OK] maxrss: 30652 KB (+ 24640 KB)
|
||||
*** CT_010 PASS
|
||||
|
||||
Reference in New Issue
Block a user