linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Allocating large chunks of mem from net-bh
@ 2000-07-24  9:11 Roman Mitnitski
  2000-07-25 13:43 ` Stephen C. Tweedie
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Mitnitski @ 2000-07-24  9:11 UTC (permalink / raw)
  To: linux-mm

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]



 Hi.

I need to allocate (dynamically, as the need arises) large memory areas
from the bottom-half context (net-bh, to be exact) in Linux 2.2.x. 

kmalloc does not let me allocate as much memory as I need, and
vmalloc refuses to work in bottom-half context. 

I don't need anything special from the allocated memory, (like physical continuity,
or DMA area). I even don't care much how long
it takes to allocate, sice it really does not happen that much often.

Is there any reasonable workaround that would let me solve this problem?
Is the situation in 2.4 any better (because my code will have to move on to 2.4
eventually)

 Roman


[-- Attachment #2: Type: text/html, Size: 1884 bytes --]

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

* Re: Allocating large chunks of mem from net-bh
  2000-07-24  9:11 Allocating large chunks of mem from net-bh Roman Mitnitski
@ 2000-07-25 13:43 ` Stephen C. Tweedie
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen C. Tweedie @ 2000-07-25 13:43 UTC (permalink / raw)
  To: Roman Mitnitski; +Cc: linux-mm

Hi,

On Mon, Jul 24, 2000 at 11:11:26AM +0200, Roman Mitnitski wrote:
> 
> I need to allocate (dynamically, as the need arises) large memory areas
> from the bottom-half context (net-bh, to be exact) in Linux 2.2.x. 
> 
> kmalloc does not let me allocate as much memory as I need, and
> vmalloc refuses to work in bottom-half context. 
> 
> I don't need anything special from the allocated memory, (like physical continuity,
> or DMA area). I even don't care much how long
> it takes to allocate, sice it really does not happen that much often.
> 
> Is there any reasonable workaround that would let me solve this problem?

Yep.  Just call get_free_page() to allocate as many individual pages
as you want.  I assume that if you don't need physical contiguity,
then tracking that set of pages will be fine for you.

kiobufs will provide convenient containers for such sets of pages in
2.4 if you want them, and we're adding things like support
functionality for the allocation of arbitrary pages directly into
kiobufs for 2.5.

Cheers,
 Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

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

end of thread, other threads:[~2000-07-25 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-24  9:11 Allocating large chunks of mem from net-bh Roman Mitnitski
2000-07-25 13:43 ` Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox