From: Stanislav Meduna <stano@meduna.org>
To: Lars Segerlund <lars.segerlund@gmail.com>,
"linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Subject: Re: paging in realtime context ...
Date: Fri, 28 Jun 2013 17:37:13 +0200 [thread overview]
Message-ID: <51CDADA9.1030909@meduna.org> (raw)
In-Reply-To: <CAF-VNaov5Y76uhm6W3zPD-oe8xik4ER69Pw8V+dPP8JdJ4gb-w@mail.gmail.com>
On 28.06.2013 16:14, Lars Segerlund wrote:
> Quick question, if I mlock my app and prefault the stacks, what
> happens if I haven't linked static and use a library ?
>
> Surely a bunch of pagefaults ?
I am no kernel expert but as I understand it should not matter
whether the application is linked statically or dynamically.
What is mapped gets locked.
After mlockall returns you should only get pagefaults if the
mapping changes (heap grows, you call mmap, dlopen()
a library, start a new thread, ...).
--
Stano
prev parent reply other threads:[~2013-06-28 15:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 14:14 paging in realtime context Lars Segerlund
2013-06-28 15:37 ` Stanislav Meduna [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=51CDADA9.1030909@meduna.org \
--to=stano@meduna.org \
--cc=lars.segerlund@gmail.com \
--cc=linux-rt-users@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.