Subject: Re: Simple thought...
To: Andrew Gillham <>
From: Steven M. Bellovin <>
List: current-users
Date: 06/07/2002 19:28:52
In message <>, Andrew Gillham writes:
>On Fri, Jun 07, 2002 at 10:59:31AM -0700, Greywolf wrote:
>> I know this is also going to seem silly to some people, but I welcome
>> constructive criticism; i.e. if this does NOT seem like a win for some
>> reason (I happen to have the extra 160MB to spare for this, so it
>> seems like a good idea at the time...), fill me in.
>I think it would be cool to have a utility that allows you to hardwire an
>executable into the buffer cache.  e.g. "ubcfreeze /usr/bin/* /usr/sbin/*"
>Or maybe "ubcfreeze /usr/pkg/bin/mozilla" :-)
>So basically you could load the executable into cache, and never free that
>cache.  So shells, sshd, apache, browsers, perl, compiler, whatever could
>be frozen in the cache.
>I don't mean a "don't page this program out" flag, but a "don't remove this
>from the buffer cache" flag instead.  
>This seems like it could be cleaner than a mfs setup, but it might be
>impossible to implement.  :-)

I have no idea what it would take in the kernel, but I think I know the 
proper user-space utility to do it:

	chmod +t file...

		--Steve Bellovin, (me) ("Firewalls" book)