Re: swap and 2.4.20

From: Hacksaw
Date: Sun Oct 05 2003 - 17:21:29 EST


> > 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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/