xref: /aosp_15_r20/external/ltp/runtest/mm (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#DESCRIPTION:Memory Mgmt tests
2*49cdfc7eSAndroid Build Coastguard Workermm01 mmap001 -m 10000
3*49cdfc7eSAndroid Build Coastguard Worker# 40 Mb mmap() test.
4*49cdfc7eSAndroid Build Coastguard Worker# Creates a 10000 page mmap, touches all of the map, sync's it, and
5*49cdfc7eSAndroid Build Coastguard Worker# munmap()s it.
6*49cdfc7eSAndroid Build Coastguard Workermm02 mmap001
7*49cdfc7eSAndroid Build Coastguard Worker# simple mmap() test.
8*49cdfc7eSAndroid Build Coastguard Worker#mm03 mmap001 -i 0 -I 1 -m 100
9*49cdfc7eSAndroid Build Coastguard Worker# repetitive mmapping test.
10*49cdfc7eSAndroid Build Coastguard Worker# Creates a one page map repetitively for one minute.
11*49cdfc7eSAndroid Build Coastguard Worker
12*49cdfc7eSAndroid Build Coastguard Workermtest01 mtest01 -p80
13*49cdfc7eSAndroid Build Coastguard Workermtest01w mtest01 -p80 -w
14*49cdfc7eSAndroid Build Coastguard Worker
15*49cdfc7eSAndroid Build Coastguard Worker#test for race conditions
16*49cdfc7eSAndroid Build Coastguard Workermtest05   mmstress
17*49cdfc7eSAndroid Build Coastguard Workermtest06   mmap1
18*49cdfc7eSAndroid Build Coastguard Workermtest06_2 mmap2 -a -p
19*49cdfc7eSAndroid Build Coastguard Workermtest06_3 mmap3 -p
20*49cdfc7eSAndroid Build Coastguard Worker# Remains diabled till the infinite loop problem is solved
21*49cdfc7eSAndroid Build Coastguard Worker#mtest-6_4 shmat1 -x 0.00005
22*49cdfc7eSAndroid Build Coastguard Worker
23*49cdfc7eSAndroid Build Coastguard Workermem02 mem02
24*49cdfc7eSAndroid Build Coastguard Worker
25*49cdfc7eSAndroid Build Coastguard Workerpage01 page01
26*49cdfc7eSAndroid Build Coastguard Workerpage02 page02
27*49cdfc7eSAndroid Build Coastguard Worker
28*49cdfc7eSAndroid Build Coastguard Workerdata_space data_space
29*49cdfc7eSAndroid Build Coastguard Workerstack_space stack_space
30*49cdfc7eSAndroid Build Coastguard Worker
31*49cdfc7eSAndroid Build Coastguard Workershmt02 shmt02
32*49cdfc7eSAndroid Build Coastguard Workershmt03 shmt03
33*49cdfc7eSAndroid Build Coastguard Workershmt04 shmt04
34*49cdfc7eSAndroid Build Coastguard Workershmt05 shmt05
35*49cdfc7eSAndroid Build Coastguard Workershmt06 shmt06
36*49cdfc7eSAndroid Build Coastguard Workershmt07 shmt07
37*49cdfc7eSAndroid Build Coastguard Workershmt08 shmt08
38*49cdfc7eSAndroid Build Coastguard Workershmt09 shmt09
39*49cdfc7eSAndroid Build Coastguard Workershmt10 shmt10
40*49cdfc7eSAndroid Build Coastguard Worker
41*49cdfc7eSAndroid Build Coastguard Workershm_test01	shm_test -l 10 -t 2
42*49cdfc7eSAndroid Build Coastguard Workermallocstress01	mallocstress
43*49cdfc7eSAndroid Build Coastguard Worker
44*49cdfc7eSAndroid Build Coastguard Workermmapstress01 mmapstress01
45*49cdfc7eSAndroid Build Coastguard Workermmapstress02 mmapstress02
46*49cdfc7eSAndroid Build Coastguard Workermmapstress03 mmapstress03
47*49cdfc7eSAndroid Build Coastguard Workermmapstress04 mmapstress04
48*49cdfc7eSAndroid Build Coastguard Workermmapstress05 mmapstress05
49*49cdfc7eSAndroid Build Coastguard Workermmapstress06 mmapstress06 20
50*49cdfc7eSAndroid Build Coastguard Workermmapstress07 TMPFILE=`mktemp $TMPDIR/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE
51*49cdfc7eSAndroid Build Coastguard Workermmapstress08 mmapstress08
52*49cdfc7eSAndroid Build Coastguard Workermmapstress09 mmapstress09 -p 20 -t 0.2
53*49cdfc7eSAndroid Build Coastguard Workermmapstress10 mmapstress10 -p 20 -t 0.2
54*49cdfc7eSAndroid Build Coastguard Worker
55*49cdfc7eSAndroid Build Coastguard Workermmap10 mmap10
56*49cdfc7eSAndroid Build Coastguard Workermmap10_1 mmap10 -a
57*49cdfc7eSAndroid Build Coastguard Workermmap10_2 mmap10 -s
58*49cdfc7eSAndroid Build Coastguard Workermmap10_3 mmap10 -a -s
59*49cdfc7eSAndroid Build Coastguard Workermmap10_4 mmap10 -a -s -i 60
60*49cdfc7eSAndroid Build Coastguard Worker
61*49cdfc7eSAndroid Build Coastguard Workerkallsyms kallsyms
62*49cdfc7eSAndroid Build Coastguard Worker
63*49cdfc7eSAndroid Build Coastguard Workerksm01 ksm01
64*49cdfc7eSAndroid Build Coastguard Workerksm01_1 ksm01 -u 128
65*49cdfc7eSAndroid Build Coastguard Workerksm02 ksm02
66*49cdfc7eSAndroid Build Coastguard Workerksm02_1 ksm02 -u 128
67*49cdfc7eSAndroid Build Coastguard Workerksm03 ksm03
68*49cdfc7eSAndroid Build Coastguard Workerksm03_1 ksm03 -u 128
69*49cdfc7eSAndroid Build Coastguard Workerksm04 ksm04
70*49cdfc7eSAndroid Build Coastguard Workerksm04_1 ksm04 -u 128
71*49cdfc7eSAndroid Build Coastguard Workerksm05 ksm05 -I 10
72*49cdfc7eSAndroid Build Coastguard Workerksm06 ksm06
73*49cdfc7eSAndroid Build Coastguard Workerksm06_1 ksm06 -n 10
74*49cdfc7eSAndroid Build Coastguard Workerksm06_2 ksm06 -n 8000
75*49cdfc7eSAndroid Build Coastguard Workerksm07 ksm07
76*49cdfc7eSAndroid Build Coastguard Worker
77*49cdfc7eSAndroid Build Coastguard Workercpuset01 cpuset01
78*49cdfc7eSAndroid Build Coastguard Worker
79*49cdfc7eSAndroid Build Coastguard Workeroom01 oom01
80*49cdfc7eSAndroid Build Coastguard Workeroom02 oom02
81*49cdfc7eSAndroid Build Coastguard Workeroom03 oom03
82*49cdfc7eSAndroid Build Coastguard Workeroom04 oom04
83*49cdfc7eSAndroid Build Coastguard Workeroom05 oom05
84*49cdfc7eSAndroid Build Coastguard Worker
85*49cdfc7eSAndroid Build Coastguard Workerswapping01 swapping01 -i 5
86*49cdfc7eSAndroid Build Coastguard Worker
87*49cdfc7eSAndroid Build Coastguard Workerthp01 thp01 -I 120
88*49cdfc7eSAndroid Build Coastguard Workerthp02 thp02
89*49cdfc7eSAndroid Build Coastguard Workerthp03 thp03
90*49cdfc7eSAndroid Build Coastguard Workerthp04 thp04
91*49cdfc7eSAndroid Build Coastguard Worker
92*49cdfc7eSAndroid Build Coastguard Workervma01 vma01
93*49cdfc7eSAndroid Build Coastguard Workervma02 vma02
94*49cdfc7eSAndroid Build Coastguard Workervma03 vma03
95*49cdfc7eSAndroid Build Coastguard Workervma04 vma04
96*49cdfc7eSAndroid Build Coastguard Workervma05 vma05.sh
97*49cdfc7eSAndroid Build Coastguard Worker
98*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory01 overcommit_memory
99*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory02 overcommit_memory -R 0
100*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory03 overcommit_memory -R 30
101*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory04 overcommit_memory -R 80
102*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory05 overcommit_memory -R 100
103*49cdfc7eSAndroid Build Coastguard Workerovercommit_memory06 overcommit_memory -R 200
104*49cdfc7eSAndroid Build Coastguard Worker
105*49cdfc7eSAndroid Build Coastguard Workermax_map_count max_map_count -i 10
106*49cdfc7eSAndroid Build Coastguard Worker
107*49cdfc7eSAndroid Build Coastguard Workermin_free_kbytes min_free_kbytes
108