Home
last modified time | relevance | path

Searched refs:PAGESIZE (Results 1 – 25 of 36) sorted by relevance

12

/external/ltp/testcases/kernel/controllers/memcg/functional/
Dmemcg_stat_test.sh50 test_mem_stat "--mmap-lock1" $PAGESIZE $PAGESIZE \
51 "unevictable" $PAGESIZE false
57 test_mem_stat "--mmap-lock2" $PAGESIZE $PAGESIZE \
58 "unevictable" $PAGESIZE false
67 echo $PAGESIZE > memory.limit_in_bytes
68 echo $((PAGESIZE*2)) > subgroup/memory.limit_in_bytes
71 check_mem_stat "hierarchical_memory_limit" $PAGESIZE
83 echo $PAGESIZE > memory.limit_in_bytes
84 echo $((PAGESIZE*2)) > subgroup/memory.limit_in_bytes
87 check_mem_stat "hierarchical_memory_limit" $((PAGESIZE*2))
[all …]
Dmemcg_limit_in_bytes.sh36 test_proc_kill $PAGESIZE "--mmap-lock1" $((PAGESIZE*2)) 0
41 test_proc_kill $PAGESIZE "--mmap-lock2" $((PAGESIZE*2)) 0
48 test_proc_kill $PAGESIZE "--mmap-anon" $((PAGESIZE*2)) 0
55 test_proc_kill $PAGESIZE "--mmap-file" $((PAGESIZE*2)) 0
62 test_proc_kill $PAGESIZE "--shm -k 18" $((PAGESIZE*2)) 0
69 test_proc_kill 0 "--mmap-anon" $PAGESIZE 0
74 test_proc_kill 0 "--mmap-file" $PAGESIZE 0
79 test_proc_kill 0 "--shm -k 21" $PAGESIZE 0
85 test_limit_in_bytes $((PAGESIZE-1)) 0
90 test_limit_in_bytes $((PAGESIZE+1)) 0
Dmemcg_max_usage_in_bytes_test.sh37 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \
38 "memory.max_usage_in_bytes" $((PAGESIZE*1024)) 0
49 echo $((PAGESIZE*2048)) > memory.limit_in_bytes
50 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_bytes
51 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \
52 "memory.memsw.max_usage_in_bytes" $((PAGESIZE*1024)) 0
58 test_max_usage_in_bytes "--mmap-anon" $((PAGESIZE*1024)) \
59 "memory.max_usage_in_bytes" $((PAGESIZE*1024)) 1
70 echo $((PAGESIZE*2048)) > memory.limit_in_bytes
71 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_bytes
[all …]
Dmemcg_usage_in_bytes_test.sh37 test_mem_stat "--mmap-anon" $((PAGESIZE*1024)) $((PAGESIZE*1024)) \
38 "memory.usage_in_bytes" $((PAGESIZE*1024)) false
49 echo $((PAGESIZE*2048)) > memory.limit_in_bytes
50 echo $((PAGESIZE*2048)) > memory.memsw.limit_in_bytes
51 test_mem_stat "--mmap-anon" $((PAGESIZE*1024)) $((PAGESIZE*1024)) \
52 "memory.memsw.usage_in_bytes" $((PAGESIZE*1024)) false
Dmemcg_memsw_limit_in_bytes_test.sh36 test_proc_kill $PAGESIZE "--mmap-lock1" $((PAGESIZE*2)) 1
41 test_proc_kill $PAGESIZE "--mmap-lock2" $((PAGESIZE*2)) 1
46 test_proc_kill 0 "--mmap-anon" $PAGESIZE 1
51 test_proc_kill 0 "--mmap-file" $PAGESIZE 1
56 test_proc_kill 0 "--shm -k 21" $PAGESIZE 1
61 test_limit_in_bytes $((PAGESIZE-1)) 1
66 test_limit_in_bytes $((PAGESIZE+1)) 1
Dmemcg_stat_rss.sh41 test_mem_stat "--mmap-file" $PAGESIZE $PAGESIZE "rss" 0 false
46 test_mem_stat "--shm -k 3" $PAGESIZE $PAGESIZE "rss" 0 false
67 test_mem_stat "--mmap-file" $PAGESIZE $PAGESIZE "rss" 0 true
72 test_mem_stat "--shm -k 8" $PAGESIZE $PAGESIZE "rss" 0 true
Dmemcg_failcnt.sh36 echo $PAGESIZE > memory.limit_in_bytes
37 malloc_free_memory "--mmap-anon" $(($PAGESIZE*2))
43 echo $PAGESIZE > memory.limit_in_bytes
44 malloc_free_memory "--mmap-file" $(($PAGESIZE*2))
50 echo $PAGESIZE > memory.limit_in_bytes
51 malloc_free_memory "--shm" $(($PAGESIZE*2))
Dmemcg_lib.sh32 PAGESIZE=$(tst_getconf PAGESIZE)
41 PAGESIZES=$(( $PAGESIZE * 33 ))
344 if [ \( $(($PAGESIZE*($1/$PAGESIZE))) -eq $limit \) \
345 -o \( $(($PAGESIZE*(($1+$PAGESIZE-1)/$PAGESIZE))) -eq $limit \) ]; then
Dmemcg_use_hierarchy_test.sh38 echo $PAGESIZE > memory.limit_in_bytes
42 test_proc_kill $((PAGESIZE*3)) "--mmap-lock1" $((PAGESIZE*2)) 0
Dmemcg_force_empty.sh36 memcg_process --mmap-anon -s $PAGESIZE &
40 signal_memcg_process $pid $PAGESIZE
/external/python/cpython2/Lib/test/
Dtest_mmap.py8 PAGESIZE = mmap.PAGESIZE variable
29 f.write('\0'* PAGESIZE)
31 f.write('\0'* (PAGESIZE-3) )
33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
39 self.assertEqual(m.find('foo'), PAGESIZE)
41 self.assertEqual(len(m), 2*PAGESIZE)
52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar'
57 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], '\0foobar\0')
69 self.assertEqual(start, PAGESIZE)
70 self.assertEqual(end, PAGESIZE + 6)
[all …]
/external/python/cpython3/Lib/test/
Dtest_mmap.py14 PAGESIZE = mmap.PAGESIZE variable
35 f.write(b'\0'* PAGESIZE)
37 f.write(b'\0'* (PAGESIZE-3) )
39 m = mmap.mmap(f.fileno(), 2 * PAGESIZE)
46 self.assertEqual(m.find(b'foo'), PAGESIZE)
48 self.assertEqual(len(m), 2*PAGESIZE)
59 m[PAGESIZE +3: PAGESIZE +3+3] = b'bar'
64 self.assertEqual(m[PAGESIZE-1 : PAGESIZE + 7], b'\0foobar\0')
76 self.assertEqual(start, PAGESIZE)
77 self.assertEqual(end, PAGESIZE + 6)
[all …]
/external/ltp/testcases/kernel/tracing/pt_test/
Dpt_test.c28 #define PAGESIZE 4096 macro
29 #define INTEL_PT_MEMSIZE (17*PAGESIZE)
118 buhsz = 2 * PAGESIZE; in setup()
/external/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect03.c51 #ifndef PAGESIZE
52 #define PAGESIZE 4096 macro
/external/python/cpython2/Lib/multiprocessing/
Dheap.py94 def __init__(self, size=mmap.PAGESIZE):
117 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
/external/u-boot/include/
Dmalloc.h549 # ifdef PAGESIZE
550 # define malloc_getpagesize PAGESIZE
/external/python/cpython3/Lib/multiprocessing/
Dheap.py108 def __init__(self, size=mmap.PAGESIZE):
131 length = self._roundup(max(self._size, size), mmap.PAGESIZE)
/external/ltp/testcases/commands/du/
Ddu01.sh76 page_size=$(tst_getconf PAGESIZE)
/external/ltp/testcases/kernel/controllers/memcg/control/
Dmemcg_control_test.sh44 PAGE_SIZE=$(tst_getconf PAGESIZE)
/external/ltp/testcases/commands/mkswap/
Dmkswap01.sh32 PAGE_SIZE=`tst_getconf PAGESIZE`
/external/iproute2/
DREADME30 PAGESIZE=a4 , ie: a4 , letter ... (string)
/external/elfutils/tests/
Drun-readelf-vmcoreinfo.sh64 PAGESIZE=4096
/external/ltp/testcases/lib/
Dtest.sh424 LTP_IPC_SIZE=$(tst_getconf PAGESIZE)
/external/autotest/server/site_tests/autoupdate_EndToEndTest/
Dupdate_engine_performance_monitor.py70 rss = int(fields[23]) * mmap.PAGESIZE
/external/ltp/testcases/kernel/numa/
Dnuma01.sh78 export PAGE_SIZE=$(tst_getconf PAGESIZE)

12