# Rclone vs acd\_cli speeds

**URL:** <https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225>\
**Category:** Help and Support\
**Created:** [November 9, 2016, 12:14am UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225 "2016-11-09T00:14:15Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![ladude626](https://forum.rclone.org/letter_avatar_proxy/v4/letter/l/e99b99/32.png) [@ladude626](https://forum.rclone.org/u/ladude626)\
**Post date:** [November 13, 2016, 5:41pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/21 "2016-11-13T17:41:41Z")

</div>

> [@hari9](#):
>
> Right now I feel like I need to combine a couple of things to make mounting usable with plex:  
> (1) Run a mount command with modifiers for cache time & max read ahead  
> -\> `rclone mount --max-read-ahead 200M --dir-cache-time 30m --checkers 40 --read-only --allow-other acd: /folder/folder`
> 
> (2) Run a find every 15mins as recommended by @ncw  
> Question: what's the easiest way to reload the entire folder/file structure on a mac?
> 
> (3) Run a umount once in awhile to fix the problem when the mount becomes inaccessibility (& remount right after)  
> -\> run `umount -f /folder/folder`
> 
> I hope the list won't be getting too much longer 🙂

Do you have a script to check if the mount is accessible and remount?

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [November 13, 2016, 6:31pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/22 "2016-11-13T18:31:41Z")

</div>

For #2, can’t you simply just run  
find /some/dir

For #3, Mine stays mounted for weeks at a time. You should capture a log if it becomes inaccessible and open an issue.

---

<div class="post-metadata">

**Author:** ![Wob76](https://forum.rclone.org/user_avatar/forum.rclone.org/wob76/32/65_2.png) [@Wob76](https://forum.rclone.org/u/Wob76)\
**Post date:** [November 13, 2016, 10:33pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/23 "2016-11-13T22:33:37Z")

</div>

Hi All,

I have added --dir-cache-time 60m to my mount, it doesn’t seem to have had much of an effect, maybe a couple of seconds? I am getting around a 10 second delay for playback. I will do some further testing and generate some verbose logs from rclone and acd\_cli today.

For those looking for a check and remount script, here is what I am using, I modified it from one that was posted on a acd\_cli support thread. It was originally using ls -l for a check, but I changed that to find, this way it is doing my find for directory refresh and the mount check at the same time. I have it currently running it every 30min in cron. you will need to modify the rclonemount line to suit, and change any lines in rclone to suit your config. I am also outputting some stuff to a log file (you probably want to change its location), so I can see if/when the mount fails (so far it has only failed when I kill it), at the moment it is very stable. Also I am using screen to call rclone, I found with both rclone and acd\_cli I get more stability letting them run under screen.

```
#!/bin/sh
LOGFILE=/boot/cloudstore/logs/remount_rclone_check-$(date "+%Y%m%d").log

echo "Remount Initiated $(date)"
appname=$(basename $0)

# Change this to the location of your Amazon Cloud Mountpoint
rclonemount="/mnt/disks/cloud/rclone/"

if [$(find $rclonemount | wc -l) -gt 1]; then
    echo Everything Looks ok
    exit
fi

if [$(ps -Al | grep $appname | wc -l) -gt 2]; then
        echo "Already Running! Count $(ps -Al | grep $appname | wc -l)" >> $LOGFILE 2>&1
        exit
fi

echo "rclone Remounting $(date)" >> $LOGFILE 2>&1
fusermount -uq "$rclonemount"
if screen -list | grep -q "rclone"; then
  screen -S rclone -X quit
fi
screen -S rclone -d -m rclone mount --allow-other --dir-cache-time 60m --max-read-ahead 200M --uid 99 --gid 100 secret:media $rclonemount

echo "rclone Remount Done $(date)" >> $LOGFILE 2>&1
```

---

<div class="post-metadata">

**Author:** ![Wob76](https://forum.rclone.org/user_avatar/forum.rclone.org/wob76/32/65_2.png) [@Wob76](https://forum.rclone.org/u/Wob76)\
**Post date:** [November 13, 2016, 10:55pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/24 "2016-11-13T22:55:58Z")

</div>

Is pastebin the best method for posting logs, or should I be using something else?

Here are some logs from both rclone and acd\_cli. Times were closer while I did these logs, only a couple of seconds difference, but acd\_cli sped up when testing with logging off, from 10 seconds down to 8.

The last file played with rclone took longer than the others around 30seconds, compared to 10-12seconds. acd\_cli also seems to be caching the file in some way, as a second play of the same file loaded faster than the first play. 10 seconds down to about 6.

rclone  
[http://pastebin.com/0B2LH6fE](http://pastebin.com/0B2LH6fE)

acd\_cli  
[http://pastebin.com/4huJC7vy](http://pastebin.com/4huJC7vy)

Just want to say, that at the current speeds it is still quite usable, but still happy to help improve speed debuging if I can.

Thanks,  
Wob

---

<div class="post-metadata">

**Author:** ![hari9](https://forum.rclone.org/user_avatar/forum.rclone.org/hari9/32/35_2.png) [@hari9](https://forum.rclone.org/u/hari9)\
**Post date:** [November 14, 2016, 10:59am UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/25 "2016-11-14T10:59:40Z")

</div>

@Wob76 When I try to execute your script in terminal on macOS it never gets to the point of mounting. I get the log output saying either already running or remounting.

I have tested this portion separately & that works:

```
screen -S rclone -d -m rclone mount --allow-other --dir-cache-time 60m --max-read-ahead 200M --uid 99 --gid 100 secret:media $rclonemount

```

The problem is probably very obvious but since I’m pretty new to scripts I’m not sure what could be going wrong.

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [November 14, 2016, 2:46pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/26 "2016-11-14T14:46:16Z")

</div>

> [@Wob76](#):
>
> acd\_cli also seems to be caching the file in some way, as a second play of the same file loaded faster than the first play. 10 seconds down to about 6.

The key here is caching as you said. The multiple calls from plex seem to exacerbate that. I wonder if acd\_cli is caching it itself or if it is doing something different with OS file caching.

This has tread has an interesting point about Plex cache.

> [@ACD + fuse mount: still not working with Plex](https://forum.rclone.org/t/acd-fuse-mount-still-not-working-with-plex/170/28):
>
> I have 60 GB ram in the box so really you want to allocate about 75% of free ram max how much memory do you have ? Only issue I have now, is I need faster internet at home slight_smile #buff/cache change I just added this to my crontab so at reboot it runs @reboot root dd if=/dev/zero of=~/plex bs=1M count=45000 #rclone I use crypt rclone/rclone mount --max-read-ahead 400M secret: /Plex/Media #Plex Plex setting due to some 4k content had to transcode. (still testing but look good…

---

<div class="post-metadata">

**Author:** ![Wob76](https://forum.rclone.org/user_avatar/forum.rclone.org/wob76/32/65_2.png) [@Wob76](https://forum.rclone.org/u/Wob76)\
**Post date:** [November 14, 2016, 10:26pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/27 "2016-11-14T22:26:51Z")

</div>

Hi hari9,

I can’t help on a Mac, I am a Windows and Linux user, Linux in this case.

Not you will need to change the $rclonemount if you run the command by hand, it should be pointed to your mount point.

Wob

---

<div class="post-metadata">

**Author:** ![Wob76](https://forum.rclone.org/user_avatar/forum.rclone.org/wob76/32/65_2.png) [@Wob76](https://forum.rclone.org/u/Wob76)\
**Post date:** [November 14, 2016, 10:32pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/28 "2016-11-14T22:32:36Z")

</div>

I did see that thread, I don’t have that kind of RAM in my box, I did check my buffer and it is sitting around 6Gb at the moment. Since the files I am pulling are under 1Gb I would think that should be enough. The --max-read-ahead doesn’t seem to effect my load time much, maybe seeking, but not load time.

---

<div class="post-metadata">

**Author:** ![Buba\_metola](https://forum.rclone.org/letter_avatar_proxy/v4/letter/b/76d3ee/32.png) [@Buba\_metola](https://forum.rclone.org/u/Buba_metola)\
**Post date:** [November 15, 2016, 4:40am UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/29 "2016-11-15T04:40:12Z")

</div>

Mac not much different linux , ill have look and get back too tonight . ( I run and support many flavors in RL)

---

<div class="post-metadata">

**Author:** ![Tobias\_Lauridsen](https://forum.rclone.org/letter_avatar_proxy/v4/letter/t/0ea827/32.png) [@Tobias\_Lauridsen](https://forum.rclone.org/u/Tobias_Lauridsen)\
**Post date:** [November 15, 2016, 12:51pm UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/30 "2016-11-15T12:51:56Z")

</div>

wird I just try to upload whit Encfs and acd\_cli the upload speed are a litel lower I think but I can mound it and play whit vlc whit out problem when I use rclolne to upload and encrypt and mound it cant play whit vlc I have try  
rclone mount --max-read-ahead 200M --dir-cache-time 30m --checkers 40 --read-only --allow-other acd: /folder/folder

relly sad why are it like that dont get it im not after rclone I relly think it the most complete packet

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:34am UTC](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225/31 "2020-03-04T00:34:26Z")

</div>

Closed on March 4, 2020, 12:34am UTC



[Previous page](https://forum.rclone.org/t/rclone-vs-acd-cli-speeds/225.md?page=1)
