linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC] can we use vmalloc to alloc thread stack if compaction failed
@ 2016-07-28  7:08 Xishi Qiu
  2016-07-28  7:20 ` Michal Hocko
  0 siblings, 1 reply; 13+ messages in thread
From: Xishi Qiu @ 2016-07-28  7:08 UTC (permalink / raw)
  To: Tejun Heo, Ingo Molnar, Michal Hocko, Peter Zijlstra; +Cc: LKML, Linux MM

Usually THREAD_SIZE_ORDER is 2, it means we need to alloc 16kb continuous
physical memory during fork a new process.

If the system's memory is very small, especially the smart phone, maybe there
is only 1G memory. So the free memory is very small and compaction is not
always success in slowpath(__alloc_pages_slowpath), then alloc thread stack
may be failed for memory fragment.

Can we use vmalloc to alloc thread stack if compaction failed in slowpath?
e.g. Use vmalloc as a fallback if alloc_page/kamlloc failed.

I think the performance may be a little regression, and any other problems?

Thanks,
Xishi Qiu

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-08-16  4:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28  7:08 [RFC] can we use vmalloc to alloc thread stack if compaction failed Xishi Qiu
2016-07-28  7:20 ` Michal Hocko
2016-07-28  7:41   ` Xishi Qiu
2016-07-28  7:58     ` Michal Hocko
2016-07-28  8:45       ` Xishi Qiu
2016-07-28  9:43         ` Michal Hocko
2016-07-28 10:51           ` Xishi Qiu
2016-07-28 15:07             ` Andy Lutomirski
2016-07-29  3:01               ` Joonsoo Kim
2016-07-29 19:47                 ` Andy Lutomirski
2016-08-01  5:30                   ` Joonsoo Kim
2016-08-10 11:59                     ` Andy Lutomirski
2016-08-16  4:18                       ` Joonsoo Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).