Re: kmalloc() allocation.

From: John Levon (moz@compsoc.man.ac.uk)
Date: Mon Oct 30 2000 - 11:06:25 EST


On Mon, 30 Oct 2000, Richard B. Johnson wrote:

>
> Hello,
> How much memory would it be reasonable for kmalloc() to be able
> to allocate to a module?
>
> Oct 30 10:48:31 chaos kernel: kmalloc: Size (524288) too large
>
> Using Version 2.2.17, I can't allocate more than 64k! I need
> to allocate at least 1/2 megabyte and preferably more (like 2 megabytes).
>
> There are 256 megabytes of SDRAM available. I don't think it's
> reasonable that a 1/2 megabyte allocation would fail, especially
> since it's the first module being installed.
>
> The attempt to allocate is memory of type GFP_KERNEL.

Why do you need physically-contiguous memory ? Can you not just use
vmalloc()/vfree()

john

-- 
"It's not that the suggestions are not good ideas.  That problem is that
 committees cannot say no to good ideas, while the one thing that matters
 above all in any design task is saying no to almost everything." 
	- Vern Schryver 

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 21:00:26 EST