From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Gilad Ben-Yossef <gilad@benyossef.com>
Cc: Bhavana Nagendra <Bhavana.Nagendra@3dlabs.com>,
linux-kernel@vger.kernel.org
Subject: Re: Alloc and lock down large amounts of memory
Date: 18 Aug 2002 13:18:17 +0100 [thread overview]
Message-ID: <1029673097.15859.19.camel@irongate.swansea.linux.org.uk> (raw)
In-Reply-To: <1029672587.12504.88.camel@sake>
On Sun, 2002-08-18 at 13:09, Gilad Ben-Yossef wrote:
> > Can 256M be allocated using vmalloc, if so is it swappable?
>
> It can be alloacted via vmalloc and AFAIK it is not swappable by
> default. This doesn't sound like a very good idea though.
There isnt enough address space for vmalloc to grab 256Mb. If you want
that much then you need to handle the fact its in page arrays not
virtually linear yourself.
> Yes. See /proc/kcore for a very obvious example. Also "Linux device
> drivers second edition" has many good exmaple on the subject in the
> chapter devoted to mmap.
A better worked example for large volumes of memory might be
drivers/media/video/bttv*.c.
next prev parent reply other threads:[~2002-08-18 12:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-16 14:38 Bhavana Nagendra
2002-08-18 12:09 ` Gilad Ben-Yossef
2002-08-18 12:18 ` Alan Cox [this message]
2002-08-18 22:45 ` Gilad Ben-Yossef
2002-08-18 12:19 ` Gilad Ben-Yossef
2002-08-19 12:06 ` Bhavana Nagendra
2002-08-20 5:38 ` Gilad Ben-Yossef
2002-08-20 14:51 Bhavana Nagendra
2002-08-21 5:27 ` Gilad Ben-Yossef
2002-08-20 20:08 Bhavana Nagendra
2002-08-20 20:47 ` Richard B. Johnson
[not found] ` <Pine.LNX.3.95.1020820163301.27264A-100000@chaos.analogic.c om>
2002-08-21 4:43 ` Mike Galbraith
2002-08-21 5:29 ` Gilad Ben-Yossef
[not found] <23B25974812ED411B48200D0B774071701248C6A@exchusa03.intense 3d.com>
2002-08-21 4:31 ` Mike Galbraith
2002-08-21 13:29 ` Roland Kuhn
2002-08-21 14:35 ` Mike Galbraith
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=1029673097.15859.19.camel@irongate.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Bhavana.Nagendra@3dlabs.com \
--cc=gilad@benyossef.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®