<div dir="ltr">Hi, Valdis Klētnieks, Mulyadi Santosa<br><br>Thanks to both of you.<br>>> Just pseudo idea, if this is in user space, try to:  allocate many blocks<br>>> of memory using malloc, each having different size, keep the returned<br>>> pointer, then randomly free() some of them, then malloc() again with<br>>> different size<br><br>>That will cause userspace malloc() to have fragmentation, but as far<br>>as the kernel is concerned it's all just 4K pages of user memory.<br>>Causing physical memory fragmentation will require abusing the kernel<br>>memory allocators such as kmalloc() and vmalloc() and friends.<br><br>I fully understand what you mean by "cause userspace malloc() to have fragmentation".<div>I am sorry, maybe I mislead you. I just want there are no available free high order blocks(i.e </div><div>32KB,64KB, 128KB and etc) on the platform.</div><div>How can I  more efficiently and automatically achieve this goal?</div></div>