🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #402

sticky bit (was: RAMDISK . . .)

#402
From: Chris Paris
Date: Tue, 11 Aug 1992 10:04
19 lines
1217 bytes
Someone mentioned the sticky bit as a way to lock a program into ram. The  
sticky bit will in fact only keep an executable in swap space, and not in  
ram. Also, it applies only to the text (code) segment of the program. Do a  
man 8 sticky and you'll see the following:

STICKY TEXT EXECUTABLE FILES
     While the `sticky bit' is set on a sharable executable file,
     the text of that file will not be removed from the system
     swap area.  Thus the file does not have to be fetched from
     the file system upon each execution.  Shareable text seg-
     ments are normally placed in a least-frequently-used cache
     after use, and thus the `sticky bit' has little effect on
     commonly-used text images.

Just a friendly clarification. :-)

--
Chris Paris
cap+@cmu.edu (NeXT mail)
Technical Details
Message-ID: <seVt2p30_ek1Q9zE48@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!cp1i+

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!cp1i+
Organization: School of Computer Science, Carnegie Mellon, Pittsburgh, PA
Date: Tue, 11 Aug 92 06:04:37 -0400
From: cap+@cmu.edu (Chris Paris)
Message-ID: <seVt2p30_ek1Q9zE48@andrew.cmu.edu>
Newsgroups: comp.sys.next.software
Subject: sticky bit (was: RAMDISK . . .)
Lines: 19