OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:nr_hugepages
(Results
1 - 6
of
6
) sorted by null
/external/linux-kselftest/tools/testing/selftests/vm/
compaction_test.c
85
char
nr_hugepages
[10] = {0};
local
91
fd = open("/proc/sys/vm/
nr_hugepages
", O_RDWR | O_NONBLOCK);
93
perror("Failed to open /proc/sys/vm/
nr_hugepages
");
98
perror("Failed to read from /proc/sys/vm/
nr_hugepages
");
104
perror("Failed to write 0 to /proc/sys/vm/
nr_hugepages
\n");
113
perror("Failed to write 100000 to /proc/sys/vm/
nr_hugepages
\n");
119
if (read(fd,
nr_hugepages
, sizeof(
nr_hugepages
)) <= 0) {
120
perror("Failed to re-read from /proc/sys/vm/
nr_hugepages
\n");
126
compaction_index = mem_free/(atoi(
nr_hugepages
) * hugepage_size)
[
all
...]
run_vmtests
19
#set proper
nr_hugepages
21
nr_hugepgs=`cat /proc/sys/vm/
nr_hugepages
`
27
echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/
nr_hugepages
109
echo $nr_hugepgs > /proc/sys/vm/
nr_hugepages
/external/autotest/client/tests/libhugetlbfs/
libhugetlbfs.py
17
if os.path.exists('/proc/sys/vm/
nr_hugepages
'):
18
utils.write_one_line('/proc/sys/vm/
nr_hugepages
',
20
nr_hugepages
= utils.read_one_line('/proc/sys/vm/
nr_hugepages
')
21
pages_available = int(
nr_hugepages
)
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
hugemmap05.c
9
* First, it resets
nr_hugepages
and nr_overcommit_hugepages. Then, set
65
#define PATH_PROC_HUGE PATH_PROC_VM "
nr_hugepages
"
85
static char
nr_hugepages
[BUFSIZ], nr_overcommit_hugepages[BUFSIZ];
variable
266
tst_resm(TINFO, "restore
nr_hugepages
to %s.",
nr_hugepages
);
267
if (write(fd,
nr_hugepages
,
268
strlen(
nr_hugepages
)) != (ssize_t)strlen(
nr_hugepages
))
335
if (fgets(
nr_hugepages
, BUFSIZ, fp) == NULL)
339
nr_hugepages
[strlen(nr_hugepages) - 1] = '\0'
[
all
...]
/external/ltp/testcases/kernel/controllers/memcg/functional/
memcg_lib.sh
275
# $1 - the value of /proc/sys/vm/
nr_hugepages
282
nr_hugepages
=`cat /proc/sys/vm/
nr_hugepages
`
287
echo $1 > /proc/sys/vm/
nr_hugepages
324
echo $
nr_hugepages
> /proc/sys/vm/
nr_hugepages
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
cpuset_memory_testset.sh
181
save_nr_hugepages=$(cat /proc/sys/vm/
nr_hugepages
)
182
echo $((2*$nr_mems)) > /proc/sys/vm/
nr_hugepages
190
echo $save_nr_hugepages > /proc/sys/vm/
nr_hugepages
191
if [ $(cat /proc/sys/vm/
nr_hugepages
) -ne $save_nr_hugepages ]; then
192
tst_resm TFAIL "can't restore
nr_hugepages
(
nr_hugepages
= $save_nr_hugepages)."
220
save_nr_hugepages=$(cat /proc/sys/vm/
nr_hugepages
)
221
echo $((2*$nr_mems)) > /proc/sys/vm/
nr_hugepages
229
echo $save_nr_hugepages > /proc/sys/vm/
nr_hugepages
230
if [ $(cat /proc/sys/vm/
nr_hugepages
) -ne $save_nr_hugepages ]; the
[
all
...]
Completed in 503 milliseconds