Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5734732imu; Wed, 30 Jan 2019 02:41:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZuWN4vol+Ob1Ef+KCw+kyc1nVdfva1WR4w5agYZwnO7fByhXUft170h+T+91U3jFMe0nm6 X-Received: by 2002:a63:96:: with SMTP id 144mr14158003pga.315.1548844881745; Wed, 30 Jan 2019 02:41:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548844881; cv=none; d=google.com; s=arc-20160816; b=eo8HdBs1ahexkeuYcW3nlp1oB4XrkDFpVnisrgYaAEzOBdjaZeid9E7Tw/idObabO+ zWidaiAGmQr1ndYzcjNuQpSsoxJgufte4DCwDPA4UrKk4K9qWjElRNM8RUjh83TQmuMG 4ZpyER0DTRaxx+GorcLMeBr2mFWLrQtg6qxLNpOUHvV8h/WpIlatWNjXPSpa5wEKHGXr ERFk9Y+mx9DIlzkxWn3EGAjdXQzrcjlJlw2wNaMYq7JIYPs2cmB09PId9TavZlubqlBC HyJuJ29DnJh8jahJCBvPoe6Lh/eDjGsMs92Wz/RcGLJ8xg9bAhIXZOWrgd7bc11TSTYQ mfpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=KbwdeQAHDxPZi6tDHEBqmpAHcV+tr6Omo4Dexxw8Xt8=; b=YCCcapBt4LsaQk4H8N5MWxWxdzuHUlR0RC4GC5qpgBebwNxZZdikegsyFL/aX6jmrp iKjDu7ZinRRPP0JMuVSFtNWQyv4gRr7Sj6S+MXN07lo4XE3GPe5DQVI7kXH16bFimLtT iXgXw/FKVBgVwM2FnjYp2kO30t6K9sboE6N1kwQlefNv8pkh/hDTcLnNF4fQtWGKgrCD LB2Sqp75lE2EYzcNdfeTSgmFv67J3EEn+gdO0tL6G8zAEethA+aQZew4rkdV42Fi40tZ AigXt0pgXvwmIb7ZqGegPZtk2x6QXLhxEElIGWwVqVZbgzL+3PnVqY3O17r927c+O9zn 258A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si243089pfh.96.2019.01.30.02.41.06; Wed, 30 Jan 2019 02:41:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730631AbfA3KkY (ORCPT + 99 others); Wed, 30 Jan 2019 05:40:24 -0500 Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:58751 "EHLO outbound-smtp04.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727555AbfA3KkY (ORCPT ); Wed, 30 Jan 2019 05:40:24 -0500 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp04.blacknight.com (Postfix) with ESMTPS id 10BE598C20 for ; Wed, 30 Jan 2019 10:40:22 +0000 (UTC) Received: (qmail 8889 invoked from network); 30 Jan 2019 10:40:21 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.225.79]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 30 Jan 2019 10:40:21 -0000 Date: Wed, 30 Jan 2019 10:40:20 +0000 From: Mel Gorman To: valdis.kletnieks@vt.edu Cc: Jan Kara , Pavel Machek , kernel list , Andrew Morton , vbabka@suse.cz, aarcange@redhat.com, rientjes@google.com, mhocko@kernel.org, zi.yan@cs.rutgers.edu, hannes@cmpxchg.org Subject: Re: [regression -next0117] What is kcompactd and why is he eating 100% of my cpu? Message-ID: <20190130104020.GE9565@techsingularity.net> References: <20190126200005.GB27513@amd> <12171.1548557813@turing-police.cc.vt.edu> <20190127141556.GB9565@techsingularity.net> <20190127160027.GA9340@amd> <13417.1548624994@turing-police.cc.vt.edu> <20190128091627.GA27972@quack2.suse.cz> <14875.1548810399@turing-police.cc.vt.edu> <9618.1548822577@turing-police.cc.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <9618.1548822577@turing-police.cc.vt.edu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2019 at 11:29:37PM -0500, valdis.kletnieks@vt.edu wrote: > On Tue, 29 Jan 2019 20:06:39 -0500, valdis.kletnieks@vt.edu said: > > On Mon, 28 Jan 2019 10:16:27 +0100, Jan Kara said: > > > > > So my buffer_migrate_page_norefs() is certainly buggy in its current > > > incarnation (as a result block device page cache is not migratable at all). > > > I've sent Andrew a patch over week ago but so far it got ignored. The patch > > > is attached, can you give it a try whether it changes something for you? > > > Thanks! > > > > Been running with the patch for about 24 hours, haven't seen kcompactd > > misbehave. I even fired up a Chrome with a lot of tabs open, a Firefox, and a > > kernel build, intentionally drove the system into swapping, and kcompactd > > didn't make it into the top 10 on 'top'. > > > > I'm willing to say put a "tested-by:" on that one, it looks fixed from here. > > If there's any remaining bugs, they're ones I can't seem to trigger... > > Spoke too soon. Sitting here not stressing the laptop at all, plenty of free > memory, and ka-blam. > > Will keep my eyes open and do the data gathering Mel Gorban wanted - I discovered > too late that trace-cmd wasn't installed, and things broke free by themselves (probably > not coincidence that I launched a terminal window and then it cleared....) > That's unfortunate. I also note that linux-next still has not been updated with the latest version of the compaction series. Nevertheless, it might be helpful to get the output of grep -r . /sys/kernel/mm/transparent_hugepage/* and the trace when the system is in normal use but kcompactd has not pegged at 100%. At minimum, I'd like to see what the sources of high-order allocations are and the likely causes of wakeups of kcompactd in case there are any hints there. Your Kconfig is also potentially useful. Thanks. -- Mel Gorman SUSE Labs