Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2072543imm; Mon, 16 Jul 2018 01:28:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfP6yEriZjH35XL7Vmu/KekccumDhLWSrwGHTtcx1z9jE2/YR2P5ZFwHjlir931kI5/vCzz X-Received: by 2002:aa7:8713:: with SMTP id b19-v6mr17038281pfo.151.1531729701563; Mon, 16 Jul 2018 01:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531729701; cv=none; d=google.com; s=arc-20160816; b=H4L9OkOhcRelm0+1E6AfGsWilth+s1KtKxftTvLbbYGkzQCgHl5zoAR19ala/Yy3Oy p23zOQdXKcNzyj7CtWjJkg/iXb/OVwWmY4u/NIWQveKGKrqncq1J1saYo0vLFTOyYsD/ 5mfk7qBvFrSCmbNRLJqXEPDI6EJNJsHT4VY6HV2Xr3WsmblJg+LfVvcMohW197kwrfdg 2zFs9olXxCq20bivo/ufvBPhYGcSom3AwJLyg+OP0xZFFdnxoz90zyC2tj1VAwX5QnWy A8UitfanEjrnTHERGAe1Kooun80Djh2aIYNgSJB8rHueUPq+8clpYL5RZv3cUZCYpYuh 3bBA== 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:arc-authentication-results; bh=chaUIUOolZbLXmY5UU/k9uKFNokgNIkA3CPgnrRqQMY=; b=kTapukr2IQtLzyQ/TBPUmgu1MB3l9E8vteFsOpARiV1sn/EJBUd6BOIlwvXoz7XLZN xt37wGHgjBk0HXM17aP3bU4vDCwCkSE8LMQVN0YZnLz5bxJ1n1RHhMJUALNVcJd3sQVK BG9bkS8UKVeC4h+iHktTjy8BDCNh0hycsq2uzPifc/gdESfv9LDPDL/Pl2EV6oxHG7gm rnucWPubJ+kQzrbbwVp0OzM7EwLA/N+s7WBhf6wUwC5yeuaMZWKTnhpYehNkD+BQO/fM H4BMOB0JLwTcn88/WYr5sPW2heCpC+YzYarLsbOmeCxByYcQ7LbFYOkBegV3wyL4tUsH 0XQw== 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 i64-v6si30400537pli.431.2018.07.16.01.28.05; Mon, 16 Jul 2018 01:28:21 -0700 (PDT) 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 S1728423AbeGPIxG (ORCPT + 99 others); Mon, 16 Jul 2018 04:53:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:51092 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726190AbeGPIxG (ORCPT ); Mon, 16 Jul 2018 04:53:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A932AAE61; Mon, 16 Jul 2018 08:26:48 +0000 (UTC) Date: Mon, 16 Jul 2018 10:26:46 +0200 From: Michal Hocko To: Mahesh J Salgaonkar Cc: linuxppc-dev , Linux Kernel , Hari Bathini , Ananth N Mavinakayanahalli , Srikar Dronamraju , "Aneesh Kumar K.V" , Anshuman Khandual , Andrew Morton , Joonsoo Kim , Ananth Narayan , kernelfans@gmail.com Subject: Re: [RFC PATCH v6 0/4] powerpc/fadump: Improvements and fixes for firmware-assisted dump. Message-ID: <20180716082646.GF17280@dhcp22.suse.cz> References: <153172096333.29252.4376707071382727345.stgit@jupiter.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <153172096333.29252.4376707071382727345.stgit@jupiter.in.ibm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 16-07-18 11:32:56, Mahesh J Salgaonkar wrote: > One of the primary issues with Firmware Assisted Dump (fadump) on Power > is that it needs a large amount of memory to be reserved. This reserved > memory is used for saving the contents of old crashed kernel's memory before > fadump capture kernel uses old kernel's memory area to boot. However, This > reserved memory area stays unused until system crash and isn't available > for production kernel to use. How much memory are we talking about. Regular kernel dump process needs some reserved memory as well. Why that is not a big problem? > Instead of setting aside a significant chunk of memory that nobody can use, > take advantage ZONE_MOVABLE to mark a significant chunk of reserved memory > as ZONE_MOVABLE, so that the kernel is prevented from using, but > applications are free to use it. Why kernel cannot use that memory while userspace can? [...] > Documentation/powerpc/firmware-assisted-dump.txt | 18 +++ > arch/powerpc/include/asm/fadump.h | 7 + > arch/powerpc/kernel/fadump.c | 123 +++++++++++++++++-- > arch/powerpc/platforms/pseries/hotplug-memory.c | 7 + > include/linux/mmzone.h | 2 > mm/page_alloc.c | 146 ++++++++++++++++++++++ > 6 files changed, 290 insertions(+), 13 deletions(-) This is quite a large change and you didn't seem to explain why we need it. -- Michal Hocko SUSE Labs