Pomaly zapis na SSD

Marián Černý majo-users-l at cerny.sk
Tue Jun 9 01:18:43 CEST 2015


Zdravim,

mam dva podobne servery a na jednom sa nam vyskytol problem s performance pri zapise.

Problem sa prejavuje napriklad pri zapise do databaze (MySQL, InnoDB). Relativne nenarocny insert do “logovacej" tabulky trva cez jednu sekundu. Ale nebude to suvisiet s databazou, pretoze problem to robi i inde.

Napriklad time make deinstall postfix na zdravom serveri:

root at portbuild:/usr/ports/mail/postfix # time make deinstall
===>  Deinstalling for postfix
…
0.060u 0.048s 0:00.17 58.8%	3699+3714k 58+624io 15pf+0w

a na pomalom serveri:

root at portbuild:/usr/ports/mail/postfix # time make deinstall
===>  Deinstalling for postfix
…
0.047u 0.063s 0:27.22 0.3%	3159+2964k 13+593io 17pf+0w

… teda o 27 sekund viacej.

Pouzivame ZFS na SSD. Trim je zapnuty. Read performance vyzera byt ok (diskinfo -tv /dev/ada2 zobrazuje podobne hodnoty ako pri instalacii pred 2 rokmi).

Zapis 500 MB trva na oboch serveroch rovnaky cas (5.4 sekundy):

# time dd if=/dev/random of=/tmp/blaf bs=1024000 count=500
500+0 records in
500+0 records out
512000000 bytes transferred in 5.408680 secs (94662654 bytes/sec)
0.000u 5.406s 0:05.40 100.0%	25+2744k 1+938io 0pf+0w

Servery sa lisia v diskoch, pomaly ma 2x Crucial M4 128 MB <M4-CT128M4SSD1 040H>, zdravy ma 2x Samsung 840 PRO <Samsung SSD 840 PRO Series DXM05B0Q>.

Na co by som sa mal poziet?

Dakujem za rady,

Marian


More information about the Users-l mailing list