linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* vmalloc errors in 2.4.20
@ 2003-02-09  4:39 sandeep uttamchandani
  2003-02-09  5:22 ` Martin J. Bligh
  2003-02-09  5:28 ` Karen Shaeffer
  0 siblings, 2 replies; 3+ messages in thread
From: sandeep uttamchandani @ 2003-02-09  4:39 UTC (permalink / raw)
  To: linux-mm

The linux kernel 2.4.20 seems to have problems with
vmalloc. Here is what I did:

In my driver, I try to allocate a buffer of size 512K
using vmalloc ( kmalloc cannot allocate more than
128K). It generates a kernel oops message saying that
the virtual memory cannot be allocated.

I suspect there is a problem with the address range
defined for vmalloc namely by VMALLOC_START and
VMALLOC_END. 

Any thoughts of what might be going-on ? 

Please do let me know if you want to look at the
kernel oops message. 

Thanks,
Sandeep
sandeepu@us.ibm.com

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
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-mm.org/

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

* Re: vmalloc errors in 2.4.20
  2003-02-09  4:39 vmalloc errors in 2.4.20 sandeep uttamchandani
@ 2003-02-09  5:22 ` Martin J. Bligh
  2003-02-09  5:28 ` Karen Shaeffer
  1 sibling, 0 replies; 3+ messages in thread
From: Martin J. Bligh @ 2003-02-09  5:22 UTC (permalink / raw)
  To: sandeep uttamchandani, linux-mm

> The linux kernel 2.4.20 seems to have problems with
> vmalloc. Here is what I did:
> 
> In my driver, I try to allocate a buffer of size 512K
> using vmalloc ( kmalloc cannot allocate more than
> 128K). It generates a kernel oops message saying that
> the virtual memory cannot be allocated.
> 
> I suspect there is a problem with the address range
> defined for vmalloc namely by VMALLOC_START and
> VMALLOC_END. 
> 
> Any thoughts of what might be going-on ? 

Not really. But why don't you just call alloc_pages instead?

M.

--
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-mm.org/

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

* Re: vmalloc errors in 2.4.20
  2003-02-09  4:39 vmalloc errors in 2.4.20 sandeep uttamchandani
  2003-02-09  5:22 ` Martin J. Bligh
@ 2003-02-09  5:28 ` Karen Shaeffer
  1 sibling, 0 replies; 3+ messages in thread
From: Karen Shaeffer @ 2003-02-09  5:28 UTC (permalink / raw)
  To: linux-mm

On Sat, Feb 08, 2003 at 08:39:37PM -0800, sandeep uttamchandani wrote:
> The linux kernel 2.4.20 seems to have problems with
> vmalloc. Here is what I did:
> 
> In my driver, I try to allocate a buffer of size 512K
> using vmalloc ( kmalloc cannot allocate more than
> 128K). It generates a kernel oops message saying that
> the virtual memory cannot be allocated.
> 
> Thanks,
> Sandeep
---end quoted text---

Hi Sandeep,

I'm running a stock 2.4.20 kernel and put together a little test module that
allocates 512k memory with vmalloc. I have no problems on an Intel X86. I
also ran it allocating 1MByte as well.

cheers,
Karen
-- 
 Karen Shaeffer
 Neuralscape, Palo Alto, Ca. 94306
 shaeffer@neuralscape.com  http://www.neuralscape.com
--
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-mm.org/

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

end of thread, other threads:[~2003-02-09  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09  4:39 vmalloc errors in 2.4.20 sandeep uttamchandani
2003-02-09  5:22 ` Martin J. Bligh
2003-02-09  5:28 ` Karen Shaeffer

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