From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 3 of 4] KEXEC: Allocate crash structures in low memory
Date: Fri, 9 Mar 2012 17:01:27 +0000 [thread overview]
Message-ID: <4F5A3767.8000904@citrix.com> (raw)
In-Reply-To: <4F5A36180200007800077663@nat28.tlf.novell.com>
On 09/03/12 15:55, Jan Beulich wrote:
>>>> On 09.03.12 at 15:42, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
>> --- a/xen/drivers/char/console.c
>> +++ b/xen/drivers/char/console.c
>> @@ -596,7 +596,7 @@ void __init console_init_postirq(void)
>> opt_conring_size = num_present_cpus() << (9 + xenlog_lower_thresh);
>>
>> order = get_order_from_bytes(max(opt_conring_size, conring_size));
>> - while ( (ring = alloc_xenheap_pages(order, 0)) == NULL )
>> + while ( (ring = alloc_xenheap_pages(order, MEMF_bits(crashinfo_maxaddr_bits))) == NULL )
>> {
>> BUG_ON(order == 0);
>> order--;
> Did you note the loop here? Rather than shrinking the size, I think
> you ought to ignore the address limit as the first fallback option,
> in particular when the size was specified on the command line.
>
> Jan
Yes, but I disagree. The default for crashinfo_maxaddr_bits is 64, so
most of the time, this change will have no functional effect.
The times when crashinfo_maxaddr_bits will change is either when the
user specifies "low_crashinfo=min/all" explicitly on the command line,
or implicitly specifies "low_crashinfo=min" by explicitly specifying
"crashinfo_maxaddr=$foo" on the command line.
At this point, I would say that the users request to have the console
ring in low memory overrides the size argument.
The usecase for low_crashinfo is with a 32bit crash kernel, at which
point a smaller console ring in lower memory is preferable to a larger
console ring that the crashdump kernel cant access.
If order gets to 0, one solution might be to then drop the location
restriction and try unrestricted from size again. However, the point at
which you cant allocate a single page in lower memory is the point at
which you have bigger problems to worry about.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
next prev parent reply other threads:[~2012-03-09 17:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 14:42 [PATCH 0 of 4] KEXEC subsystem fixes and changes Andrew Cooper
2012-03-09 14:42 ` [PATCH 1 of 4] KEXEC: Allocate crash notes on boot Andrew Cooper
2012-03-09 15:41 ` Jan Beulich
2012-03-09 16:08 ` Andrew Cooper
2012-03-09 16:58 ` Jan Beulich
2012-03-09 14:42 ` [PATCH 2 of 4] x86: Introduce "top_of_mem" Andrew Cooper
2012-03-09 15:43 ` Jan Beulich
2012-03-09 16:46 ` Andrew Cooper
2012-03-09 17:00 ` Jan Beulich
2012-03-09 14:42 ` [PATCH 3 of 4] KEXEC: Allocate crash structures in low memory Andrew Cooper
2012-03-09 15:52 ` Keir Fraser
2012-03-09 16:24 ` Andrew Cooper
2012-03-09 16:30 ` Keir Fraser
2012-03-09 15:55 ` Jan Beulich
2012-03-09 17:01 ` Andrew Cooper [this message]
2012-03-09 14:42 ` [PATCH 4 of 4] KEXEC: Introduce new crashtables interface Andrew Cooper
2012-03-09 16:11 ` Jan Beulich
2012-03-09 17:33 ` Andrew Cooper
2012-03-11 9:59 ` Jan Beulich
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=4F5A3767.8000904@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).