Upload speed improvements


NC: 21
Server 2x1Tb SATA, 16GB RAM, CPU 4C/8T 3.7GHz, Bandwidth 1Gbps
Nginx: 1.19.8
MariaDB: 10.3.25
Ubtuntu 20.04
Php 7.4

APCu and Redis installed and configured:

'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
  'memcache.locking' => '\\OC\\Memcache\\Redis',

When uploading a file from my client to nextcloud I have ~300KB/s
When copying the same file through SFTP or SCP I get ~1.5MB/s

Has anyone else experienced the same speed difference?

I looked at the documentation on how to improve nextcloud / optimize MariaDB. Nginx conf is from the nextcloud installation guide.

Any idea on how to improve the upload speed?


there are some settings with the caches you probably can optimize. Can you check with top the usage of resources during upload? Take a look at the io-wait as well, it shows limitations created by read/write processes to you harddisk. In a second step (with iotop) you can check which process is using a lot of io operations, in case of the database, there are potential improvements using optimized caches.

Hello, iotop indicates top usage, besides RAID, is mysql (MariaDB).