[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allocation of kernel memory >128K
"Amit S. Jain" <amitjain@tifr.res.in> writes:
> I have been working on a module in which I copy large amount of data fromn
> the user to the kernel area.To do so I allocate using either kmaaloc or
> vmalloc or get_free_pages()large amount of memory(in the range of
> MBytes) in the kernel space.However this attempt is not successful.One ofmy
> colleagues informed me that in the kernel space it is safe not to allocate
> large amount of memory at one time,should be kept upto 30K...is he
> right....could you throw more light on this issue.
large amounts of memory are o.k.
large amounts of continuous memory is generally a bad thing.
Allocating everything with multiple calls to get_free_page() should
get the job done.
Eric
--
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/