From: Anders Rayner-Karlsson <akarlsso@redhat.com>
To: Baoquan He <bhe@redhat.com>
Cc: Barros Guilherme <gbarros@redhat.com>,
kumagai-atsushi@mxc.nes.nec.co.jp, kexec@lists.infradead.org,
Vivek Goyal <vgoyal@redhat.com>
Subject: Re: [PATCH] Makedumpfile: vmcore size estimate
Date: Mon, 23 Jun 2014 15:55:38 +0200 [thread overview]
Message-ID: <27DABA11-871D-43EB-8F06-C72E627B9BF5@redhat.com> (raw)
In-Reply-To: <20140623130533.GA1616@dhcp-17-102.nay.redhat.com>
[-- Attachment #1.1: Type: text/plain, Size: 2330 bytes --]
On 23 Jun 2014, at 15:05, Baoquan He <bhe@redhat.com> wrote:
> On 06/23/14 at 08:36am, Vivek Goyal wrote:
>> On Wed, Jun 11, 2014 at 08:39:05PM +0800, Baoquan He wrote:
>>> sudo makedumpfile -E -d 31 --vmcore-estimate /proc/kcore /var/crash/kcore-dump
>>>
>>> Questions:
>>> 1. Or we can get the dumpable page numbers only, then calculate the estimated
>>> vmcore size by a predifined factor if it's kdump compressed dumping. E.g if
>>> lzo dump, we assume the compression ratio is 45%, then the estimate size is
>>> equal to: (dumpable page numbers) * 4096* 45%.
>>
>> I think that we can probably not guess the saving from compression.
>> Compression ratio varies based on content of page. So if we keep it simple
>> and just calculate the number of pages which will be dumped and multiply
>> it by page size, that number will be much more accurate (for current
>> system).
>
> Yeah, this is another plan. Then the output will be the size of elf
> dump. If user configured the kdump compression, such as lzo/snappy, they
> can just estimate it by themselves. It's OK if user can accept this
> since this is much more accurate.
>
> Hi Anders,
>
> Do you have any comments on this? I found you are concerned with this
> issue too.
Hi there,
Only comment I have is that I like your approach and that I agree
we will not be able to accurately predict compression ratio. While
we could run the compression to get an accurate prediction, it
would not be accurate five minutes later, so best not to go there
at all. Just being able to tell how big the dump will be at a
specific dumplevel, uncompressed, will be very welcome by customers
and partners.
Because it allows them to gauge how much space they need to set
aside for /var/crash or where ever they need to write the dump.
The old perl script I did after speaking with Neil Horman was only
every able to predict dumplevel 31, but not all of the time is
that enough. Changing to 17 or 1 for a specific problem, they want
to know how much space they need for that.
So, I am very happy to see this effort underway. :)
Thank you,
--
Anders Rayner-Karlsson / akarlsso@redhat.com / +46-76-805-2173
Principal Technical Account Manager & Support Account Director
Red Hat Strategic Customer Engagement Team
[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 881 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
prev parent reply other threads:[~2014-06-23 13:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 12:39 [PATCH] Makedumpfile: vmcore size estimate Baoquan He
2014-06-11 13:57 ` Baoquan He
2014-06-20 1:07 ` Atsushi Kumagai
2014-06-20 1:58 ` bhe
2014-06-20 2:33 ` bhe
2014-06-23 12:57 ` Vivek Goyal
2014-06-26 8:21 ` Atsushi Kumagai
2014-06-26 12:31 ` Vivek Goyal
2014-07-02 0:25 ` Atsushi Kumagai
2014-07-02 8:13 ` bhe
2014-07-04 1:53 ` HATAYAMA, Daisuke
2014-07-04 9:44 ` bhe
2014-07-11 13:51 ` Vivek Goyal
2014-06-23 12:36 ` Vivek Goyal
2014-06-23 13:05 ` Baoquan He
2014-06-23 13:55 ` Anders Rayner-Karlsson [this message]
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=27DABA11-871D-43EB-8F06-C72E627B9BF5@redhat.com \
--to=akarlsso@redhat.com \
--cc=bhe@redhat.com \
--cc=gbarros@redhat.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=vgoyal@redhat.com \
/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