[DRBD-user] Slow syncall after kernel+drbd upgrade

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Jan 20 12:51:28 CET 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2004-01-20 09:24:32 +0100
\ Christian Hammers:
> Hello
> 
> I used to have 2.4.23 and drbd 0.6.4 running on two servers sharing
> 2x 5GB over a 100MBit crosslink.
> 
> Now I upgraded to 2.4.24 and drbd 0.6.10 and two Intel e1000.o gigabit
> cards and my syncall time drops from about 15mins to more than 1h!

Hm. It should have improved :)

> After the syncinc was done, I tested the link with "rsync -v -a
> --progress ..." and got at least 15MB/s = 120MBit/s which is not much 
> for a 1000MBit/s link but at least more than 2MBit/s that drbd got!
> 
> Below you find the "cat /proc/drbd" and the "drbdsetup /dev/nb0 show" 
> outputs. The sync-max values differ a bit as I played around before
> giving up...
> 
> Any ideas?
> 
> bye,
> 
> -christian-
> 
> P.S.: How do I enable this SyncQuick which I read somewhere?

you do not "enable it".
read http://drbd.org/drbd-article.html, it should explain this.

>    root at mail3a:/home/ch# cat /proc/drbd 
>    version: 0.6.10 (api:64/proto:62)
>    0: cs:SyncingAll st:Primary/Secondary ns:5753652 nr:0 dw:581640 dr:5247457 pe:29 ua:0
>            [===================>] sync'ed: 99.9% (7/5004)M
>            finish: 0:01:05h speed: 1,325 (1,077) K/sec
>    1: cs:SyncingAll st:Primary/Secondary ns:5253628 nr:0 dw:48584 dr:5216525 pe:14 ua:0
>            [===================>] sync'ed: 99.7% (20/5004)M
>            finish: 0:01:15h speed: 1,325 (1,074) K/sec
> 
> root at mail3a:/tmp# drbdsetup /dev/nb0 show
> Lower device: 08:08   (/dev/sda8)
> Disk options:
>  disk-size = 5124703 KB
>  do-panic
> Local address: 10.10.10.1:7789
> Remote address: 10.10.10.2:7789
> Wire protocol: C
> Net options:
>  timeout = 6.0 sec
>  tl-size = 5000
>  connect-int = 10 sec
>  ping-int = 10 sec
>  sndbuf-size = 131070
>  sync-min = 200 KB/sec

you should increase sync-min !!

>  sync-max = 5000 KB/sec

of course you want to increase sync-max again...

>  sync-nice = 10

you should probably sync-nice = -10 or so

you *may* decrease sndbuf-size...
say, sndbuf-size = 65534. but I did not tell you :)


	Lars Ellenberg



More information about the drbd-user mailing list