[Bug 12942] New: Traffic shaping: Make --bwlimit dynamic

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 12942] New: Traffic shaping: Make --bwlimit dynamic

Samba - rsync mailing list
https://bugzilla.samba.org/show_bug.cgi?id=12942

            Bug ID: 12942
           Summary: Traffic shaping: Make --bwlimit dynamic
           Product: rsync
           Version: 3.1.3
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

It would be great to be able to modify the value of --bwlimit while rsync is
already running. Perhaps with a signal sent to rsync?

Other idea:
--bwlimit-from-file=/tmp/bwlimitvalue.txt
$ echo "200K" > /tmp/bwlimitvalue.txt

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 12942] Traffic shaping: Make --bwlimit dynamic

Samba - rsync mailing list
https://bugzilla.samba.org/show_bug.cgi?id=12942

--- Comment #1 from roland <[hidden email]> ---
see https://bugzilla.samba.org/show_bug.cgi?id=7120

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 12942] Traffic shaping: Make --bwlimit dynamic

Samba - rsync mailing list
In reply to this post by Samba - rsync mailing list
https://bugzilla.samba.org/show_bug.cgi?id=12942

--- Comment #2 from [hidden email] ---
Hi Roland, thanks for your help. I looked at your solution:

----------------------------------------
export RSYNC_RSH="sh -c 'pv -qL10k | ssh \"\$@\" | (pv -qL11k; kill \$\$)' ssh"

Of course using $$ was the lazy way out, should kill pv instead but how to
obtain the pid in a oneliner?
----------------------------------------

Two remarks:

(1) You can easily get the pids of pv with: pv --pidfile /tmp/foo; and then you
will do: kill $(cat /tmp/foo).

(2) The solution does not work well. If I start a transfer at low speed and I
raise the speed (with pv -R [pid] -L [speed]), it works. But if a network
transfer runs with high speeds and if I decrease the speed afterwards, I don't
see any immediate effect. Sometimes I see it 20 minutes later... So I cannot
regard this as a good solution; a "dynamic" --bwlimit option is needed.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html