Home
last modified time | relevance | path

Searched refs:ksm_sysfs (Results 1 – 4 of 4) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/arm64/mte/
A Dcheck_ksm_options.c24 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()
67 ksm_sysfs[4] = read_sysfs(PATH_KSM "pages_to_scan"); 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()
75 write_sysfs(PATH_KSM "run", ksm_sysfs[2]); in mte_ksm_restore()
76 write_sysfs(PATH_KSM "max_page_sharing", ksm_sysfs[3]); in mte_ksm_restore()
[all …]
/linux-6.3-rc2/tools/testing/selftests/mm/
A Dksm_tests.c26 struct ksm_sysfs { struct
237 static int ksm_save_def(struct ksm_sysfs *ksm_sysfs) in ksm_save_def() argument
243 ksm_read_sysfs(KSM_FP("pages_to_scan"), &ksm_sysfs->pages_to_scan) || in ksm_save_def()
244 ksm_read_sysfs(KSM_FP("run"), &ksm_sysfs->run) || in ksm_save_def()
246 &ksm_sysfs->stable_node_chains_prune_millisecs) || in ksm_save_def()
247 ksm_read_sysfs(KSM_FP("use_zero_pages"), &ksm_sysfs->use_zero_pages)) in ksm_save_def()
253 static int ksm_restore(struct ksm_sysfs *ksm_sysfs) in ksm_restore() argument
258 ksm_write_sysfs(KSM_FP("pages_to_scan"), ksm_sysfs->pages_to_scan) || in ksm_restore()
259 ksm_write_sysfs(KSM_FP("run"), ksm_sysfs->run) || in ksm_restore()
262 ksm_sysfs->stable_node_chains_prune_millisecs) || in ksm_restore()
[all …]
/linux-6.3-rc2/Documentation/translations/zh_CN/admin-guide/mm/
A Dksm.rst28 引用:`sysfs intraface <ksm_sysfs>` 接口来配置KSM守护程序在单个过程中所扫描的页
/linux-6.3-rc2/Documentation/admin-guide/mm/
A Dksm.rst23 intraface <ksm_sysfs>`

Completed in 8 milliseconds