From: "John Stoffel" <john@stoffel.org>
To: linux-os@analogic.com
Cc: Sreeni <sreeni.pulichi@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: **** How to lock memory pages?
Date: Wed, 29 Jun 2005 16:02:13 -0400 [thread overview]
Message-ID: <17090.65093.315260.889211@smtp.charter.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0506291245170.22243@chaos.analogic.com>
>>>>> "Richard" == Richard B Johnson <linux-os@analogic.com> writes:
Richard> On Wed, 29 Jun 2005, Sreeni wrote:
>> Is there a way to lock a particular portion of the memory pages during
>> kernel bootup? I want to re-use these pages when I load my
>> application. I *don't* wanna use the idea of reserving some physical
>> memory and using ioremap. I want something that kernel should be able
>> to manage this memory but I don't want any other application to use
>> this memory.
Richard> Wrong kind of kernel for this kind of use. The kernel
Richard> dynamically allocates/deallocates/pages of memory that it
Richard> knows about. The only way to do what you want, with a kernel
Richard> designed for multi-tasking multi-user applications use, is to
Richard> reserve memory during boot.
Sreeni, you might want to look at the mlockall() interface, but it's
also hard to know what's right to do here if you don't explain what
you are trying to do. For example, why do you *care* which memory
address(es) your application gets?
John
next prev parent reply other threads:[~2005-06-29 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 17:58 Memory management while loading program in Linux Sreeni
2005-06-29 4:20 ` Eric W. Biederman
2005-06-29 15:37 ` **** How to lock memory pages? Sreeni
2005-06-29 16:51 ` Richard B. Johnson
2005-06-29 20:02 ` John Stoffel [this message]
2005-06-29 20:27 ` Forcing loader to load a prog at a fixed memory location Sreeni
2005-06-29 20:50 ` Richard B. Johnson
2005-06-29 18:52 ` **** How to lock memory pages? Frederik Deweerdt
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=17090.65093.315260.889211@smtp.charter.net \
--to=john@stoffel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=sreeni.pulichi@gmail.com \
/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®