Performance Tuning SuSE 9.1
After the discussion last week about tuning your install of 9.x, there were a few things in there that made my system a little snappier (turning off the hardware check for speedier boot, etc), but there are most likely a bunch of other things you can do. One such thing I found was:
The typical IDE HDD performance can be boosted by about 400% of its current value (no, I am not joking, and >today certainly is not April 1st). The command that does this is called hdparam. A lot can be written about >how we can fine tune your hard drive performance using hdparam, but here we give you just a peek.
Before you start give the command /sbin/hdparm -tT /dev/hda to get a feel for what your hard drive >performance is currently. Once you have done that, give the following command:
[root@necromancer /root]# /sbin/hdparm -c1 -d1 -m16 /dev/hda /dev/hda: setting 32-bit I/O support flag to 1 setting multcount to 16 setting using_dma to 1 (on) multcount = 16 (on) I/O support = 1 (32-bit) using_dma = 1 (on)
Now give the command /sbin/hdparm -tT /dev/hda, and be prepared to be pleasantly surprised by the jump in performance you see.
Now, I did this on my laptop, and DID see a 12% increase in buffer-cache reading speed, and a 25% increase in buffered disk reads. I also notice that whatever the hdparm is setting gets reset upon rebooting. 1) Is this dangerous for the file system? 2) If not, how do you make this permanent? 3) Anyone have any further performance-increasing tips? (I've already turned off cups, postfix, and several other "server" type services, but want to hear some of the gurus' hints & tips) Thanks! Steve
On Monday 11 October 2004 23:05, Steve Kratz wrote:
After the discussion last week about tuning your install of 9.x, there were a few things in there that made my system a little snappier (turning off the hardware check for speedier boot, etc), but there are most likely a bunch of
other things you can do. One such thing I found was:
The typical IDE HDD performance can be boosted by about 400% of its current
value (no, I am not joking, and >today certainly is not April 1st). The command that does this is called hdparam. A lot can be written about >how we can fine tune your hard drive performance using hdparam, but here we give you just a peek.
Before you start give the command /sbin/hdparm -tT /dev/hda to get a feel
for what your hard drive >performance is currently. Once you have done that,
give the following command:
[root@necromancer /root]# /sbin/hdparm -c1 -d1 -m16 /dev/hda /dev/hda: setting 32-bit I/O support flag to 1 setting multcount to 16 setting using_dma to 1 (on) multcount = 16 (on) I/O support = 1 (32-bit) using_dma = 1 (on)
Now give the command /sbin/hdparm -tT /dev/hda, and be prepared to be
pleasantly surprised by the jump in performance you see.
Dear Steve, About the questions that you attached to above performance tuning I have no answers but after trying it out on my desktop I have following experience: my /dev/hda does not run hdparm -tT. It just stops. With my /dev/hdb I got a slightly slower(1%) harddisk in both aspects and with my /dev/hdd the buffer cache read is 1% faster and the buffered disk read 0,4% slower. Nothing to write home about. Everything very marginal. Think that I have to start reading hdparm manpages.
Steve wrote regarding '[SLE] Performance Tuning SuSE 9.1' on Mon, Oct 11 at 11:03:
After the discussion last week about tuning your install of 9.x, there were a few things in there that made my system a little snappier (turning off the hardware check for speedier boot, etc), but there are most likely a bunch of other things you can do. One such thing I found was:
The typical IDE HDD performance can be boosted by about 400% of its current value (no, I am not joking, and >today certainly is not April 1st). The command that does this is called hdparam. A lot can be written about >how we can fine tune your hard drive performance using hdparam, but here we give you just a peek.
Before you start give the command /sbin/hdparm -tT /dev/hda to get a feel for what your hard drive >performance is currently. Once you have done that, give the following command:
[root@necromancer /root]# /sbin/hdparm -c1 -d1 -m16 /dev/hda /dev/hda: setting 32-bit I/O support flag to 1 setting multcount to 16 setting using_dma to 1 (on) multcount = 16 (on) I/O support = 1 (32-bit) using_dma = 1 (on)
Now give the command /sbin/hdparm -tT /dev/hda, and be prepared to be pleasantly surprised by the jump in performance you see.
Now, I did this on my laptop, and DID see a 12% increase in buffer-cache reading speed, and a 25% increase in buffered disk reads. I also notice that whatever the hdparm is setting gets reset upon rebooting.
1) Is this dangerous for the file system? 2) If not, how do you make this permanent? 3) Anyone have any further performance-increasing tips? (I've already turned off cups, postfix, and several other "server" type services, but want to hear some of the gurus' hints & tips)
Here's what I'd do: First, run "hdparm -I /dev/hda" to see what dma mode you're using. Then, using yast's IDE DMA setting thingie, tell it to force your hard drive/drives to use the correct DMA mode (probably udma2 or udma4 - the program will tell you if your drive doesn't support a mode). Finally, edit /etc/init.d/boot.idedma and add your optional args to the appropriate place in the file. Or just paste your hdparm line into the /etc/init.d/boot.local file. --Danny
participants (3)
-
Constant Brouerius van Nidek
-
Danny Sauer
-
Steve Kratz