From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org,
benh@kernel.crashing.org, akpm@linux-foundation.org,
torvalds@linux-foundation.org, tj@kernel.org, tglx@linutronix.de,
mingo@elte.hu
Cc: linux-tip-commits@vger.kernel.org
Subject: Re: [tip:core/urgent] memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node ()
Date: Tue, 24 Jan 2012 22:58:41 -0500 [thread overview]
Message-ID: <20120125035841.GA17520@phenom.dumpdata.com> (raw)
In-Reply-To: <20120124145132.GA30828@phenom.dumpdata.com>
On Tue, Jan 24, 2012 at 09:51:32AM -0500, Konrad Rzeszutek Wilk wrote:
> On Mon, Jan 16, 2012 at 01:03:50AM -0800, tip-bot for Tejun Heo wrote:
> > Commit-ID: 5d53cb27d849c899136c048ec84c940ac449494b
> > Gitweb: http://git.kernel.org/tip/5d53cb27d849c899136c048ec84c940ac449494b
> > Author: Tejun Heo <tj@kernel.org>
> > AuthorDate: Fri, 13 Jan 2012 10:14:12 -0800
> > Committer: Ingo Molnar <mingo@elte.hu>
> > CommitDate: Mon, 16 Jan 2012 08:38:06 +0100
> >
> > memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node()
> >
> > 7bd0b0f0da ("memblock: Reimplement memblock allocation using
> > reverse free area iterator") implemented a simple top-down
> > allocator using a reverse memblock iterator. To avoid underflow
> > in the allocator loop, it simply raised the lower boundary to
> > the requested size under the assumption that requested size
> > would be far smaller than available memblocks.
> >
> > This causes early page table allocation failure under certain
> > configurations in Xen. Fix it by checking for underflow directly
> > instead of bumping up lower bound.
>
> Well, it fixes my 4GB problem, but when I try to boot a 2GB (1GB of that
> is for balloon usage) guest (i386 only) I get a new failure:
>
> > more /mnt/lab/bootstrap-i386/test.xm
> extra="console=hvc0 debug earlyprintk=xen memblock=debug"
> kernel="/mnt/lab/bootstrap-i386/vmlinuz"
> ramdisk="/mnt/lab/bootstrap-i386/initramfs.cpio.gz"
> memory=1024
> maxmem=2048
> vcpus=2
> name="bootstrap-i386"
> on_crash="preserve"
> vif = [ 'mac=00:0F:4B:00:00:68, bridge=switch' ]
> vfb = [ 'vnc=1, vnclisten=0.0.0.0,vncunused=1']
> disk=['phy:/dev/vg_guests/bootstrap-i386,xvda,w']
>
> So this is v3.3-rc1 + this patch by itself. Any thoughts of what else
> might be amiss?
My apologies, I had been building new kernels everyday and the /lib/modules
was getting filled with v3.3-rc1-000XX making the initramfs bigger and bigger
until well - it no longer could fit in memory. And I added this specific patch
in my testing queue which triggered another build and caused the initramfs to
grow just too big:
> (early) [ 0.000000] initrd too large to handle, disabling initrd
while the previous initramfs were under the size constraint.
So, the patch is good, I've retested it and fixed my AutoMaticBuildThingy
to clean up /lib/modules before the built and sorry for the scare!
Please apply this patch to 3.3-rc1 at your earliest convience! Thanks!
prev parent reply other threads:[~2012-01-25 4:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-10 20:28 Bootup regression introduced by 7bd0b0f0da3b1ec11cbcc798eb0ef747a1184077 ("memblock: Reimplement memblock allocation using reverse free area iterato") in v3.3-rc0 Konrad Rzeszutek Wilk
2012-01-10 22:26 ` Tejun Heo
2012-01-10 22:45 ` Konrad Rzeszutek Wilk
2012-01-10 23:15 ` Tejun Heo
2012-01-11 20:04 ` Konrad Rzeszutek Wilk
2012-01-13 14:27 ` Konrad Rzeszutek Wilk
2012-01-13 18:14 ` [PATCH 3.3-rc] memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node() Tejun Heo
2012-01-16 9:03 ` [tip:core/urgent] memblock: Fix alloc failure due to dumb underflow protection in memblock_find_in_range_node () tip-bot for Tejun Heo
2012-01-24 14:51 ` Konrad Rzeszutek Wilk
2012-01-25 3:58 ` Konrad Rzeszutek Wilk [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=20120125035841.GA17520@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=benh@kernel.crashing.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
/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