Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754813Ab2K2P0s (ORCPT ); Thu, 29 Nov 2012 10:26:48 -0500 Received: from basicbox7.server-home.net ([195.137.212.29]:34184 "EHLO basicbox7.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836Ab2K2P0r (ORCPT ); Thu, 29 Nov 2012 10:26:47 -0500 Message-ID: <50B77F84.1030907@leemhuis.info> Date: Thu, 29 Nov 2012 16:30:12 +0100 From: Thorsten Leemhuis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Mel Gorman CC: Andrew Morton , Linus Torvalds , Johannes Weiner , Rik van Riel , George Spelvin , Johannes Hirte , Tomas Racek , Jan Kara , Dave Hansen , Josh Boyer , Valdis Kletnieks , Jiri Slaby , Zdenek Kabelac , Bruno Wolff III , linux-mm , Linux Kernel Mailing List Subject: Re: kswapd craziness in 3.7 References: <1354049315-12874-1-git-send-email-hannes@cmpxchg.org> <50B52DC4.5000109@redhat.com> <20121127214928.GA20253@cmpxchg.org> <50B5387C.1030005@redhat.com> <20121127222637.GG2301@cmpxchg.org> <20121128101359.GT8218@suse.de> <20121128145215.d23aeb1b.akpm@linux-foundation.org> <20121128235412.GW8218@suse.de> In-Reply-To: <20121128235412.GW8218@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3396 Lines: 66 Mel Gorman wrote on 29.11.2012 00:54: > On Wed, Nov 28, 2012 at 02:52:15PM -0800, Andrew Morton wrote: >> On Wed, 28 Nov 2012 10:13:59 +0000 >> Mel Gorman wrote: >> >> > Based on the reports I've seen I expect the following to work for 3.7 >> > Keep >> > 96710098 mm: revert "mm: vmscan: scale number of pages reclaimed by reclaim/compaction based on failures" >> > ef6c5be6 fix incorrect NR_FREE_PAGES accounting (appears like memory leak) >> > Revert >> > 82b212f4 Revert "mm: remove __GFP_NO_KSWAPD" >> > Merge >> > mm: vmscan: fix kswapd endless loop on higher order allocation >> > mm: Avoid waking kswapd for THP allocations when compaction is deferred or contended >> "mm: Avoid waking kswapd for THP ..." is marked "I have not tested it >> myself" and when Zdenek tested it he hit an unexplained oom. > I thought Zdenek was testing with __GFP_NO_KSWAPD when he hit that OOM. > Further, when he hit that OOM, it looked like a genuine OOM. He had no > swap configured and inactive/active file pages were very low. Finally, > the free pages for Normal looked off and could also have been affected by > the accounting bug. I'm looking at https://lkml.org/lkml/2012/11/18/132 > here. Are you thinking of something else? > > I have not tested with the patch admittedly but Thorsten has and seemed > to be ok with it https://lkml.org/lkml/2012/11/23/276. Yeah, on my two main work horses a few different kernels based on rc6 or rc7 worked fine with this patch. But sorry, it seems the patch doesn't fix the problems Fedora user John Ellson sees, who tried kernels I built in the Fedora buildsystem. Details: In https://bugzilla.redhat.com/show_bug.cgi?id=866988#c35 he mentioned his machine worked fine with a rc6 based kernel I built that contained 82b212f4 (Revert "mm: remove __GFP_NO_KSWAPD"). Before that he had tried a kernel with the same baseline that contained "Avoid waking kswapd for THP allocations when […]" instead and reported it didn't help on his i686 machine (seems it helped the x86-64 one): https://bugzilla.redhat.com/show_bug.cgi?id=866988#c33 He now tried a recent mainline kernel I built 20 hours ago that is based on a git checkout from round about two days ago, reverts 82b212f4, and had * fix-kswapd-endless-loop-on-higher-order-allocation.patch * Avoid-waking-kswapd-for-THP-allocations-when.patch * mm-compaction-Fix-return-value-of-capture_free_page.patch applied. In https://bugzilla.redhat.com/show_bug.cgi?id=866988#c39 and comment 41 he reported that this kernel on his i686 host showed 100%cpu usage by kswapd0 :-/ Build log for said kernel rpms (I quite sure I applied the patches properly, but you know: mistakes happen, so be careful, maybe I did something stupid somewhere...): http://kojipkgs.fedoraproject.org//work/tasks/8253/4738253/build.log I know, this makes things more complicated again; but I wanted to let you guys know that some problem might still be lurking somewhere. Side note: right now it seems John with kernels that contain "Avoid-waking-kswapd-for-THP-allocations-when" can trigger the problem quicker (or only?) on i686 than on x86-64. CU Thorsten -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/