# VFS cache slow to split chunks

**URL:** <https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626>\
**Category:** Help and Support\
**Created:** [September 7, 2024, 12:25am UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626 "2024-09-07T00:25:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itay1787](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/edb3f5/32.png) [@Itay1787](https://forum.rclone.org/u/Itay1787)\
**Post date:** [September 7, 2024, 12:25am UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/1 "2024-09-07T00:25:01Z")

</div>

#### What is the problem you are having with rclone?

Hi, I'm new to Rclone and configured it to use S3 but I notice that when it comes time to split into chunks it's just really slow. And I would love to understand why, and how to get him to do it quickly

I have a separate drive just for cache, I need to back up around 10TB to the remote location. the software I use for backup creates 200GB files for me (that's how I set it up) each so that Rclone can upload the files in the background because it uses VFS  
After the 200GB is created I see that Rclone starts to do something but never reaches the stage that it uploads to the remote location. I think something in the creation of the chunks is probably stuck or doesn't know.  
I would appreciate help understanding why it is slow, and what it depends on.  
Drive speed on which the cache is located? CPU speed? RAM speed? Holy Spirits 😉 ?

#### Run the command 'rclone version' and share the full output of the command.

rclone v1.67.0

- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.4780 (x86\_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: cmount

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

iDriveE2

#### The command you were trying to run

```auto
--config {my config location} mount --cache-dir "E:\Rclone Caching" iDriveE2:backups S: --volname \\127.0.0.1\backups --vfs-cache-mode full --vfs-fast-fingerprint --no-modtime --multi-thread-streams 10 --s3-upload-cutoff 4.6G --s3-chunk-size 4.6G --poll-interval 30s --dir-cache-time 1m0s --vfs-cache-max-age 30s --vfs-cache-min-free-space 15G --vfs-cache-poll-interval 10s --transfers 8 --s3-upload-concurrency 10 --log-file C:\Rclone\logs.txt

```

#### Please run 'rclone config redacted' and share the full output.

```auto
[iDriveE2]
type = s3
provider = IDrive
access_key_id = XXX
secret_access_key = XXX
endpoint = {the-end-point}

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [September 7, 2024, 2:18pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/2 "2024-09-07T14:18:04Z")

</div>

welcome to the forum,

> [@Itay1787](#):
>
> Rclone starts to do something but never reaches the stage that it uploads

[Normally rclone will calculate the MD5 checksum of the input before uploading it so it can add it to metadata on the object. This is great for data integrity checking but can cause long delays for large files to start uploading](https://rclone.org/s3/#s3-disable-checksum)

to confirm that, monitor disk usage by rclone.

* * *

`--poll-interval 30s`, does nothing, can remove that.  
S3 remotes do not support polling. a debug log would show that.

* * *

`--s3-upload-cutoff 4.6G --s3-chunk-size 4.6G`  
why use that, instead of default values?

> [@Itay1787](#):
>
> the software I use for backup

what is the name of the software?

---

<div class="post-metadata">

**Author:** ![Itay1787](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/edb3f5/32.png) [@Itay1787](https://forum.rclone.org/u/Itay1787)\
**Post date:** [September 7, 2024, 4:13pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/3 "2024-09-07T16:13:07Z")

</div>

Hi, thanks for the reply.

> [@asdffdsa](#):
>
> to confirm that, monitor disk usage by rclone.

Is looking at the task manager enough? Is there another way to see it? I see that it does read from the disk at 30 MB/s but I don't know what it does in this process if it is the MD5 checksum as you said or something else.

> [@asdffdsa](#):
>
> `--poll-interval 30s`, does nothing, can remove that.  
> S3 remotes do not support polling.

really!?  
So in s3 is it always up to date? Is there something else that is unnecessary in my config?

> [@asdffdsa](#):
>
> `--s3-upload-cutoff 4.6G --s3-chunk-size 4.6G`  
> why use that, instead of default values?

According to what I read and understood  
The bigger the parts, the faster uploading will be. In addition, it will use less time in large files (which is what I have) to split them and then there will be fewer parts  
And 5GB is the maximum possible in iDriveE2 in a single part size, so I took a little less. At first, I wanted to use even 50GB parts size but I realized that it was not possible.

> [@asdffdsa](#):
>
> what is the name of the software?

Acronis True Image - one of the best backup software I use  
for now, I limit his upload speed to give Rclone more time to do what it does before it uploads to the remote location - I prefer not to limit Acronis' upload speed but it is a fix for the meantime until I find out why it takes rclone so much time until it starts to uploads

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [September 7, 2024, 4:42pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/4 "2024-09-07T16:42:07Z")

</div>

> [@Itay1787](#):
>
> 200GB files for me (that's how I set it up)

tl;dr - the smaller the value, the sooner each file will start to upload.

* * *

> [@Itay1787](#):
>
> Is looking at the task manager enough?

can use task manager, resource monitor, sysinternals process explorer or any number of such other tools.

* * *

> [@Itay1787](#):
>
> really!?

yes. a debug log would show that.

* * *

> [@Itay1787](#):
>
> So in s3 is it always up to date?

[changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes](https://rclone.org/commands/rclone_mount/#vfs-directory-cache)

check out [my summary of the two types of cache](https://forum.rclone.org/t/status-about-using-rclone-for-music-storage-playback-in-2021-access-times-improved/27648/34)

* * *

> [@Itay1787](#):
>
> until I find out why it takes rclone so much time until it starts to uploads

for each file, it is a two-step process

1. calculate the hash. to do that, rclone has to read the entire file.
2. upload the file.

in addition to the rclone two-step, at the same time, ATI can be writing a new file into the cache.

---

<div class="post-metadata">

**Author:** ![Itay1787](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/edb3f5/32.png) [@Itay1787](https://forum.rclone.org/u/Itay1787)\
**Post date:** [September 7, 2024, 9:47pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/5 "2024-09-07T21:47:09Z")

</div>

> [@asdffdsa](#):
>
> tl;dr - the smaller the value, the sooner each file will start to upload.

Yes, I get that, but I don't want a million or so files that were in the folder.

> [@asdffdsa](#):
>
> [changes made directly on the cloud storage by the web interface or a different copy of rclone will only be picked up once the directory cache expires if the backend configured does not support polling for changes](https://rclone.org/commands/rclone_mount/#vfs-directory-cache)
> 
> check out [my summary of the two types of cache](https://forum.rclone.org/t/status-about-using-rclone-for-music-storage-playback-in-2021-access-times-improved/27648/34)

Ok, so it's set for a minute in my case, it seems to be fine.

> [@asdffdsa](#):
>
> for each file, it is a two-step process
> 
> 1. calculate the hash. to do that, rclone has to read the entire file.
> 2. upload the file.

When he calculates the hash is it when he creates the different parts to upload?  
I just get more confused, I thought he creates the hash to make sure everything uploads without a problem and another process that creates the parts 🤔

> [@asdffdsa](#):
>
> in addition to the rclone two-step, at the same time, ATI can be writing a new file into the cache.

this is why I split the backup for multiple sizes because rclone can't touch the cache and start the upload when ATI do something with the files.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [September 7, 2024, 10:14pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/6 "2024-09-07T22:14:30Z")

</div>

if you want to fully understand what rclone is doing.

1. kill the mount
2. empty the cache
3. start the mount
4. copy one file that is 16GiB
5. wait for the file to upload to idrive
6. read the debug log

---

<div class="post-metadata">

**Author:** ![Itay1787](https://forum.rclone.org/letter_avatar_proxy/v4/letter/i/edb3f5/32.png) [@Itay1787](https://forum.rclone.org/u/Itay1787)\
**Post date:** [September 7, 2024, 10:29pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/7 "2024-09-07T22:29:14Z")

</div>

Ok, Will do! After the first backup finish then I can kill the mount.

But let's go back to the main question:

Why is it slow: from what I understand is mainly a disk speed, no?  
if I see via task manager that rclone read about 30MB/s from the disk cache  
is that the limit? if I have a faster drive then will get to part of the upload faster?

And what kind of disk operation is it? sequential read?

---

<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:** [October 7, 2024, 10:29pm UTC](https://forum.rclone.org/t/vfs-cache-slow-to-split-chunks/47626/8 "2024-10-07T22:29:52Z")

</div>

Closed on October 7, 2024, 10:29pm UTC

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