[LTP] [PATCH] madvise09:Change PAGES size to the value more than 32

Shuang Qiu shuang.qiu@oracle.com
Thu Sep 12 05:35:07 CEST 2019


On 09/12/2019 10:51 AM, Li Wang wrote:
>
>
> On Wed, Sep 11, 2019 at 7:19 PM Cyril Hrubis <chrubis@suse.cz 
> <mailto:chrubis@suse.cz>> wrote:
>
>     Hi!
>     > I'm not sure why 64 pages is a proper value? Can you explain more?
>
>     I've just talked to Michal Hocko and the conclusion is that we should
>     allocate several megabytes to avoid depending kernel implementation
>     details, which would mean allocating thousands of pages.
>
>
> Sounds reasonable. Allocating thousands of pages must trigger 
> the MADV_FREE page reclaiming.
>
> @shuang.qiu, Hi Shuang, would you mind to rewrite the patch, or should 
> I do that?
Thanks for helping to investigate this issue.
I will update the patch.
32 pages is really small in current system which may be held on 
reclaiming small piece of memory,thousands of pages is reasonable.

Thanks
Shuang
>
> -- 
> Regards,
> Li Wang


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20190912/4465138e/attachment.htm>


More information about the ltp mailing list