Searched refs:ksm_sysfs (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/tools/testing/selftests/arm64/mte/ |
D | check_ksm_options.c | 24 static unsigned long ksm_sysfs[5]; variable 59 ksm_sysfs[0] = read_sysfs(PATH_KSM "merge_across_nodes"); in mte_ksm_setup() 61 ksm_sysfs[1] = read_sysfs(PATH_KSM "sleep_millisecs"); in mte_ksm_setup() 63 ksm_sysfs[2] = read_sysfs(PATH_KSM "run"); in mte_ksm_setup() 65 ksm_sysfs[3] = read_sysfs(PATH_KSM "max_page_sharing"); in mte_ksm_setup() 66 write_sysfs(PATH_KSM "max_page_sharing", ksm_sysfs[3] + TEST_UNIT); in mte_ksm_setup() 67 ksm_sysfs[4] = read_sysfs(PATH_KSM "pages_to_scan"); in mte_ksm_setup() 68 write_sysfs(PATH_KSM "pages_to_scan", ksm_sysfs[4] + TEST_UNIT); in mte_ksm_setup() 73 write_sysfs(PATH_KSM "merge_across_nodes", ksm_sysfs[0]); in mte_ksm_restore() 74 write_sysfs(PATH_KSM "sleep_millisecs", ksm_sysfs[1]); in mte_ksm_restore() [all …]
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | ksm_tests.c | 26 struct ksm_sysfs { struct 223 static int ksm_save_def(struct ksm_sysfs *ksm_sysfs) in ksm_save_def() argument 225 if (ksm_read_sysfs(KSM_FP("max_page_sharing"), &ksm_sysfs->max_page_sharing) || in ksm_save_def() 227 ksm_read_sysfs(KSM_FP("merge_across_nodes"), &ksm_sysfs->merge_across_nodes) || in ksm_save_def() 228 ksm_read_sysfs(KSM_FP("sleep_millisecs"), &ksm_sysfs->sleep_millisecs) || in ksm_save_def() 229 ksm_read_sysfs(KSM_FP("pages_to_scan"), &ksm_sysfs->pages_to_scan) || in ksm_save_def() 230 ksm_read_sysfs(KSM_FP("run"), &ksm_sysfs->run) || in ksm_save_def() 232 &ksm_sysfs->stable_node_chains_prune_millisecs) || in ksm_save_def() 233 ksm_read_sysfs(KSM_FP("use_zero_pages"), &ksm_sysfs->use_zero_pages)) in ksm_save_def() 239 static int ksm_restore(struct ksm_sysfs *ksm_sysfs) in ksm_restore() argument [all …]
|
/linux-6.1.9/Documentation/translations/zh_CN/admin-guide/mm/ |
D | ksm.rst | 28 引用:`sysfs intraface <ksm_sysfs>` 接口来配置KSM守护程序在单个过程中所扫描的页
|
/linux-6.1.9/Documentation/admin-guide/mm/ |
D | ksm.rst | 25 intraface <ksm_sysfs>`
|