From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx141.postini.com [74.125.245.141]) by kanga.kvack.org (Postfix) with SMTP id B86CE6B004F for ; Thu, 26 Jan 2012 15:03:09 -0500 (EST) Date: Thu, 26 Jan 2012 14:54:50 -0500 From: Rik van Riel Subject: [PATCH v3 -mm 0/3] kswapd vs compaction improvements Message-ID: <20120126145450.2d3d2f4c@cuia.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: lkml , Andrea Arcangeli , Mel Gorman , Johannes Weiner , Andrew Morton , Minchan Kim , KOSAKI Motohiro Running a kernel with compaction enabled with some memory pressure has caused my system to run into all kinds of trouble. One of the more obvious problems is that while kswapd does not try to free contiguous pages when CONFIG_COMPACTION is enabled, it does continue reclaiming until enough contiguous pages have become available. This can lead to enormous swap storms, where lots of memory is freed and a fair amount of the working set can end up in swap. A second problem is that memory compaction currently does nothing for network allocations in the receive path, for eg. jumbo frames, because those are done in interrupt context. In the past we have tried to have kswapd invoke memory compaction, but it used too much CPU time. The second patch in this series has kswapd invoke compaction very carefully, taking in account the desired page order, as well as zone->compaction_deferred. I have tested these patches on my system, and things seem to behave well. Any tests and reviews would be appreciated. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org