Re: [PATCH net-next v5 01/13] mm: page_frag: add a test module for page_frag

From: Jakub Kicinski
Date: Thu May 30 2024 - 11:17:02 EST


On Thu, 30 May 2024 17:17:17 +0800 Yunsheng Lin wrote:
> > Is this test actually meaningfully testing page_frag or rather
> > the objpool construct and the scheduler? :S
>
> For the objpool part, I guess it is ok to say that it is a
> meaningfully testing for both page_frag and objpool if there is
> changing to either of them.

Why guess when you can measure it.
Slow one down and see if it impacts the benchmark.

> For the scheduler part, this test provides the below module param
> to avoid the the noise from scheduler.
>
> +static int test_push_cpu;
> +module_param(test_push_cpu, int, 0600);
> +MODULE_PARM_DESC(test_push_cpu, "test cpu for pushing fragment");
> +
> +static int test_pop_cpu;
> +module_param(test_pop_cpu, int, 0600);
> +MODULE_PARM_DESC(test_pop_cpu, "test cpu for popping fragment");
>
> Or is there any better idea for testing page_frag?