Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4394443pxb; Tue, 26 Jan 2021 22:10:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0FPH5b8G3/FmYsim0+yb/OyX4MDhzkX8+VmKrN/GfeX5sVmjUPiA9AnP7zwcY3AeXSkAM X-Received: by 2002:a50:e008:: with SMTP id e8mr7347393edl.339.1611727806239; Tue, 26 Jan 2021 22:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611727806; cv=none; d=google.com; s=arc-20160816; b=SrDbLU9xl9f6c4j0vDS5oR8LA+wQYOpeP027x2Zj9I2HH1+7Zd+8dx4Vo9vutFJvm7 ch8ryuCtkku4hD9ui5I+xO+Ygc+yuC+Wjz+WbQL9JDKzDdHK0Lx0xXWiIqWlwtMVSBWD cXXRZrJ43Z0Q7Ad4VizuINuqQb9TkW2RYSy/bOdpWyZp1ORbEoBvRi/87t0toydMzYEo rgfRwsLHCSk/sBIlSOBafhC/m/A0WFsgpLuzT9hgr1JFMI5Jmb+3zDa3guU4dgWvZiwc 2/8D7mw4kNaakSMtF/UDtGhz1g3iqzHsvOKYOHNlXO4J65dq/pkwO58C5jaHUcJVifpb jo5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=RwL3a7D5c3L4q1OozwcM2X37QD6gyggTknph3IwOPNs=; b=JK/g+9bY4S73GpJotMKylwP/vd3+H6+2XzfwlUw5ImBvbETA8uvShHSWjgF144mJRA vGl0uNaRRV/BWLBumqF56A+ouAofi0/rOVMuvVEoSyPJudNiZYFoDRmE4Twi/gm4EfAY fY85rTFLGBxbPWA2zTg+4A182vh7SM/REJqjKIbaf1LH/JBRKc/lOVefawXxhEPUbi0E 9R2vut2XKeIyBet/ioD6rthPYtDTTauJ53fVOZXpLra62RDJDjWM8RPD6GsDao50MC2n 8sgAjER7ywCus4IhoyxD95/kaM3F4Rs18GTM4tnXenk5QaZT3KJ6ljstJjF5ELr17bWX HLwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm10si475531edb.391.2021.01.26.22.09.42; Tue, 26 Jan 2021 22:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394000AbhAZSF3 (ORCPT + 99 others); Tue, 26 Jan 2021 13:05:29 -0500 Received: from outbound-smtp25.blacknight.com ([81.17.249.193]:52332 "EHLO outbound-smtp25.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732054AbhAZJSe (ORCPT ); Tue, 26 Jan 2021 04:18:34 -0500 Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp25.blacknight.com (Postfix) with ESMTPS id 92E9ECAD1F for ; Tue, 26 Jan 2021 09:17:40 +0000 (GMT) Received: (qmail 31365 invoked from network); 26 Jan 2021 09:17:40 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 Jan 2021 09:17:40 -0000 Date: Tue, 26 Jan 2021 09:17:37 +0000 From: Mel Gorman To: Tibor Bana Cc: valdis.kletnieks@vt.edu, 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: <20210126091737.GA3592@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> <20190130104020.GE9565@techsingularity.net> <20210125195438.c8d0e7980da0c2931d4f3056@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210125195438.c8d0e7980da0c2931d4f3056@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 07:54:38PM +0100, Tibor Bana wrote: > Greetings! > > I don't know if it still actual, but I am strugling with this problem right now and searching the internet for solutions. > I read the thread and saw that you are strugling to reproduce the problem, and I can reproduce it almost every day. > > - Install vmware player, and a linux guest. > - Configure the virtual machine to have a good amount of memory and cpu > - run resource intensive tasks on the guest > - when the host used up almost it's all memory and start to reuse caches kcompactd will kick in. > > As I know the problem is related to transparent huge pages, but I tried to disable it. > Today I saw the problem again and kcompactd shown an interesting status in top. It hasn't used any memory, all zeroes but it used up one core completely. > > My machine is a core-i7 with 4 physical cores and hyper threading and 24GB Memory > 5.9.11-arch2-1 #1 SMP PREEMPT Sat, 28 Nov 2020 02:07:22 +0000 x86_64 GNU/Linux > > Hope this can help, to point out the problem. > Is 5.10.10 affected because it included two patches related to halting compaction that are relevant. d20bdd571ee5c9966191568527ecdb1bd4b52368 mm/compaction: stop isolation if too many pages are isolated and we have pages to migrate 38935861d85a4d9a353d1dd5a156c97700e2765d mm/compaction: count pages and stop correctly during page isolation -- Mel Gorman SUSE Labs