# RClone Cache Chunk Path/Memory

**URL:** <https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701>\
**Category:** Help and Support\
**Created:** [September 5, 2018, 6:52pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701 "2018-09-05T18:52:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 5, 2018, 6:52pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/1 "2018-09-05T18:52:29Z")

</div>

So, I have my `--cache-chunk-path` pointed to `/dev/shm` (formatted to `tmpfs`) which is basically memory as per my understanding. In this scenario, would it be recommended to turn off the in-memory storage of chunks using the `--cache-chunk-no-memory` flag or would that storage still be beneficial somehow?

---

<div class="post-metadata">

**Author:** ![drgreatscott](https://forum.rclone.org/user_avatar/forum.rclone.org/drgreatscott/32/8422_2.png) [@drgreatscott](https://forum.rclone.org/u/drgreatscott)\
**Post date:** [September 6, 2018, 3:03am UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/2 "2018-09-06T03:03:18Z")

</div>

Personally I turned off in-memory storage of chunks with --cache-chunk-no-memory when using /dev/shm for cache.

One headache I have is that rclone mount seem to increase in RAM usage (not cache or /dev/shm/ usage) over time (weeks) after extensive usage. The RAM usage gets quite big after weeks. The /dev/shm has no problem though.

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 7, 2018, 3:28pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/3 "2018-09-07T15:28:57Z")

</div>

I tried out the `--cache-chunk-no-memory` option but the speeds were very low. Normally I get ~150 MBps on rsync from the rclone mount point but with that option enabled, I was getting only 1 MBps or so. Quite a drastic difference.

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 9, 2018, 7:04pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/4 "2018-09-09T19:04:14Z")

</div>

Has no one faced a similar issue?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [September 9, 2018, 7:36pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/5 "2018-09-09T19:36:52Z")

</div>

I found turning off cache chunk memory to be slower as well.

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 9, 2018, 7:49pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/6 "2018-09-09T19:49:04Z")

</div>

Yeah, I can understand a little slower, was expecting something like 100 MBps instead of the 150 but 1 MBps? Doesn’t that seem too low?

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 12, 2018, 5:47am UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/7 "2018-09-12T05:47:36Z")

</div>

@ncw @B4dM4n

Sorry to tag you, but wanted to confirm that this is the expected behavior and I don’t need to check any issues with the configuration.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [September 12, 2018, 8:12pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/8 "2018-09-12T20:12:27Z")

</div>

> [@darthShadow](#):
>
> Sorry to tag you, but wanted to confirm that this is the expected behavior and I don’t need to check any issues with the configuration.

It seems very slow, but I don't have any idea why! Unless maybe using /dev/shm pushed your machine into swap.

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [September 12, 2018, 8:45pm UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/9 "2018-09-12T20:45:47Z")

</div>

Ok so it’s not expected then. Let me collect some debug logs and see if that helps you.

BTW, there was still plenty of memory available so I don’t think that’s the cause.

---

<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:47am UTC](https://forum.rclone.org/t/rclone-cache-chunk-path-memory/6701/10 "2020-03-04T00:47:18Z")

</div>

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


