mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hacksaw <hacksaw@hacksaw.org>
To: Mike Fedyk <mfedyk@matchmail.com>
Cc: Bernd Eckenfels <ecki@calista.eckenfels.6bone.ka-ip.net>,
	linux-kernel@vger.kernel.org
Subject: Re: swap and 2.4.20
Date: Sun, 05 Oct 2003 18:19:26 -0400	[thread overview]
Message-ID: <200310052219.h95MJQKF008980@habitrail.home.fools-errant.com> (raw)
In-Reply-To: Your message of "Sun, 05 Oct 2003 14:56:27 PDT." <20031005215627.GE1205@matchmail.com>

> > Does this mean that you could replace a library out from under a running but 
> > largely paged out app, and have it suddenly switch to the new library?
> 
> Technically yes, but realistically no.
> 
> You'd more likely crash the app since maybe only a few pages of the new code
> were paged in, and nothing says that it's the update of the code you wanted...
> 

Ahh, so nothing is done to ensure that that functional dependencies are 
resolved. All right, that's not shocking, since it's not the point.

In fact, thinking about what might be involved to make that possible hurts my 
head. Well maybe not. I wonder if you could have a mechanism that causes the 
entire library to be paged out and reloaded if while paging the version is 
discovered to have changed.

In many ways this would be cool, as it would mean that running apps could stay 
up and yet get bugs fixed.

I'm guessing that would require there to be no static variables in the 
library, as well as being fully reentrant, or that that any statics are in a 
page whose format doesn't change and is locked down for the switch.
-- 
Listening is a craft.
Hearing is an art.
http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD



  reply	other threads:[~2003-10-05 22:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-05 11:57 Hacksaw
2003-10-05 12:25 ` John Bradford
2003-10-05 14:05 ` Maciej Zenczykowski
2003-10-05 18:01   ` Marcelo Tosatti
2003-10-05 18:21   ` Bernd Eckenfels
2003-10-05 20:07     ` Hacksaw
2003-10-05 21:56       ` Mike Fedyk
2003-10-05 22:19         ` Hacksaw [this message]
2003-10-05 23:49           ` Mike Fedyk
2003-10-06  0:02             ` Hacksaw
2003-10-06  2:05               ` Mike Fedyk

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=200310052219.h95MJQKF008980@habitrail.home.fools-errant.com \
    --to=hacksaw@hacksaw.org \
    --cc=ecki@calista.eckenfels.6bone.ka-ip.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfedyk@matchmail.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®