Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp638748pxb; Wed, 27 Jan 2021 17:39:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/+z+HCsn90WJc5pB0Ss07SO2ZpmNOz7+InEqSiQAu70kDWs6TIreE26yGFMLEQRpKea1A X-Received: by 2002:a17:907:2851:: with SMTP id el17mr8486028ejc.405.1611797972384; Wed, 27 Jan 2021 17:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611797972; cv=none; d=google.com; s=arc-20160816; b=V6NVKEJtMiTbErLGBDPlA0tTJuurPIiLDf8p77yzKMqBpkYgNHUjmDc8aNYywDcd5B flnMBfLo+pay4V2cp2BZ2M41c3CWltbkahaOFYD6oGaVlOIl6Ujz0+RGiFH7NrCx3Kmf mWSFp+4+rgJZch4CNnrmWHC10wANAerpuXIlMkLEXE/RV4zOt8CnNdFaQrROzVdd4X3n Pks2pivoNym59nZd64ScmFjamRQcfO/OMFKCV3JGor6d3ELlVUT1w/U/uBR1UbUpkfhR UGKjCTzC8tGSNJGJEdw0Peyuz1M2DcIe8/+uLUMThOxDv1HtTH/T1mLOq8mdz0swXBRh dFOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jlYVfDYZNtUxR3D2jc9HgqXSl2liyEmxOtLZdP+BkB0=; b=v9SVQePM4HH9zdM5mpftWT3vipqbHjyxDgElMXG346OKoZpawGHUihZQmq/CsfUkK7 IDWikk5LAtSUde3pwY0/wecEyDhdxzigJG/MucgdLlXgomNC2jhyy6cYoX3WWHptgqd8 bix4YU7ZzwAfNWt7VVLTkajeTj9+zTUlYYzcOVX5rTZ4CNOHSllIGGOcmS340CHCYg4e Gh/NlN52X4sV2Oq7G35VWgjYMuWBpLpWZVZudjwfD4aGC3GMgPXUauuKWpCRezb0V8Z7 Zz/9Iwsp5IdEfP02qZYtsoro+Bbu4lQgA9UWkvdnymdq7h3GtDx5Wn/NoUQdhhLns8U1 298A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gCsqjkEG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm10si1712678ejc.64.2021.01.27.17.39.08; Wed, 27 Jan 2021 17:39:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gCsqjkEG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbhA0Tak (ORCPT + 99 others); Wed, 27 Jan 2021 14:30:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbhA0Taf (ORCPT ); Wed, 27 Jan 2021 14:30:35 -0500 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB8EC061756 for ; Wed, 27 Jan 2021 11:29:55 -0800 (PST) Received: by mail-oi1-x235.google.com with SMTP id n7so3383064oic.11 for ; Wed, 27 Jan 2021 11:29:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jlYVfDYZNtUxR3D2jc9HgqXSl2liyEmxOtLZdP+BkB0=; b=gCsqjkEGiRlYvjOVIzeYFkvQ76TbgDtPT7OmwzckLWXJP2RuuqJicKWLfKOtQior4c jb8kgyhkpwcrXkoJvF6WsbIeslWLYmNLEby+lVNLKa5KBKSGw6CVk6Xj40xewewVdzbS 6/JyonA1byvMbnslWp/L2Rm+YdoPMrka2xk8ZXWP6kC6289PuZrLeJEheJ7kHzER2df4 RPBwohwE3ksr6ijyHBfcxGmS8YoLvpilURFwh+ExJmlPZiumvAueHOZisrz2/GV7RtHY N8dXwFuX6c+4jkGUA4vBfNzAVUCGE3yHtvdvy+mTfCGeP4Mk6pCtv3asx32QPViIcEyb mX0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jlYVfDYZNtUxR3D2jc9HgqXSl2liyEmxOtLZdP+BkB0=; b=bgiZN6r0hyvss8G7o++9SC3/tiMpzCzJDtaCFs+bZXMWkO6AW/mbZDen4c8y1P5LZc FC9CN5jEesVeqX7Ip4AA5yLbldEcWPkYML68tQzVITostfRfpxNAFpLwo1GYK9YOkMja Gm8L2aaQkLT/GWxsfIIlCLb8Y2DbDSNMSmMjumv5I1ViLBEVzPTwZIgwX2XrKfh3X6j3 bbN0yuDCGEZTgEKZ5qRmACrtuMamRmlGBOHV0P9CpG23uPyADm27BfJRJctStu0Z/6FF Qdq+zow+JLEMUQotJOP+8yJ/hvua62r9MXNLgiZyRFQY+ad5ychIeQEfgFGaYHP4ipYt WQSQ== X-Gm-Message-State: AOAM532n9hhsjKSqA0VjOuaunNPPsG2Lj0EihTjvUp2KLP6k/NNlgtnj 2qXlZwqM2qlwFlHghUL/CEhrolR/i4eYjQ8I4i4= X-Received: by 2002:aca:5e03:: with SMTP id s3mr4297258oib.125.1611775795123; Wed, 27 Jan 2021 11:29:55 -0800 (PST) MIME-Version: 1.0 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> <20210126091737.GA3592@techsingularity.net> In-Reply-To: <20210126091737.GA3592@techsingularity.net> From: Tibor Bana Date: Wed, 27 Jan 2021 20:29:43 +0100 Message-ID: Subject: Re: [regression -next0117] What is kcompactd and why is he eating 100% of my cpu? To: Mel Gorman 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sorry for the delay. I had time to do a full system upgrade yesterday evening and fortunately Archlinux already ships 5.10.10, today I used my computer as usual to test it. I haven't experienced the symptoms, but since I disabled transparent huge pages it showed up sporadically. If I face it again I will let you know. On Tue, Jan 26, 2021 at 10:17 AM Mel Gorman wrote: > > 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