Speedup disk performance in NetBSD

In: In English|NetBSD

19 sie 2009

Dzię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 &lt; /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.


VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Related Posts with Thumbnails

Popularity: 1% [?]

Informacje na temat "projektowanie ostrów" znajdziesz tutaj

© odwiedź stronę http://maciejewski.org po więcej fajnych postów!

Dodaj post do:
  • Wykop
  • Gwar
  • OSnews.pl
  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • Blip
  • co-robie
  • email
  • Facebook
  • Flaker
  • Google Bookmarks
  • Google Buzz
  • LinkedIn
  • MySpace
  • PDF
  • Ping.fm
  • RSS
  • StumbleUpon
  • Twitter
  • Śledzik
If you enjoyed this post, make sure you subscribe to my RSS feed!

 Viewed 50 times by 26 viewers

Podobne posty

Skomentuj

Co znajdziesz na tym blogu

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 ;)

  • New NetBSD developer « Shinden’s Lair: [...] it’s official and couple of people already had mentioned this, I’ll write on my bl [...]
  • Tomek: Maniak to Ty jednak jesteś ;-) [...]
  • witnes: Noo, dużo lepszy ten theme :) wszystko bardziej przejrzyste. [...]
  • Marcin: 1 ) kable puszcza się w peszlach mrozoodpornych 2 ) mikrotiki się ekranuje puszkami eluminiowymi [...]
  • Krysti: Piękne produkcje! Gear of War... Grałem. Mnie osobiście bardzo się podobała. Aczkolwiek uważam [...]

Reklama

Postaw mi Piwo!


Komentujący:

Najwięcej napisali:
  1. Bartosz Maciejewski (4)
  2. blinkkin (2)
  3. anonymous (1)
  4. Krysti (1)
  5. Marcin (1)
  6. Michał (1)
  7. Prawo jazdy (1)
  8. Tomasz Kowalczyk (1)
  9. Tomek (1)
  10. Turosław (1)
  11. witnes (1)
  12. Zbigniew (1)

Flickr

www.flickr.com
This is a Flickr badge showing public items from bartosz.maciejewski tagged with mobile. Make your own badge here.
  • RSS
  • Blip
  • Twitter
  • Facebook
  • GoldenLine
  • LinkedIn
  • Flickr