Lines Matching +full:1 +full:- +full:1024

1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * can be enabled by "-s".
15 * echo never > /sys/kernel/mm/transparent_hugepage/hugepages-2048kB/enabled
16 * echo always > /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled
20 * w/o "-s".
22 * Author(s): Barry Song <v-[email protected]>
35 #define MEMSIZE_MTHP (60 * 1024 * 1024)
36 #define MEMSIZE_SMALLFOLIO (4 * 1024 * 1024)
37 #define ALIGNMENT_MTHP (64 * 1024)
38 #define ALIGNMENT_SMALLFOLIO (4 * 1024)
39 #define TOTAL_DONTNEED_MTHP (16 * 1024 * 1024)
40 #define TOTAL_DONTNEED_SMALLFOLIO (1 * 1024 * 1024)
41 #define MTHP_FOLIO_SIZE (64 * 1024)
44 "/sys/kernel/mm/transparent_hugepage/hugepages-64kB/stats/swpout"
46 "/sys/kernel/mm/transparent_hugepage/hugepages-64kB/stats/swpout_fallback"
63 * currently don't support large folios swap-in.
109 if (fscanf(file, "%lu", &value) != 1) { in read_stat()
125 for (i = 1; i < argc; ++i) { in main()
126 if (strcmp(argv[i], "-s") == 0) in main()
127 use_small_folio = 1; in main()
128 else if (strcmp(argv[i], "-a") == 0) in main()
129 aligned_swapin = 1; in main()
160 /* warm-up phase to occupy the swapfile */ in main()
168 /* iterations with newly created mTHP, swap-in, and swap-out */ in main()
182 * The following setup creates a 1:1 ratio of mTHP to small folios in main()
183 * since large folio swap-in isn't supported yet. Once we support in main()
184 * mTHP swap-in, we'll likely need to reduce MEMSIZE_MTHP and in main()
219 swpout_inc = final_swpout - initial_swpout; in main()
220 swpout_fallback_inc = final_swpout_fallback - initial_swpout_fallback; in main()
226 i + 1, swpout_inc, swpout_fallback_inc, fallback_percentage); in main()