public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: Nick LeRoy <nleroy@cs.wisc.edu>
Cc: Steffen Persvold <sp@scali.no>,
	Christopher Friesen <cfriesen@nortelnetworks.com>,
	root@chaos.analogic.com, linux-kernel@vger.kernel.org
Subject: Re: Swap
Date: Tue, 20 Nov 2001 13:44:18 -0800	[thread overview]
Message-ID: <20011120134418.C4210@mikef-linux.matchmail.com> (raw)
In-Reply-To: <Pine.LNX.3.95.1011120111730.7650A-100000@chaos.analogic.com> <3BFAC5A1.81474E74@scali.no> <20011120131839.B4210@mikef-linux.matchmail.com> <200111202134.fAKLYSt15090@schroeder.cs.wisc.edu>
In-Reply-To: <200111202134.fAKLYSt15090@schroeder.cs.wisc.edu>

On Tue, Nov 20, 2001 at 03:33:28PM -0600, Nick LeRoy wrote:
> On Tuesday 20 November 2001 15:18, Mike Fedyk wrote:
> > On Tue, Nov 20, 2001 at 10:05:37PM +0100, Steffen Persvold wrote:
> > > Christopher Friesen wrote:
> > > > "Richard B. Johnson" wrote:
> > > > > On Tue, 20 Nov 2001, Wolfgang Rohdewald wrote:
> > > > > > On Tuesday 20 November 2001 15:51, J.A. Magallon wrote:
> > > > > > > When a page is deleted for one executable (because we can re-read
> > > > > > > it from on-disk binary), it is discarded, not paged out.
> > > > > >
> > > > > > What happens if the on-disk binary has changed since loading the
> > > > > > program? -
> > > > >
> > > > > It can't. That's the reason for `install` and other methods of
> > > > > changing execututable files (mv exe-file exe-file.old ; cp newfile
> > > > > exe-file). The currently open, and possibly mapped file can be
> > > > > re-named, but it can't be overwritten.
> > > >
> > > > Actually, with NFS (and probably others) it can.  Suppose I change the
> > > > file on the server, and it's swapped out on a client that has it
> > > > mounted.  When it swaps back in, it can get the new information.
> > >
> > > This sounds really dangerous... What about shared libraries ??
> >
> > IIRC (if wrong flame...)
> >
> > When you delete an open file, the entry is removed from the directory, but
> > not unlinked until the file is closed.  This is a standard UNIX semantic.
> >
> > Now, if you have a set of processes with shared memory, and one closes, and
> > another is created to replace, the new process will get the new libraries,
> > or even new version of the process.  This could/will bring down the entire
> > set of processes.
> >
> > Apps like samba come to mind...
> 
> *Any* time that you write to an executing executable, all bets are off.  The 
> most likely outcome is a big 'ol crash & burn.  With a local FS, Unix 
> prevents you from shooting yourself in the foot, but with NFS, fire away..  
> I've done it.  It *does* let you, but...
> 
> Solution:  Don't do that.  Shut them all down, on all clients, upgrade the 
> binaries, then restart the processes on the clients.
> 
> As far as the scenerio that you've described, I *think* that it would 
> actually work.  When the new process is fork()ed, it gets a copy of the file 
> descriptors from it's parent, so the file is still open to it.  If it the 
> exec()s, the new image no longer has any real ties to it's parent (at least, 
> not that are relevant to this).
> 

What about processes with shared memory such as samba 2.0?

  reply	other threads:[~2001-11-20 21:44 UTC|newest]

Thread overview: 108+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.inl6g6v.1mmbp4@ifi.uio.no>
     [not found] ` <fa.heevhav.sjs8an@ifi.uio.no>
2001-11-18 22:15   ` Swap Dan Maas
2001-11-18 22:43     ` Swap François Cami
2001-11-19  9:18       ` Swap James A Sutherland
2001-11-19 10:51         ` Swap Remco Post
2001-11-19 13:33           ` Swap James A Sutherland
2001-11-19 13:46             ` Swap Remco Post
2001-11-19 16:58               ` Swap Rik van Riel
     [not found]                 ` <Pine.LNX.4.33L.0111191458150.1491-100000@duckman.distro.conecti va>
2001-11-19 21:13                   ` Swap Alex Bligh - linux-kernel
2001-11-19 21:17                     ` Swap Rik van Riel
     [not found]                       ` <Pine.LNX.4.33L.0111191917000.1491-100000@duckman.distro.conecti va>
