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

From: Jakub Kicinski <[email-masked]>
Date: Wed, 29 May 2024 17:29:38 -0700

On Tue, 28 May 2024 20:55:51 +0800 Yunsheng Lin wrote:
> Basing on the lib/objpool.c, change it to something like a
> ptrpool, so that we can utilize that to test the correctness
> and performance of the page_frag.
> 
> The testing is done by ensuring that the fragments allocated
> from a frag_frag_cache instance is pushed into a ptrpool
> instance in a kthread binded to a specified cpu, and a kthread
> binded to a specified cpu will pop the fragmemt from the

fragment

> ptrpool and free the fragmemt.
> 
> We may refactor out the common part between objpool and ptrpool
> if this ptrpool thing turns out to be helpful for other place.

Is this test actually meaningfully testing page_frag or rather
the objpool construct and the scheduler? :S