> What are the limits of vmalloc? How can I allocate > (for example) 256 MB of > memory? The virtual address space used by vmalloc() is in the range of VMALLOC_START and VMALLOC_END. If CONFIG_HIGMEM is defined while building the kernel (it will be, if the machine has more than 1GB memory), and the PAGE_OFFSET is the default value of 0xc0000000, this range is approximately 0xf8000000 to 0xfe000000. This is about 96MB. Without tweaking some kernel parameters like MAXMEM_PFN, I don't think you can allocate more memory using vmalloc() on machines with 1GB or more memory. -Ravi. __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/