<div dir="ltr"><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 30, 2020 at 1:52 PM 孙世龙 sunshilong <<a href="mailto:sunshilong369@gmail.com">sunshilong369@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, list<br>
      Is there some method or software that could purposely generate a lot<br>
of physical memory fragmentations on Linux?<br>
<br>
     I need to do some tests under such circumstances.<br>
<br>
    Thank you for your attention to this matter.<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br clear="all"></div><div>Hi</div><div><br></div><div>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<br></div><div><div>-- <br><div dir="ltr" class="gmail_signature">regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a></div></div></div></div>