damse
February 6, 2017, 9:10pm
1
So, this is the scenario:
The same folder on ACD/Google Drive encrypted and unencrypted.
My NAS (i3-3225 | 4GB RAM)
Plex/Kodi (for testing purposes)
High bitrate .mkv files
200/100Mbps home connection
Every time I mount the folder with crypt, the streaming process kind of breaks, with numerous pauses for buffering during the media playback.
If I mount the folders with no encryption, there is less start up delay, no buffering, and smooth playback.
Now, I know that my cpu is not running at even 10% (avg. 3-8%), so my question is, why the huge difference in behaviour?
Is there an option/flag to increase buffering or cpu availability for rclone?
Cheers
Ajki
(Ajki)
February 6, 2017, 10:29pm
2
You are using rclone crypt ?
damse
February 6, 2017, 10:40pm
3
Yes, I’m using rclone crypt.
Ajki
(Ajki)
February 6, 2017, 10:44pm
4
Can you try using my copy script and do it from crypt and then from normal to see the speed difference
#!/bin/bash
## Requirements pv tool
## sudo apt install pv
## Create test file and upload it to your cloud destination
## fallocate -l 100M testfile
## More scripts at: https://github.com/ajkis/scripts
## If you find script useful feel free to buy me a beer at https://paypal.me/ajki
if pidof -o %PPID -x "copyspeedtest"; then
echo "Already running, exiting."
exit 1
fi
SOURCE="/mnt/unionfs/testfile" # SET PATH TO FILE
DESTINATION="/tmp/copytestfile"
if [[ -f "$DESTINATION" ]]; then
rm "$DESTINATION"
fi
start=$(date +'%s')
This file has been truncated. show original
And please add to your mount -v --debug-fuse --dump-headers --log-file=xxx
for both cases so we can compare the logs.
damse
February 7, 2017, 7:42pm
5
Sorry, but I can’t run it as I’m mounting on a Synology DSM powered machine that doesn’t have a package manager per se to install “pv”.
Stokkes
February 7, 2017, 11:15pm
6
Just use time
in front of the rclone copy command and it will time the command and produce an output. Every linux-based distro (inc. DSM) should have this.
ie:
time rclone copy crypt:/path/to/file.mkv /tmp
and repeat without crypt. It’s not perfect but it should give you an idea.
damse
February 11, 2017, 11:10am
7
Actually speeds were about the same in either case… (ranging from 4.1MB/sec to 4.5MB/sec)
One thing I don’t understand is why my rclone only downloads at 4.5MB/sec while if I download the same file via browser it will max out my connection at 24MB/sec.
Anyone has an explanation for this?