From: Hari Bathini <hbathini@linux.vnet.ibm.com>
To: "Michal Suchánek" <msuchanek@suse.de>
Cc: Michael Ellerman <mpe@ellerman.id.au>,
linuxppc-dev <linuxppc-dev@ozlabs.org>,
Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
Subject: Re: [PATCH v2 1/2] fadump: reduce memory consumption for capture kernel
Date: Mon, 17 Apr 2017 20:43:02 +0530 [thread overview]
Message-ID: <c1591a61-6499-4364-9d37-a3035e0eaddf@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170413215826.367dbdf0@kitsune.suse.cz>
On Friday 14 April 2017 01:28 AM, Michal Suchánek wrote:
> On Thu, 13 Apr 2017 01:59:13 +0530
> Hari Bathini <hbathini@linux.vnet.ibm.com> wrote:
>
>> On Friday 07 April 2017 07:16 PM, Michael Ellerman wrote:
>>> Hari Bathini <hbathini@linux.vnet.ibm.com> writes:
>>>> On Friday 07 April 2017 07:24 AM, Michael Ellerman wrote:
>>>>> My preference would be that the fadump kernel "just works". If
>>>>> it's using too much memory then the fadump kernel should do
>>>>> whatever it needs to use less memory, eg. shrinking nr_cpu_ids
>>>>> etc. Do we actually know *why* the fadump kernel is running out
>>>>> of memory? Obviously large numbers of CPUs is one of the main
>>>>> drivers (lots of stacks required). But other than that what is
>>>>> causing the memory pressure? I would like some data on that
>>>>> before we proceed.
>>>> Almost the same amount of memory in comparison with the memory
>>>> required to boot the production kernel but that is unwarranted for
>>>> fadump (dump capture) kernel.
>>> That's not data! :)
>>>
>>> The dump kernel is booted with *much* less memory than the
>>> production kernel (that's the whole issue!) and so it doesn't need
>>> to create struct pages for all that memory, which means it should
>>> need less memory.
>>>
>>> The vfs caches are also sized based on the available memory, so they
>>> should also shrink in the dump kernel.
>>>
>>> I want some actual numbers on what's driving the memory usage.
>>>
>>> I tried some of these parameters to see how much memory they would
>>> save:
>> Hi Michael,
>>
>> Tried to get data to show parameters like numa=off &
>> cgroup_disable=memory matter too but parameter nr_cpus=1 is making
>> parameters like numa=off, cgroup_disable=memory insignificant. Also,
>> these parameters not using much of early memory reservations is
>> making quantification of memory saved for each of them that much more
>> difficult. But I would still like to argue that passing additional
>> parameters to fadump is better than enforcing nr_cpus=1 in the kernel
>> for:
>>
>> a) With makedumpfile tool supporting multi-threading it would make
>> sense to leave the choice of how many CPUs to have, to the user.
>>
>> b) Parameters like udev.children-max=2 can help to reduce the
>> number of parallel executed events bringing down the memory pressure
>> on fadump kernel (when it is booted with more than one CPU).
>>
>> c) Ease of maintainability is better (considering any new kernel
>> features with some memory to save or stability to gain on disabling,
>> possible platform supports) with append approach over enforcing these
>> parameters
>> in the kernel.
>>
>> d) It would give user the flexibility to disable unwanted kernel
>> features in fadump kernel (numa=off, cgroup_disable=memory). For
>> every feature enabled in the production kernel, fadump kernel will
>> have the choice to
>> opt out of it, provided there is such cmdline option.
> Hello,
Hi Michal,
> can't the extra parameters be passed in the devicetree?
Hmmm.. possible. Without change in f/w, this may not be guaranteed though.
> The docs say that the kernel can tell it's a fadump crash kernel by
> checking the devicetree ibm,dump-kernel property. Is there any reason
This node is exported by firmware
> more (optional) properties cannot be added?
Kernel change seems simple over f/w enhancement..
Thanks
Hari
next prev parent reply other threads:[~2017-04-17 15:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 12:38 [PATCH v2 1/2] fadump: reduce memory consumption for capture kernel Hari Bathini
2017-02-07 12:38 ` [PATCH v2 2/2] fadump: update documentation about introduction of handover area Hari Bathini
2017-04-07 1:54 ` [PATCH v2 1/2] fadump: reduce memory consumption for capture kernel Michael Ellerman
2017-04-07 7:24 ` Hari Bathini
2017-04-07 9:06 ` Hari Bathini
2017-04-07 13:46 ` Michael Ellerman
2017-04-07 17:41 ` Hari Bathini
2017-04-12 20:29 ` Hari Bathini
2017-04-13 19:58 ` Michal Suchánek
2017-04-17 15:13 ` Hari Bathini [this message]
2017-04-18 14:18 ` Michal Suchánek
2017-04-19 4:19 ` Michael Ellerman
2017-04-19 14:08 ` Michal Suchánek
2017-04-20 18:49 ` Hari Bathini
2017-04-24 10:24 ` Michal Suchánek
2017-04-24 12:56 ` Hari Bathini
2017-04-24 14:00 ` Michal Suchánek
2017-04-25 13:13 ` Hari Bathini
2017-04-25 13:29 ` Michal Suchánek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1591a61-6499-4364-9d37-a3035e0eaddf@linux.vnet.ibm.com \
--to=hbathini@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=mahesh@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=msuchanek@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).