Is there some method or software that could purposely generate a lot of physical memory fragmentations on linux?

Mulyadi Santosa mulyadi.santosa at gmail.com
Thu Jul 2 04:29:18 EDT 2020


On Tue, Jun 30, 2020 at 1:52 PM 孙世龙 sunshilong <sunshilong369 at gmail.com>
wrote:

> Hi, list
>       Is there some method or software that could purposely generate a lot
> of physical memory fragmentations on Linux?
>
>      I need to do some tests under such circumstances.
>
>     Thank you for your attention to this matter.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

Hi

Just pseudo idea, if this is in user space, try to:  allocate many blocks
of memory using malloc, each having different size, keep the returned
pointer, then randomly free() some of them, then malloc() again with
different size
-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200702/a1a5204c/attachment.html>


More information about the Kernelnewbies mailing list