From: "Dan Maas" <dmaas@dcine.com>
To: 정찬성 <csjung@dreamintek.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Hi.... I guess linux-kernel..
Date: Tue, 25 Sep 2001 07:18:12 -0400 [thread overview]
Message-ID: <012101c145b3$c43a1d50$1a01a8c0@allyourbase> (raw)
In-Reply-To: <fa.ncuedqv.80oc2g@ifi.uio.no>
> I want to know, how use continuous memory over 128k at linux kernel...
> kmalloc is 128k limit...
> But, I want continous memory over 128k at linux kernel...
kmalloc() returns physically contiguous regions of memory. The 128KB limit
exists because it is difficult to find a free memory block that large in a
running system, due to fragmentation.
You have two options - if you can use a virtually (but not physically)
contiguous region of memory, use vmalloc(). This works fine for kernel data
structures. If you are using the memory as a DMA buffer however, you need to
be aware that the pages are not physically contiguous, so you have to DMA
each page individually (scatter/gather). Also for DMA to 32-bit PCI devices,
use vmalloc_32() instead of vmalloc() (which might give you high-memory
pages that are inaccessible to 32-bit devices).
The second option is to grab a large physically-contiguous region of memory
at boot time. There are a few kernel patches available that provide this
feature, although I haven't used them. For a really quick hack, you can use
the "mem=xxxM" boot-time option to tell the kernel to use less physical
memory than you actually have, and then claim the remaining memory for your
own use.
Regards,
Dan
next parent reply other threads:[~2001-09-25 11:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.ncuedqv.80oc2g@ifi.uio.no>
2001-09-25 11:18 ` Dan Maas [this message]
2001-09-25 0:31 정찬성
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='012101c145b3$c43a1d50$1a01a8c0@allyourbase' \
--to=dmaas@dcine.com \
--cc=csjung@dreamintek.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
all inboxes | Powered by JetHome®