* SUMMARY: Sticky bit
@ 1995-03-29 22:47 Drew Kramer
0 siblings, 0 replies; 2+ messages in thread
From: Drew Kramer @ 1995-03-29 22:47 UTC (permalink / raw)
To: tru64-unix-managers
A while ago I asked:
>Does the sticky bit do anything for executables? The chmod(2) man page says:
> t Save text permission.
> In earlier versions of the UNIX system, setting this permission bit
> caused the text segment of a program to remain in virtual memory after
> its first use. The system thus avoided having to transfer the program
> code of frequently accessed programs into the paging area. A t appears
> in the execute position of the all others option to indicate that the
> file has this bit (the sticky bit) set.
>Does OSF/1 respect this bit? I can't even think of a good way to test it.
>Maybe someone could look at the source. Is there a better way to keep a
>process in memory? Thanks.
berrigan@kent.wednet.edu (Bob Berrigan) wrote:
>Back in February you sent out a message on keeping executables in memory
>(use sticky bit or some other means). Did you get any worthwhile info. you
>could pass along?
So, I figured I'd pollute the list with the answers as well. Here they are:
haymanR@icefog.uacn.alaska.edu:
The sticky bit under OSF/1 is ignored except when it is on directories, then
only the owner (and root) may delete the owner's files under that directory.
To lock something in memory, one would either let the UBC hold it in memory due
to the many accesses it has, one could use the MFS (memory file system) for the
files, or one could wire the pages into memory via the mlock, munlock, mlockall,
and munlockall calls - see the DEC OSF/1 Guide to Realtime Programming.
Randy M. Hayman
haymanr@icefog.alaska.edu
Knut.Hellebo@nho.hydro.com:
I think nowadays the stickybit is used only on directories. If the sticky
bit is on then only the owner of files in that directory can remove them.
As far as I know the stickybit otherwise is ignored.
-drew
-------
USMail: OTA Limited Partnership E-mail: drew@ox.com
1 Manhattanville Road Phone: +1 914 694 5800
Purchase, New York 10577 FAX: +1 914 694 5831
"Welcome, to the machine..."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SUMMARY: Sticky bit
@ 1995-03-30 13:22 Dave Cherkus
0 siblings, 0 replies; 2+ messages in thread
From: Dave Cherkus @ 1995-03-30 13:22 UTC (permalink / raw)
To: tru64-unix-managers
|> haymanR@icefog.uacn.alaska.edu:
|> The sticky bit under OSF/1 is ignored except when it is on directories, then
|> only the owner (and root) may delete the owner's files under that directory.
|>
|> To lock something in memory, one would either let the UBC hold it in memory due
|> to the many accesses it has, one could use the MFS (memory file system) for the
|> files, or one could wire the pages into memory via the mlock, munlock, mlockall,
|> and munlockall calls - see the DEC OSF/1 Guide to Realtime Programming.
|>
|> Randy M. Hayman
|> haymanr@icefog.alaska.edu
It was my understanding that the MFS is constructed using pageable
kernel memory...
--
Dave Cherkus ----- UniMaster, Inc. ----- Contract Software Development
Specialties: UNIX TCP/IP X OSF/1 AlphaAXP AIX RS/6000 Performance ISDN
Email: cherkus@UniMaster.COM Tel: (603) 888-8308 Fax: (603) 888-8308
if (cpu.type == PENTIUM && cpu.step < 8) { panic("Intel Inside!"); }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-03-30 13:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-03-29 22:47 SUMMARY: Sticky bit Drew Kramer
-- strict thread matches above, loose matches on Subject: below --
1995-03-30 13:22 Dave Cherkus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox