Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp237306ybl; Thu, 9 Jan 2020 20:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqw3S+JoZPqOS7Q/PTkDCT/zPyKSaeoNIX1KlolmXZ4WLrGlb+VFZUnvIp87KTyi8C4Q059R X-Received: by 2002:a54:4f8d:: with SMTP id g13mr762183oiy.43.1578632011609; Thu, 09 Jan 2020 20:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578632011; cv=none; d=google.com; s=arc-20160816; b=d6iIHt9fydILo9jo8b/ubP0oJbRc2Vph0Dx+vKdbcPfbnHrnZEl3H1MAZSEhYBYVfQ BAYHGdMWdKq9H+npIUICtc8HcOUDTkQXInGo4+iwp0+afz/hdgPaOcWu4dgWkZMd67+U +5OC592dLHQIhe7AdZJOgiBKizhbaDgRYZelgQSfBWs50SzZjQlJqFEVBBA9VjyHuvV9 LyTeQamzSo0VlpIYV9osGancLnB4y210znxOACDL35vEZ7qajKUL8BGBLL0ErpIUuDjv TsZjkHgipngcWlENjohxPf5AutXuviLbKJxOb0R9npHnOT+8tnn8C8kPLqF1CvVLMvIV VGnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vlinJQxreNW0LgSHPxKHqjPCjfftwQydPg4qaMBMqAY=; b=Q6Dzpb2VYjNdqUrx4OwDkJ0aZto/GlDw7DU9KxF3E0WgqKg/lcPC0shQ1iCNsljV4g 1RXm8Beyb34tjhbsF1mauu7tYohhdGJKTgUQPsCx+FPX+EhRwCaa3CGi4GJkMM04On53 V7tlKYyExy+uWI9fxnLx7BUtwg40qI/3wv3B82Cyf2cTKHzgjmip+CER3+KMWKQuVZmv PLiNQGNjGeuOY1EKPZ53S/xMlXC7ZZW2c33Yzw2IpNwZRVjDyV6qnn2T4BG9YA5aanXS gCVPWidWW6Glo4DKx7Up7kOY/Eph3eQ3a5qvQ9hoyoL0WeYLUMdDsOnWGB19ioyKpgpN wt/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uLOBwf7g; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si433986otk.290.2020.01.09.20.53.20; Thu, 09 Jan 2020 20:53:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uLOBwf7g; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731417AbgAJEwD (ORCPT + 99 others); Thu, 9 Jan 2020 23:52:03 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33976 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731405AbgAJEwC (ORCPT ); Thu, 9 Jan 2020 23:52:02 -0500 Received: by mail-oi1-f196.google.com with SMTP id l136so862955oig.1 for ; Thu, 09 Jan 2020 20:52:02 -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=vlinJQxreNW0LgSHPxKHqjPCjfftwQydPg4qaMBMqAY=; b=uLOBwf7g0tzyDtdRmJRecwzNi4gLs3YTVmGXZmuRK9t1bycyxTxEcT03f4Jj1XQU1n tU71/YmmsbvP2dVbyJlKdq/z8kBEcDa+MApxrUQcJe712ZFbqLL9NZqAB7khQLox+MwC Dm7qxfPPx3STpsOgA2YA1SpXGETkF32KxpBM9JnSUO7V9RH2A8vlcSz+sRiJNcDPDXK4 b3jNsTFfT2yb0m+Hge1nb0q0Vxm9kEs9jjOePC9dklTQ9mxQFqn/1zaiMpK3x9y/9xrX VDc7YjSoAkGAxcelOrtEajhYF2GpwhrFEpt3RzaZY6V05Xb2ACtMhSvpfWkIS5ahOwuc 2liA== 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=vlinJQxreNW0LgSHPxKHqjPCjfftwQydPg4qaMBMqAY=; b=I8x+BmsIfNUrUS1VbPqkO/XBsqxgVIK3+sDbHcYChXQ7YJ1s0XPTuUA39pXMUx5JuS B+t5g24IRbJ3KEsSXFW3Tkx+I2hv4SwiByxCwgTFo3dgX4lLGMp45ZvShu1JgjehSV8Z z3htKwYZKx6tzMCJ2nfYvDX5JbxphkoyUNcvyQc8Av9JGset0LC1DD6wXhFi+KhmI4ii Ox+qvd0mNOLBLd613yWifXQDa6+dHKk8//rbJmJujoNdtouAwqUn7pIXD++p5esBC3ru bcXwKSYdbO/aM0KoLQy5V5ZV/Ii8e4koNgLAjP3xvFS5fTQat27FWQe4Nqfd37gGTs7X T7Bg== X-Gm-Message-State: APjAAAX+8yZoTYSnBrXQb7IZ+VupdsTWC7y9Y9Z44EVRITb0mcehO7tq 26ItTtlcmM2w9JIvHCr2Ljg5VWG/Yu1UZ2rGZPI= X-Received: by 2002:aca:3cd7:: with SMTP id j206mr842019oia.142.1578631922395; Thu, 09 Jan 2020 20:52:02 -0800 (PST) MIME-Version: 1.0 References: <20200109225646.22983-1-xiyou.wangcong@gmail.com> In-Reply-To: From: Cong Wang Date: Thu, 9 Jan 2020 20:51:51 -0800 Message-ID: Subject: Re: [PATCH] mm: avoid blocking lock_page() in kcompactd To: Yang Shi Cc: Linux Kernel Mailing List , Andrew Morton , Michal Hocko , Linux MM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 9, 2020 at 5:01 PM Cong Wang wrote: > I tried to dump the process stacks after we saw the hung task > with /proc/X/stack (apparently sysrq is not an option for production), > but I didn't find anything useful. I didn't see any other process > hung in lock_page() either, all mm-related kernel threads were sleeping > (non-D) at the time I debugged. So, it is possible there was some place > missing a unlock_page() too, which is too late to debug after the hung > task was reported. Never mind. I found the process locking the page, /proc/X/stack apparently fools me by hiding page fault stack. :-/