On Tue, 29 Jul 2014, Joonsoo Kim wrote:

> Hmm, if thp faults want to pay cost as least as possible, how about
> making thp faults skip async/sync compaction at all?
> 

You can certainly do that with /sys/kernel/mm/transparent_hugepage/defrag.

Without doing memory compaction, though, at least one of my customers will 
have their thp ratio drop significantly and for the vast majority of our 
machines minimal compaction is all that is needed to allocate a hugepage.  
I'm concerned primarily about the straggler that has very lengthy fault 
times for even single hugepages.

This patchset will address some of those concerns, but I agree with you 
that we should be terminating async compaction with another heuristic 
rather than need_resched().
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to