2001-11-19 21:52                         ` Swap Alex Bligh - linux-kernel
2001-11-19 16:36             ` Swap Jesse Pollard
2001-11-20 14:51             ` Swap J.A. Magallon
2001-11-20 16:01               ` Swap Wolfgang Rohdewald
2001-11-20 16:06                 ` Swap Remco Post
2001-11-20 16:12                 ` Swap Nick LeRoy
2001-11-20 16:20                 ` Swap Richard B. Johnson
2001-11-20 17:14                   ` Swap Christopher Friesen
2001-11-20 17:40                     ` Swap Richard B. Johnson
2001-11-20 18:14                       ` Swap Nick LeRoy
2001-11-21 10:17                         ` Swap Helge Hafting
2001-11-21 11:17                           ` Swap Alan Cox
2001-11-20 23:20                       ` Swap Luigi Genoni
2001-11-21 16:44                       ` Swap Remco Post
2001-11-20 17:58                     ` Swap Wolfgang Rohdewald
2001-11-26 21:51                       ` [Linux-abi-devel] Swap Christoph Hellwig
2001-11-20 21:05                     ` Swap Steffen Persvold
2001-11-20 21:18                       ` Swap Mike Fedyk
2001-11-20 21:33                         ` Swap Nick LeRoy
2001-11-20 21:44                           ` Mike Fedyk [this message]
2001-11-20 22:00                             ` Swap Nick LeRoy
2001-11-21 16:53                             ` Swap Remco Post
2001-11-20 21:43                         ` Swap Richard B. Johnson
2001-11-20 21:50                           ` NFS, Paging & Installing [was: Re: Swap] Mike Fedyk
2001-11-21  1:22                             ` Horst von Brand
2001-11-21  1:46                               ` Mike Fedyk
2001-11-21 10:55                                 ` Trond Myklebust
2001-11-22  5:16                                   ` Bernd Eckenfels
2001-11-22 12:19                                     ` Trond Myklebust
2001-11-23 19:33                                   ` Mike Fedyk
2001-11-20 21:19                       ` Swap Nick LeRoy
2001-11-21 16:48                       ` Swap Remco Post
2001-11-20 20:58               ` Swap Mike Fedyk
2001-11-19 10:03       ` Swap Tim Connors
2001-11-19 10:16         ` Swap Dan Maas
     [not found] <fa.kb6ct7v.pgku0d@ifi.uio.no>
     [not found] ` <fa.k8qdvcv.184ak2l@ifi.uio.no>
2001-11-20 22:46   ` Swap Dan Maas
2001-11-20 23:17     ` Swap Trond Myklebust
     [not found] <fa.kmf405v.j74f21@ifi.uio.no>
     [not found] ` <fa.ns5ugpv.q02sbg@ifi.uio.no>
2001-11-20 21:26   ` Swap Dan Maas
2001-11-20 22:05     ` Swap Rik van Riel
2001-11-20 22:11       ` Swap David S. Miller
2001-11-20 22:19         ` Swap Rik van Riel
2001-11-20 22:34           ` Swap Dan Maas
2001-11-20 23:05             ` Swap Andrew Morton
     [not found]             ` <fa.jc73ejv.1s6e80t@ifi.uio.no>
2001-11-21  1:45               ` Swap Håvard Kvålen
2001-11-21  4:23                 ` Swap Andreas Dilger
2001-11-20 22:23         ` Swap Andrew Morton
2001-11-20 23:01           ` Swap David S. Miller
2001-11-20 23:35             ` Swap Rik van Riel
2001-11-20 23:40               ` Swap David S. Miller
2001-11-21  0:19                 ` Swap Rik van Riel
2001-11-21  0:21                   ` Swap David S. Miller
2001-11-18 21:12 Swap war
2001-11-18 21:25 ` Swap James A Sutherland
2001-11-18 21:28   ` Swap war
2001-11-18 21:42     ` Swap François Cami
2001-11-18 21:45       ` Swap war
2001-11-18 23:03       ` Swap Erik Gustavsson
2001-11-19 18:12         ` Swap Eric W. Biederman
2001-11-19 18:43           ` Swap Rik van Riel
2001-11-20  2:49             ` Swap Eric W. Biederman
2001-11-20  3:33               ` Swap Ryan Cumming
2001-11-20 11:43                 ` Swap Rik van Riel
2001-11-20 11:41               ` Swap Rik van Riel
2001-11-19 19:12           ` Swap James A Sutherland
2001-11-20  2:47             ` Swap Eric W. Biederman
2001-11-20  9:16               ` Swap James A Sutherland
2001-11-18 22:05   ` Swap J.A. Magallon
2001-11-18 22:21     ` Swap François Cami
2001-11-18 22:36     ` Swap Charles Marslett
2001-11-18 22:54       ` Swap J.A. Magallon
2001-11-18 23:36     ` Swap Bernd Eckenfels
  -- strict thread matches above, loose matches on Subject: below --
2001-10-18  5:06 RFC - tree quotas for Linux (2.4.12, ext2) Neil Brown
2001-10-18  5:53 ` Ben Greear
2001-10-18  8:38   ` James Sutherland
2001-10-18 20:20     ` Mike Fedyk
2001-10-18 20:47       ` Tim Walberg
2001-10-19  1:07         ` Neil Brown
2001-10-19  3:03           ` Rik van Riel
2001-10-19 11:50             ` Horst von Brand
2001-10-19 17:00               ` Mike Fedyk
2001-10-18 21:17       ` Andreas Dilger
2001-10-18 22:56         ` Mike Fedyk
2001-10-19  0:14           ` Horst von Brand
2001-10-19  0:51             ` Mike Fedyk
2001-10-19  1:13         ` Neil Brown
2001-10-19  0:53       ` Neil Brown
2001-10-24 15:16 ` Jan Kara
2001-10-24 15:34   ` James Sutherland
2001-10-24 15:39     ` Jan Kara
2001-10-24 15:50       ` James Sutherland
2001-10-24 17:41         ` Rik van Riel
2001-10-24 18:08           ` James Sutherland
2001-10-26 11:25     ` Pavel Machek
2001-10-24 21:24   ` Neil Brown
2001-10-25 15:48     ` Jan Kara
2001-10-26  4:36       ` Neil Brown
2001-10-29 14:06         ` Jan Kara
2001-10-29 23:23           ` Neil Brown
2001-10-30 12:33             ` Jan Kara

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=20011120134418.C4210@mikef-linux.matchmail.com \
    --to=mfedyk@matchmail.com \
    --cc=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nleroy@cs.wisc.edu \
    --cc=root@chaos.analogic.com \
    --cc=sp@scali.no \
    /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