linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* question in vmalloc
@ 2002-01-16  6:46 Joe Wong
  2002-01-16  9:15 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Wong @ 2002-01-16  6:46 UTC (permalink / raw)
  To: linux-mm

Hi,

  I am new to the kernel area. I would like to know if there is any
potentail problem on using vmalloc? If the memory returned by vmalloc
swappable? If so, how I can turn it to unswappable? I have a kernel
module to will preallocate some huge data strucutres using vmalloc when
loaded.

TIA.

- Joe





--
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] 2+ messages in thread

* Re: question in vmalloc
  2002-01-16  6:46 question in vmalloc Joe Wong
@ 2002-01-16  9:15 ` William Lee Irwin III
  0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2002-01-16  9:15 UTC (permalink / raw)
  To: Joe Wong; +Cc: linux-mm

On Wed, Jan 16, 2002 at 02:46:27PM +0800, Joe Wong wrote:
>   I am new to the kernel area. I would like to know if there is any
> potentail problem on using vmalloc? If the memory returned by vmalloc
> swappable? If so, how I can turn it to unswappable? I have a kernel
> module to will preallocate some huge data strucutres using vmalloc when
> loaded.

Memory allocated by vmalloc() is not swappable. It is virtually
contiguous because the kernel edits its page tables to make it so.
It is not necessarily physically contiguous, though. The amount of
kernel virtual address space available for vmalloc() allocations is
limited, though, as the address space is laid out statically.

This is how it is done in Linux; other kernels may behave differently
(e.g. AIX).


Cheers,
Bill
--
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] 2+ messages in thread

end of thread, other threads:[~2002-01-16  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16  6:46 question in vmalloc Joe Wong
2002-01-16  9:15 ` William Lee Irwin III

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