Re: [Fwd: Re: HIGHMEM4G config for 1GB RAM on desktop?]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 46 lines
-------- Original Message --------
Subject: Re: HIGHMEM4G config for 1GB RAM on desktop?
Date: Wed, 01 Sep 2004 07:52:46 +0000
From: Miquel van Smoorenburg <[email protected]>
To: Timothy Miller <[email protected]>
CC: [email protected]
References: <[email protected]> <[email protected]>
<[email protected]> <[email protected]>
<[email protected]> <[email protected]>Quoted 7 lines · Timothy Miller
Quoted 6 lines · Miquel van Smoorenburg
In article <[email protected]>,
Quoted 3 lines · Timothy Miller
Quoted 1 line · Timothy Miller
Hey, that rings a bell. I have a 3ware 7000-2 controller with
two
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
WD1200JB drives in RAID1. I find that if I dd from the disk, I
get
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
exactly the read throughput that is the max for the drives
(47MB/sec).
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
However, if I do a WRITE test, the performance is miserable.
Try setting
/sys/block/sda/queue/nr_requeststo twice the number in/sys/block/sda/device/queue_depthThis will improve write performance?
You won't know before you try it ofcourse. It helps on my 85xx controllers.
The problem is that the internal queue size of some 3ware controllers (queue_depth) is larger than the I/O schedulersnr_requestsso that the I/O scheduler doesn't get much chance to properly order and merge the requests.I've sent patches to 3ware a couple of times to make
queue_depthwritable so that you can tune that as well, but they were refused for no good reason AFAICS. Very unfortunate - if you have 8 JBOD disks attached, you want to setqueue_depthfor each of them to (max_controller_queue_depth/ 8) to prevent one disk from starving the other ones, but oh well.
Quoted 6 lines
Quoted 2 lines
And if this helps, how do I make
it permanent?Can't say, depends on your distribution. For recent Debian at least you can use
/etc/sysctl.conf
I tried the suggestions above of setting /sys/block/sda/queue/nr_requests to twice the number in /sys/block/sda/device/queue_depth.
It brought up my write performance from 12.5MB/sec to 13.2MB/sec. An improvement, but not much of one, and definately far less than the capability of the drive which I have measured to be around 36MB/sec.
(I tested each drive of my RAID1 separately on the built-in IDE controller. What I found was that the 3ware was slighly faster on reads, but WAY slower on writes, compared to the drives individually on the IDE controller.)
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail