# Very slow sync (for small files)

**URL:** <https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064>\
**Category:** ℹ️ Support\
**Created:** [April 6, 2017, 5:57am UTC](https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064 "2017-04-06T05:57:45Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![mooleshacat](https://help.nextcloud.com/letter_avatar/mooleshacat/32/5_5575768a8748004e209b776fc1b2916d.png) [@mooleshacat](https://help.nextcloud.com/u/mooleshacat)\
**Post date:** [January 10, 2022, 6:31pm UTC](https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064/13 "2022-01-10T18:31:36Z")

</div>

Proper fix is to add to bottom of php.ini for the FPM & CLI & CGI to add in:

> memory\_limit = 10G  
> post\_max\_size = 25G  
> upload\_max\_filesize= 25G

Then increase chunksize in **/var/www/nextcloud/config/config.php** :

> ‘chunkSize’ =\> ‘5120MB’,

Then you need to restart **php-fpm** :

> systemctl restart php7.4-fpm

Simply replace the 7.4 with your version number, can be found with **php -v** or **php -info**

So far desktop sync sped right up. Still testing to see if Android app finally can finish its uploads.

I also added the preview image cacher plugin, ran the initial run, and added the cronjob. Next I will offload my MySQL, Redis, and Clamscan to a second raspi. That should offload lots of work from the pi running NextCloud

I wish there was a plugin/way to add a secondary pi to offload the primary pi’s resources for NextCloud. So you can add more processing power from another pi. It would be cool to have a way to set up master/slave next cloud servers, so you can have multiple servers serving nextcloud.

---

_[View the full topic](https://help.nextcloud.com/t/very-slow-sync-for-small-files/11064)._
