From: Wang Jian <larkwang@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.12.1 problems I meet (please CC: me)
Date: Thu, 30 Jun 2005 18:31:37 +0800 [thread overview]
Message-ID: <cce092220506300331401efa35@mail.gmail.com> (raw)
In-Reply-To: <20050630111916.FEA2.LARKWANG@gmail.com>
2005/6/30, Wang Jian <larkwang@gmail.com>:
> Hi,
>
> I use a customized kernel to do packets analysis. The analysis code is
> linked into kernel. It will vmalloc() nearly 128M (a little less) when
> initialized.
>
> The original code runs on 2.6.10 and works fine. The platform is a
> general P4 with 100M ethernet. The user space system is a 8M compressed
> ramdisk image which is a 32M filesystem.
>
> Now I want to make it work on 2.6.12+ and on Athlon64 platform, for
> better driver and better CPU/NIC performance.
>
> I have a P4 box (compilation bed, CB), a 2-way Athlon64 box (test bed,
> TB).
>
> The problems are:
>
> 2. I compile kernel 2.6.12.1 for K7 on CB. Boot it on TB, the system
> boot up execept that the analysis code can't vmalloc() the needed memory.
>
> "allocation failed: out of vmalloc space - use vmalloc=<size> to increase size."
>
> If I use vmalloc=256m in boot command line, then
>
> initrd extends beyond end of memory (0x37fef716 > 0x30000000)
> initrd extends beyond end of memory (0x37fef716 > 0x30000000)
> Kernel panic - unsyncing: VFS: Unable to mount root fs on unknown-block
> (1,0)
>
This problem also presents itself in 2.6.10.
I remove 512M physic RAM from this TB, so it has 512M RAM left. The
problem is then gone. The needed memory can be correctly vmalloc()
during boot without vmalloc=256m specified in boot command line.
I am curious why this happens?
1. With 512M physic RAM, vmalloc(16776989 * 8) succeeds.
2. With 1G physic RAM, vmalloc(16776989 * 8) fails.
3. With 1G physic RAM, vmalloc=256m boot option will cause kernel fail
to expand a 8M initrd image which is of 32M filesystem.
prev parent reply other threads:[~2005-06-30 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-30 5:46 2.6.12.1 problems I meet (please CC: me) Wang Jian
[not found] ` <20050629230020.28a1c129.rdunlap@xenotime.net>
2005-06-30 6:22 ` Wang Jian
2005-06-30 6:37 ` Jens Axboe
2005-06-30 6:44 ` Wang Jian
2005-06-30 8:28 ` Wang Jian
2005-06-30 10:31 ` Wang Jian [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=cce092220506300331401efa35@mail.gmail.com \
--to=larkwang@gmail.com \
--cc=linux-kernel@vger.kernel.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