Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp179692imu; Fri, 16 Nov 2018 00:31:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cq5mgf/C+w6R1z8CnqPkIsc6Jypc7+A2o3Isf8V9wPCaArL7lbjGQm5jqQ5r3LHViESXWz X-Received: by 2002:a62:c60a:: with SMTP id m10-v6mr10233896pfg.15.1542357087670; Fri, 16 Nov 2018 00:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542357087; cv=none; d=google.com; s=arc-20160816; b=ih5qu6LUJGBqkDcjkixEg9Z1D/aip2qtnHGVCnMFNLk1k5MU8RYOgLMskEKuF8W7E4 ahZxAeF0mt8ygUl+E1/9P7M13Tf1SIgNqmivDw36LAxeLZpURtGWskicOSUUIB+Ctyyp PjiITzhNXbV1Lkmi3erM0dsSDmxw5E6dRj/9Chlf6THT4IzWDqyJoHqjx4u5Fdq4iSjK k4LNQKJrAkkDjfrPN/O6xRU0jhlBjlq6TKukYBfcja6UoOgwJfpyye7ocfS+Bj8jhSUo fS89Y5rFMXzcJJToaX5xxZ7Rp9iZ8zMLMc0KycqmoBv0Reuy82//OAacNpC0ov7DN25D x1ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dNJ+m15LciZQg8455eEFiwq59fDC0IvIzYdogCG8KR8=; b=DAFKdcrp4BvVQZsk3gRDPzgKCkkzf0UoBjkLKQzoGXW8kGEEKcC1hhO47bB3SYCcWX cqKWS2LPCxGVEVZGlMs9cDw8NtsUeFm1Vf5UExzptzLiuul2/I5gRvMn9Jec3vzXev54 SaqFd4DHrLTjuBUxihBDMeB3SNNOrdqVYxkPgLOqtC1xo9pKtQUbWJZpzFCfEMIiYx+2 Ap0Y2mcBcvfR7pGSfqzekdds+o11LyF9aFr2FcIaYYG0ZwIymaVAycno4oKDyuyW+Er+ 5wL6WjGilaW+zFMwK9JY67u23Mis5zvVeqlGx6TKTdEYPENsN0A2M/kdZMltTAABckd/ Tegw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si31811403plk.406.2018.11.16.00.31.12; Fri, 16 Nov 2018 00:31:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389178AbeKPSlw (ORCPT + 99 others); Fri, 16 Nov 2018 13:41:52 -0500 Received: from mail-ed1-f51.google.com ([209.85.208.51]:40390 "EHLO mail-ed1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727405AbeKPSlw (ORCPT ); Fri, 16 Nov 2018 13:41:52 -0500 Received: by mail-ed1-f51.google.com with SMTP id d3so18356353edx.7 for ; Fri, 16 Nov 2018 00:30:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dNJ+m15LciZQg8455eEFiwq59fDC0IvIzYdogCG8KR8=; b=rT28BlQrAsCqiZr+inAmias7lYnlsTGdTaj+Jko6gEDx/twzGIFwqV/t7kttCrlngN SS7biSjPdawnZrHsnf9UYNQTTWlqH1QJsR7GCL/e0kHQMPxiDDOXxhYvvAXvIi6wjKci bB2yf0hellrb6Ox+7oejLrZatqicoaNH4vBZwPa2OvncAlnOhaOPBf0tnPeIrl6BxprW gs9WjPHNjTh1E32xp6TlVuJjqi9btSlrz+I2Gw79uoQuq2nExpQuSqRsHqGoTNbmv/W4 iJMa54Cl85BWIQJaY70iYAxVHVEPWwLLqsUCNzF0inGbKMuDDz1hGLYQu2q0WQzGcKP/ 1NVA== X-Gm-Message-State: AGRZ1gIUxpQ035sN0QjkVPi7k1v4aLeQGZthryEwWLW/F22f1QwlUj9t Hl+qD5FvQ6DCqTDKxXGT5mk= X-Received: by 2002:a50:88c3:: with SMTP id d61-v6mr9024807edd.14.1542357031214; Fri, 16 Nov 2018 00:30:31 -0800 (PST) Received: from tiehlicka.suse.cz (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id m13sm5305393edd.2.2018.11.16.00.30.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 00:30:30 -0800 (PST) From: Michal Hocko To: Andrew Morton Cc: Oscar Salvador , Baoquan He , Anshuman Khandual , , LKML Subject: [PATCH 0/5] mm, memory_hotplug: improve memory offlining failures debugging Date: Fri, 16 Nov 2018 09:30:15 +0100 Message-Id: <20181116083020.20260-1-mhocko@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this has been posted as an RFC [1]. I have screwed during rebasing so there were few compilation issues in the previous version. I have also integrated review feedback from Andrew and Anshuman. I have been promissing to improve memory offlining failures debugging for quite some time. As things stand now we get only very limited information in the kernel log when the offlining fails. It is usually only [ 1984.506184] rac1 kernel: memory offlining [mem 0x82600000000-0x8267fffffff] failed without no further details. We do not know what exactly fails and for what reason. Whenever I was forced to debug such a failure I've always had to do a debugging patch to tell me more. We can enable some tracepoints but it would be much better to get a better picture without using them. This patch series does 2 things. The first one is to make dump_page more usable by printing more information about the mapping patch 1. Then it reduces the log level from emerg to warning so that this function is usable from less critical context patch 2. Then I have added more detailed information about the offlining failure patch 4 and finally add dump_page to isolation and offlining migration paths. Patch 3 is a trivial cleanup. Does this look go to you? [1] http://lkml.kernel.org/r/20181107101830.17405-1-mhocko@kernel.org Shortlog Michal Hocko (5): mm: print more information about mapping in __dump_page mm: lower the printk loglevel for __dump_page messages mm, memory_hotplug: drop pointless block alignment checks from __offline_pages mm, memory_hotplug: print reason for the offlining failure mm, memory_hotplug: be more verbose for memory offline failures Diffstat mm/debug.c | 23 ++++++++++++++++++----- mm/memory_hotplug.c | 52 +++++++++++++++++++++++++++++++--------------------- mm/page_alloc.c | 1 + 3 files changed, 50 insertions(+), 26 deletions(-)