Performance Tuning

Coleman Kane cokane at cokane.org
Tue Apr 15 11:28:23 EDT 2008


On Tue, 2008-04-15 at 11:06 -0400, Kenny Lussier wrote:
> Hi All,
> 
> This should be a fairly easy one for someone out there.... I have made
> some modifications to a system for performance reasons. One of the
> changes that I made was setting the read_ahead_kb value to 1024 (up
> from 128). I used the blockdev command to do this (blockdev --setra
> 2048 /dev/sdb). My question is, how do I make this persistent across
> reboots??
> 
> TIA<
> Kenny

My cheap trick to getting something like this to be persistent is to
stick into my "local startup script". Typically, this
is /etc/local.rc, /etc/local.start, or something similar depending upon
your distro.

My guess, if you are using udev, is you can add some rules to the udev
configuration that ID that drive according to its UUID (or maybe some
more general parameters) and execute the blockdev command-line above to
perform the magic whenever the drive is probed. This, for instance, will
also make this action persistent on drive hot-swaps.

-- 
Coleman Kane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20080415/f665db87/attachment.bin 


More information about the gnhlug-discuss mailing list