New Nextcloud 22.1.1 installation slow up-download speed

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.1.1
Operating system and version (eg, Ubuntu 20.04): ubuntu 20.04 VM
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41
PHP version (eg, 7.4): PHP 7.4.3, Zend Engine v3.4.0, OPcache v7.4.3
swap on the VM is turned off
Up and download speed is only 40-50mbyt/s

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'ijpH*So/XNk',
  'secret' => 'hcw*sH',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.0.6',
    2 => 'stan.selfhost.eu',
  ),
  'datadirectory' => '/mnt/hdd/ncdata',
  'dbtype' => 'pgsql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'https://stan.selfhost.eu/',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncadmin',
  'dbpassword' => 'yb*s5X',
  'installed' => true,
  'instanceid' => 'ocwffucx12ko',
  'upgrade.disable-web' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 60',
  'versions_retention_obligation' => 'auto, 180',
  'activity_expire_days' => '120',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '0N*OVf',
  ),
  'default_phone_region' => 'de',
  'logtimezone' => 'Etc/UTC',
  'htaccess.RewriteBase' => '/',
  'maintenance' => false,
  'app_install_overwrite' =>
  array (
    0 => 'previewgenerator',
  ),
);

screenshots:
slow upload

htop on VM:

nmon on VM:
nmon

nmon and fio on host:

Hi @Rothammel

I wouldn’t call it slow, but rather what you should expect. I tested it with my server by uploading a few Linux ISOs (I didn’t have a 100GB file at hand :wink: ) and I get similar transfer speeds. Maybe others here have some tips how to optimize this a bit more, or you can search the forum for similiar threads. But you will not get the full 1Gbit or whatever the raw bandwith of your network is. That much I can say for sure.

oh no, in the past I had a version 21 installation with an i5 and zpool, zfs + raidz.
and with the zfs stuff and so on, it performed very well:

WhatsApp Image 2021-03-13 at 19.02.57

WhatsApp Image 2021-03-13 at 19.03.01

but it was the maximum:
htop:
WhatsApp Image 2021-03-13 at 18.57.52

Why php-fpm used so much cpu power?
And why did so many processes with pool Nextcloud run in the past and now only one?

That’s indeed much better and near line speed… I’m not an expert when it comes to this and there are many factors involved. Network, storage, CPU, memory, webserver, PHP (caching, chunk size etc). Perhaps other forum participants have tips for you on how you can optimize this… Or try search the forums. The performance topic comes up here from time to time…

updates my friends:
write speed with smb running on the VM:
smb nmon

its not linespeed, but not so bad