It's a star sign, not disease ;)
In: In English|NetBSD
19 sie 2009Dzięki za regularne odwiedziny na moim blogu! Jeśli uważasz, że jest on godny polecenia to śmiało wyślij link do niego lub link do kanału RSS albo subskrypcje przez e-mail znajomym. Dzięki !
I got new HP Proliant DL160 G5 with three sata disk. For You interested in details here is a dmesg. Box setup wen’t smooth but disk operations performance was very low. Copy big file wrom disk to disk was around 6Mb/sec, fetching src from cvs stops from time to time for a while. To show how slow this is look how long take inserting backup of this blog to mysql again:
1 2 3 | cancer@quad/usr/home/cancer[52]<strong>22:34</strong>#mysql -uroot -p cancerwp < /usr/home/cancer/cancer_blog_17.08.2009.sql Enter password: cancer@quad/usr/home/cancer[53]<strong>22:54#</strong> |
Yup, 20 minutes and sql file was 85 Mb.
After checking dkctl against disks, I found (with help of morr) that write cache is disabled.
1 2 3 4 5 | dkctl wd0 getcache /dev/rwd0d: read cache enabled /dev/rwd0d: read cache enable is not changeable /dev/rwd0d: write cache enable is changeable /dev/rwd0d: cache parameters are not savable |
After enabling…
1 2 3 4 5 6 | dkctl wd0 setcache rw /dev/rwd0d: read cache enabled /dev/rwd0d: write-back cache enabled /dev/rwd0d: read cache enable is not changeable /dev/rwd0d: write cache enable is changeable /dev/rwd0d: cache parameters are not savable |
… performance went to satisfying level. Copying is now about 40Mb/sec and restoring database above in less than minute.
Unfortunettly saving this settings is not possible for now.
1 2 | dkctl wd0 setcache rw save dkctl: /dev/rwd0d: setcache: Operation not supported |
Maybe this have to be turned on in bios of server. For now i put cache enablers into /etc/rc.local.
System is NetBSD 5.0.1_PATCH i386 with FFSv2 and WAPBL.
Popularity: 1% [?]
Viewed 50 times by 26 viewers
Witaj czytelniku! Nazywam się Bartosz Maciejewski i jestem Administratorem sieci oraz systemów UNIX/Windows. Na moim blogu znajdziesz zatem wpisy dotyczące głównie tej tematyki. Od czasu do czasu pisuję też bardziej prywatnie zwłaszcza o mojej córce Tosi Miłego Czytania! EOF ;)