Rclone serve dlna not respecting --bw-limit

What is the problem you are having with rclone?

rclone serve dlna not respecting --bw-limit
at first, rclone goes many times over the limit, then seems to settle down.

i can verify this two ways.

  1. the output of --progress
  2. using software nethogs


What is your rclone version (output from rclone version)

Which OS you are using and how many bits (eg Windows 7, 64 bit)

pi zero raspbian - debian buster 32bit

Which cloud storage system are you using? (eg Google Drive)

internet sftp server over an openvpn

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone serve dlna remote: --buffer-size=0 --addr= --cache-dir=/home/pi/rclone/cache --vfs-cache-mode=full --use-mmap --read-only --no-checksum --no-modtime --dir-cache-time=1m --name=pizero --progress --bwlimit=100k

The rclone config contents with secrets removed.

type = sftp
host = 123.456.789.000
user = ...
pass = ...
md5sum_command = none
sha1sum_command = none

A log from the command with the -vv flag

DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "serve" "dlna" "remote:files/done" "--buffer-size=0" "--addr=" "--cache-dir=/home/pi/rclone/cache" "--vfs-cache-mode=full" "--use-mmap" "--read-only" "--no-checksum" "--no-modtime" "--dir-cache-time=1m" "--name=pizero" "--progress" "--bwlimit=100k" "-vv"]
DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
INFO  : Starting bandwidth limiter at 100kBytes/s
DEBUG : Creating backend with remote "remote:files/done"
DEBUG : sftp://psb52793@ New connection> to "SSH-2.0-mod_sftp"
DEBUG : sftp://psb52793@ Using absolute root directory "/files/done"
INFO  : sftp://psb52793@ poll-interval is not supported by this remote
DEBUG : vfs cache: root is "/home/pi/rclone/cache/vfs/remote/files/done"
DEBUG : vfs cache: metadata root is "/home/pi/rclone/cache/vfs/remote/files/done"
DEBUG : Creating backend with remote "/home/pi/rclone/cache/vfs/remote/files/done"
NOTICE: sftp://psb52793@ Serving HTTP on
INFO  : DLNA server on Started SSDP on tun0
INFO  : DLNA server on Started SSDP on wlan0

NOTICE: sftp://psb52793@ Serving HTTP on
INFO  : /r/video/movies/movie.mp4: GET 206
Transferred:          928k / 2.085 GBytes, 0%, 335.464 kBytes/s, ETA 1h48m34s
Transferred:            0 / 1, 0%
Elapsed time:         9.6s
 * video/movies/movie.mp4:  0% /2.085G, 413.939k/s, 1h27m59s

Are you saying it bursts over the bandwidth limit?

Does it obey the bandwidth limit in the long term?

I'm not sure the dlna server obeys bandwidth limit at all so it would be useful if you can check.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.