From: Matt Porter <porter@cox.net>
To: vinai <vroopcha@mcw.edu>
Cc: "LinuxPPC Developers' List" <linuxppc-dev@lists.linuxppc.org>
Subject: Re: vmalloc limits in PPC kernels ?
Date: Thu, 13 Feb 2003 15:40:40 -0700 [thread overview]
Message-ID: <20030213154040.A1738@home.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0302131412270.278-100000@kaiso.biophysics.mcw.edu>; from vroopcha@mcw.edu on Thu, Feb 13, 2003 at 02:19:41PM -0600
On Thu, Feb 13, 2003 at 02:19:41PM -0600, vinai wrote:
> I've been doing a little work trying to update an in-house custom driver
> for x86. We acquired fairly large chunks of data, and we can't afford
> to lose any of it. To do this, we reserve a fairly large chunk of memory
> in which the data can be stored, as we can't afford system latencies
> when writing to disk. We were able to this in 2.2 without any problems,
> but in 2.4, a new "feature" was introduced to x86 that limited how much
> memory one can "vmalloc". I did a quick check, but didn't find anything
> in the ppc asm directory. Do we have such a limit ?
All architectures have a limit. Its size is defined by
VMALLOC_END-VMALLOC_START and further limited by the size of each
preceding allocation (+ a PAGE_SIZE pad) before the allocation in
question. Allocations also include ioremaps and on some architectures
consistent memory allocations absorb vmalloc space.
You can see the constraints in asm-ppc/pgtable.h. On PPC, it is
possible to change the default parameters in order to expand the
amount of vmalloc space available. This is accomplished via
config options under the advanced kernel options menu. With
PAGE_OFFSET at 0x40000000 and highmem, I've run a system with
nearly 3GB of vmalloc space.
Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-02-13 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-13 20:19 vmalloc limits in PPC kernels ? vinai
2003-02-13 22:40 ` Matt Porter [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-14 17:32 vinai
2003-02-14 17:49 ` Matt Porter
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=20030213154040.A1738@home.com \
--to=porter@cox.net \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=vroopcha@mcw.edu \
/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).