Closed herkalurk closed 1 year ago
Just had it happen again, nas is reporting less than 10 MB/sec transfers, but SAB just downloaded from the internet at over 25 MB/sec. Seems like it has something to do with the smb connection setup. I'm going to try directly making a local volume in docker.
It looks like an issue with your NAS reporting then as sab is clearly giving you the correct speed
SAB doesn't report how fast it unpacks, only how fast it downloads. Also, this isn't consistent. Last week sabnzbd container had no problem unpacking at near 70 MB/sec without changing anything.
I just changed my docker-compose and moved to local docker volumes that are referenced in the compose file, instead of mounting the cifs share onto the linux server in /etc/fstab
.
docker volume create --driver local --opt type=cifs --opt device=//synthy/movies --opt o=addr=192.168.1.50,username=******,password=******,file_mode=0664,dir_mode=0775,vers=3.0,uid=1000,gid=1000 --name synthy-movies
docker volume create --driver local --opt type=cifs --opt device=//synthy/tv --opt o=addr=192.168.1.50,username=******,password=******,file_mode=0664,dir_mode=0775,vers=3.0,uid=1000,gid=1000 --name synthy-tv
version: "2.1"
services:
sabnzbd:
image: linuxserver/sabnzbd
container_name: sabnzbd
environment:
- PUID=1000
- PGID=1000
- TZ=America/Chicago
volumes:
- /home/docker/sabnzbd:/config
- /media/usenet:/media/usenet
- synthy-movies:/media/movies
- synthy-tv:/media/tv
ports:
- 8085:8085
restart: unless-stopped
networks:
default:
external:
name: sickly
volumes:
synthy-tv:
external: true
synthy-movies:
external: true
It really seems as if the networking for the container is being rate limited. I'm still trying to understand how I can just stop the docker service from putting any restrictions on the containers.
@aptalca I've seen this behavior in other linuxserver docker containers as well. I've been using linuxserver radarr and sonarr containers for over a year. From the start the radarr conatiner could only transfer out to cifs mounts at 8 MB/sec while sonarr container could sustain near 70 MB/sec. However in the last month that has changed and now the sonarr container is exhibiting the same restrictions. The volumes are mounted the same on the system in /etc/fstab
and also configured the same in the docker-compose files.
It looks like an issue with your NAS reporting then as sab is clearly giving you the correct speed
Are you assuming I'm downloading direct to the NAS? I have a separate server that has docker installed. That server connects to NAS via CIFS shares. So when I'm downloading from the internet I have no issues INTO the container. it's transferring out that's where I'm seeing the slower speeds.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
i think i'm seeing similar rate limiting issues.
i'm running this docker on a Pi 4 connected via gigabit, and Sabnzbd is not able to use the full available bandwidth, seems to never go above 104Mbps (or thereabouts).
i'm running this docker on a Pi 4 connected via gigabit, and Sabnzbd is not able to use the full available bandwidth, seems to never go above 104Mbps (or thereabouts).
Have you confirmed that the link is running at 1000 mbps directly on the PI?
i'm running this docker on a Pi 4 connected via gigabit, and Sabnzbd is not able to use the full available bandwidth, seems to never go above 104Mbps (or thereabouts).
Have you confirmed that the link is running at 1000 mbps directly on the PI?
Yes. Used iperf and getting 940Mbps between the pi and other devices
i think i'm seeing similar rate limiting issues.
i'm running this docker on a Pi 4 connected via gigabit, and Sabnzbd is not able to use the full available bandwidth, seems to never go above 104Mbps (or thereabouts).
I mean, I would say that's as expected with a slight loss of speed for the usual overheads (encryption etc).
Scratch that, miss read it
In my case, for the most part it would run from the container to the external network somewhere near 1000 Mbit most of the time, but would experience occasions where the unpack jobs would only seem to run around 100 Mbit, NAS reporting transfer rates around 8 MB/s. Most often the connection to the NAS runs over 65 MB/s, so including over head from the docker subsystem, that's fine on a 1000 Mbit link. I generally don't get giant files, and most of the operations are automatic, so Just find out about downloads after the fact. However if say an entire TV season was queued then having the slow unpacks isn't ideal....
I think while you're getting these slow speeds, you need to do some system resource checks using htop / iotop. This should show you where the bottleneck is.
My ISP connection is 200Mbps and when using sab on other devices I can easily max out my connection at around 27MB/s consistently
However when running it in this rocker on my pi in rarely seeing it get around half of that
Is it possible to install iperf inside the container to run a test from inside the container?
You could but just having sab running and looking to see if there is an IO bottleneck is probably easier
how would i install it inside the container? it doesn't seem to have apt-get
also, do you mean using htop / iotop from inside the container or just on the pi itself?
You could but just having sab running and looking to see if there is an IO bottleneck is probably easier
still looking for some assistance on this
should not that even with "direct uncack" disabled i still don't get any where near maxing out my connection, it seems to limit itself around 10-13MB/s (should be close to 26MB/s)
attached is a snapshot of htop from the pi whilst a download was taking place
attached is a snapshot of iotop from the pi whilst a download was taking place (and i saw a peak of around 27MB/s at one point)
in my instance sabnzbd is set to save to ~/chenks/downloads which is symlinked to a samba network mount on a NAS (/mnt/smbshare). iperf from the pi to the NAS shows it is connected via gigabit and is able to achive 940Mbps in testing.
While iperf tests are good tests, you need to test the speeds via the same protocol that your nas is connecting to. See what speed you get when you manually transfer a file from the pi to your nas mounted folder.
Also, as you're not the original poster, please could you provide more info about your setup, mainly your docker-compose so we can get an idea of how you've deployed it.
While iperf tests are good tests, you need to test the speeds via the same protocol that your nas is connecting to. See what speed you get when you manually transfer a file from the pi to your nas mounted folder.
i will do a test just now, any suggestions on a tool to use to show the speed of the transfer? the 'cp' command copies a file but doesn't show any status until it's finished copying
i used pv to copy a fle from the NAS to the home folder. whilst it wasn't a steady speed i did see peaks of around 80MiB/s. the 2.08GiB file took 2min8sec to complete the transfer
and copy the same file from the Pi to the NAS took 53seconds to complete the transfer
Also, as you're not the original poster, please could you provide more info about your setup, mainly your docker-compose so we can get an idea of how you've deployed it.
no probs i can do that, would it be better if i raised a new issue or is it ok to continue within this one?
sabnzbd:
image: ghcr.io/linuxserver/sabnzbd
container_name: sabnzbd
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
volumes:
- ./volumes/sabnzbd/config:/config
- ./downloads:/downloads
- ./downloads/incomplete-downloads:/incomplete-downloads #optional
ports:
- 8080:8080
- 9090:9090
EDIT - i'm wondering if i'm maybe being limited by the SD card the Pi is using? (although think it should still be capable of 27MB/s in both directions). this is what it's currently using
Also, as you're not the original poster, please could you provide more info about your setup, mainly your docker-compose so we can get an idea of how you've deployed it.
i've resolved this issue and it was, indeed, an issue with the SD card (as i thought it might be in my earlier post) i've replace the SD card with a higher spec one, and now i can get 25Mb/s on a download which is the around the max i can get from my internet connection.
not sure if this would resolve the OPs issue, but it has resolved mine. replaced it with this
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is locked due to inactivity
Expected Behavior
Transfers to and from volumes on the container occur at speeds dictated by hardware
Current Behavior
Copies out of container are slow now (under 10 MB/sec)
Steps to Reproduce
Unsure, transfer speeds used to be faster until newest containers were used.
The filesystems I'm moving files to are mounted locally in linux file system from NAS (CIFS mounts)
Environment
OS: Centos 7 CPU architecture: x86_64 How docker service was installed: docker-ce official repo in yum
Command used to create docker container (run/create/compose/screenshot)
Docker logs