From: Jamie Lokier <jamie@shareable.org>
To: Andy Isaacson <adi@hexapodia.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: avoiding dirty code pages with fixups
Date: Sat, 7 Feb 2004 03:33:24 +0000 [thread overview]
Message-ID: <20040207033324.GB13986@mail.shareable.org> (raw)
In-Reply-To: <20040207030343.GB21565@hexapodia.org>
Andy Isaacson wrote:
> On Sat, Feb 07, 2004 at 12:13:17AM +0000, Jamie Lokier wrote:
> > > The downside is the additional computation on page-in.
> >
> > > It is a function of how many fixups there are per page, and of how
> > > much work ld.so does to satisfy a fixup. I don't have a good feel
> > > for how expensive ld.so's fixup mechanism is... any comments?
> >
> > The other downside of your idea is that every instance of a program
> > has more dirty pages. While it is true that the pages do not require
> > disk I/O, they still take up RAM that could be used for other page
> > cache things.
>
> Well, in the case I describe, currently they're done with MAP_PRIVATE
> mappings, so it's no net loss.
Ok, that's a good point.
When you brought it up in the context of our vsyscall fla^H^H^Hdebate,
I assumed you meant to use this as a technique to help fixing up more
code pointers at run time, to convert indirect jumps to direct ones.
That does dirty more pages.
Your idea of the reverted pages conveniently containing the right code
to get them patched again is quite clever, imho.
-- Jamie
prev parent reply other threads:[~2004-02-07 3:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-03 22:54 avoiding dirty code pages with fixups Andy Isaacson
2004-02-07 0:13 ` Jamie Lokier
2004-02-07 3:03 ` Andy Isaacson
2004-02-07 3:33 ` Jamie Lokier [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=20040207033324.GB13986@mail.shareable.org \
--to=jamie@shareable.org \
--cc=adi@hexapodia.org \
--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 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.