[DRBD-user] Strange sync rate !!!

Benoit.Ropartz at alcatel.fr Benoit.Ropartz at alcatel.fr
Tue Feb 8 17:24:49 CET 2005

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


Hello,

I have initialised my syncing rate to ~10MB/s

drbdsetup /dev/drbd/2 show
Lower device: 08:13   (/dev/sda13)
Meta device: internal
...
Syncer options:
 rate = 10240 KB/sec
 group = 1
 al-extents = 257

But when i'm editing /proc/drbd file,  i see a syncing rate of ~3MB/s
(average).


version: 0.7.5 (api:76/proto:74)
SVN Revision: 1578 build by cavarec3 at las43e13, 2004-10-19 14:06:01
 0: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:114944 dw:114944 dr:0 al:0 bm:48 lo:0 pe:0 ua:0 ap:0
 1: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:49184 dw:49184 dr:0 al:0 bm:22 lo:0 pe:0 ua:0 ap:0
 2: cs:SyncTarget st:Secondary/Primary ld:Inconsistent
    ns:0 nr:1144564 dw:1144564 dr:0 al:0 bm:301 lo:7 pe:74 ua:7 ap:0
        [>...................] sync'ed:  3.1% (16086/16595)M
        finish: 0:49:01 speed: 5,452 (2,480) K/sec
 3: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:94464 dw:94464 dr:0 al:0 bm:42 lo:0 pe:0 ua:0 ap:0


I increased sndbuf-size to 512KB and MTU to 9500 but without any
results.......

But if i launch a software (here bonnie++) that do some writes on Primary
then
syncing speed increases ~ 8MB/s ??
(i disconnect/connect drbd2 for update sync average)

version: 0.7.5 (api:76/proto:74)
SVN Revision: 1578 build by cavarec3 at las43e13, 2004-10-19 14:06:01
 0: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:115096 dw:115096 dr:0 al:0 bm:48 lo:0 pe:0 ua:0 ap:0
 1: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:49184 dw:49184 dr:0 al:0 bm:22 lo:0 pe:0 ua:0 ap:0
 2: cs:SyncTarget st:Secondary/Primary ld:Inconsistent
    ns:0 nr:1007224 dw:5887904 dr:0 al:0 bm:588 lo:17 pe:198 ua:17 ap:0
        [=>..................] sync'ed:  7.8% (11518/12481)M
        finish: 0:18:20 speed: 10,664 (8,496) K/sec
 3: cs:Connected st:Secondary/Primary ld:Consistent
    ns:0 nr:94464 dw:94464 dr:0 al:0 bm:42 lo:0 pe:0 ua:0 ap:0


Kernel : 2.4.20 on PPC


Benoit





More information about the drbd-user mailing list