Subject: Bad performance with Adaptec 2400A
To: None <netbsd-help@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: netbsd-help
Date: 07/25/2003 13:12:51
Hi!
I have Adaptec 2400A RAID card on my server and the performance seems to
be really bad compared to standalone disk and raidframe. All redundant
filesystems below are RAID-1 with two 7200 rpm UDMA100 disks on separate
channels, both acting as masters. 2400A has the latest firmware and I see no
errors on the console or logs.
-------Sequential Output-------- ---Sequential Input--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block---
Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec
wd0 100 27012 25.0 25257 6.1 35992 11.2 78933 98.3 590045 100.0 15501.1
raidframe 100 29650 27.7 36509 9.5 30542 10.0 75097 96.8 580597 99.9 21732.6
2400A 100 13430 17.5 13659 6.7 11565 7.0 53748 99.6 250435 100.0 12213.6
The 2400A test was performed on the server (AMD XP2100+) and the others on
my pc (AMD XP2400+). As you can see writing is very slow compared to
raidframe.
I couldn't use the default values for disklabel during install so I adjusted
the values according to newfs's notice. These are the current settings on ld0:
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 40965687 63 4.2BSD 4096 32768 64 # (Cyl. 0*- 2549)
b: 4209030 40965750 swap # (Cyl. 2550 - 2811)
c: 361881537 63 unused 0 0 # (Cyl. 0*- 22526*)
d: 361881600 0 unused 0 0 # (Cyl. 0 - 22526*)
e: 81931500 45174780 4.2BSD 4096 32768 64 # (Cyl. 2812 - 7911)
f: 20482875 127106280 4.2BSD 4096 32768 64 # (Cyl. 7912 - 9186)
g: 81931500 147589155 4.2BSD 4096 32768 64 # (Cyl. 9187 - 14286)
h: 132360945 229520655 4.2BSD 4096 32768 64 # (Cyl. 14287 - 22526*)
What can I do to increate the write speed?
Martti