[DRBD-user] Bug in default syncing rate in 0.7.17?

Martin Peylo martinmeis at googlemail.com
Mon Apr 24 19:17:13 CEST 2006

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


Hi,

this applies for drbd 0.7.17.

I was trying to get drbd to work only using drbdsetup (not drbdadm) without
configuration files.
As I wrote in
http://lists.linbit.com/pipermail/drbd-user/2006-April/004856.html I'm
experiencing very slow syncing.

Now I found that maybe the default syncing rate in drbd/drbd_main.c line
1339 is given in B/s and not in KB/s as it should be.

I guess instead of
mdev->sync_conf.rate       = 250;
there should be
mdev->sync_conf.rate       = 250*1024;

I don't understand the shaping algorithm up to now but changing that seems
to work somehow. Now I see in /proc/drbd:

version: 0.7.17 (api:77/proto:74)
SVN Revision: 2093 build by XXX, 2006-04-24 19:09:50
 0: cs:SyncTarget st:Secondary/Primary ld:Inconsistent
    ns:0 nr:37104 dw:37104 dr:0 al:0 bm:10 lo:15 pe:6384 ua:15 ap:0
        [======>.............] sync'ed: 32.3% (86076/123120)K
        finish: 0:01:29 speed: 924 (820) K/sec

instead of:
        finish: 0:15:21 speed: 4 (4) K/sec

This is for sure better - since faster - but somehow not really shaped at
250 K/sec. I don't mind that since I don't really need shaping.

Warm regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060424/27d91d9c/attachment.htm>


More information about the drbd-user mailing list