mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Hi.... I guess linux-kernel..
       [not found] <fa.ncuedqv.80oc2g@ifi.uio.no>
@ 2001-09-25 11:18 ` Dan Maas
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Maas @ 2001-09-25 11:18 UTC (permalink / raw)
  To: 정찬성; +Cc: linux-kernel

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Hi.... I guess linux-kernel..
@ 2001-09-25  0:31 정찬성
  0 siblings, 0 replies; 2+ messages in thread
From: 정찬성 @ 2001-09-25  0:31 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="ks_c_5601-1987", Size: 405 bytes --]

Hi... Linux Kernel programmers..
I guess...
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...
please help me...
Thanks...
Sincerely yours....ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…ébïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣømšSåy«\x1e­æ¶\x17…\x01\x06­†ÛiÿÿðÃ\x0fí»\x1fè®\x0få’i\x7f

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-25 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <fa.ncuedqv.80oc2g@ifi.uio.no>
2001-09-25 11:18 ` Hi.... I guess linux-kernel Dan Maas
2001-09-25  0:31 정찬성

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®