Minor speed tweak tip

michalsc at email.uc.edu michalsc at email.uc.edu
Mon Feb 10 19:11:59 GMT 2003


yes tmpfs will swap when physical ram is not avaliable

as for a more elegent solution can you look in to say forcing files into the 
disk cache and not a tmpfs mirror,  this may also be a better option
to say like gcc and a few others used for building to be put in cache
ld, install, as,.....

this could be made into a lunar option that activates with x amount of memory
or if a user wants it. and then when we lin a module or rebuild
it would lock the specified files into disk cache


Quoting "Shern, Benjamin J" <ShernBJ at LOUISVILLE.STORTEK.COM>:

> I'm also not sure where the performance peak would curve with regard
> to
> memory size?  I believe tmpfs will swap when you run out of memory? 
> This
> may or may not be faster than running purely from disk on systems with
> less
> memory?
> 
> 
> > -----Original Message-----
> > From: Shern, Benjamin J 
> > Sent: February 10, 2003 3:42 PM
> > To: 'This is the primary mailing list for Lunar Linux!'
> > Subject: RE: Minor speed tweak tip
> > 
> > 
> > What do you mean?  It's not elegant, but my system is fairly 
> > happy with
> > those 3 commands in a /etc/init.d script?  I've thought about 
> > making a cron
> > entry to sync /usr/bin to /usr/bin_ram...
> > I'm not real concerned if a couple binaries don't make it 
> > into /usr/bin_ram,
> > the path will find them still in /usr/bin.  The problems 
> > could result from
> > deleting something but having it still in your path.
> > 
> > > -----Original Message-----
> > > From: michalsc at email.uc.edu [mailto:michalsc at email.uc.edu] 
> > > Sent: February 10, 2003 4:41 PM
> > > To: This is the primary mailing list for Lunar Linux!
> > > Subject: Re: Minor speed tweak tip
> > > 
> > > 
> > > is there a better way to do this
> > > see if you can get a more automated method of doing this?
> > > that is stable :-P
> > > 
> > > hardkrash
> > > 
> > > Quoting "Shern, Benjamin J" <ShernBJ at LOUISVILLE.STORTEK.COM>:
> > > 
> > > > For those of you with a decent size chunk of RAM:
> > > > I've benchmarked 5-10% improvement in compile times by 
> > > caching /usr/bin
> > > > into
> > > > memory.  The best way I've found to do this is:
> > > > 
> > > > mkdir /usr/bin_ram
> > > > mount -t tmpfs tmpfs /usr/bin_ram
> > > > cp -a /usr/bin/* /usr/bin_ram
> > > > 
> > > > Edit /etc/profile and put /usr/bin_ram before /usr/bin.
> > > > 
> > > > Only caveat is that you're mindful to re-mirror the tmpfs after
> > > > removing
> > > > packages.
> > > > 
> > > > Even on systems with less memory I'm guessing some 
> > performance could
> > > > be
> > > > added during compiling by caching individual binaries such as
> gcc,
> > > > binutils,
> > > > make, install etc...
> > > > 
> > > > regards,
> > > > Ben
> > > > 
> > > > 
> > > > Curious if anyone else has tested this and seem similar or
> better
> > > > results...
> > > > _______________________________________________
> > > > Lunar mailing list
> > > > Lunar at lunar-linux.org
> > > > http://lunar-linux.org/mailman/listinfo/lunar
> > > > 
> > > _______________________________________________
> > > Lunar mailing list
> > > Lunar at lunar-linux.org
> > > http://lunar-linux.org/mailman/listinfo/lunar
> > > 
> > _______________________________________________
> > Lunar mailing list
> > Lunar at lunar-linux.org
> > http://lunar-linux.org/mailman/listinfo/lunar
> > 
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://lunar-linux.org/mailman/listinfo/lunar
> 


More information about the Lunar mailing list