linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Joe Wong <joewong@shaolinmicro.com>
Cc: linux-mm@kvack.org
Subject: Re: question in vmalloc
Date: Wed, 16 Jan 2002 01:15:00 -0800	[thread overview]
Message-ID: <20020116011500.A739@holomorphy.com> (raw)
In-Reply-To: <1011163587.1038.2.camel@star4.planet.rcn.com.hk>; from joewong@shaolinmicro.com on Wed, Jan 16, 2002 at 02:46:27PM +0800

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/

      reply	other threads:[~2002-01-16  9:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-16  6:46 Joe Wong
2002-01-16  9:15 ` William Lee Irwin III [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020116011500.A739@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=joewong@shaolinmicro.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox