Re: [PATCH v4 1/2] ksm: count allocated ksm rmap_items for each process

From: Matthew Wilcox
Date: Wed Aug 24 2022 - 08:58:14 EST


On Wed, Aug 24, 2022 at 12:46:15PM +0000, xu xin wrote:
> #ifdef CONFIG_KSM
> ONE("ksm_merging_pages", S_IRUSR, proc_pid_ksm_merging_pages),
> + ONE("ksm_rmp_items", S_IRUSR, proc_pid_ksm_rmp_items),

You misspelled "rmap" in the file name.

> + /*
> + * Represent how many pages are checked for ksm merging
> + * including merged and not merged.
> + */
> + unsigned long ksm_rmp_items;

Also here.