also im prinzip ist es der rpi ja?
Posts by Pfann
Registriere dich jetzt, um exklusive Vorteile zu genießen! Als registriertes Mitglied kannst du Inhalte herunterladen und profitierst von einem werbefreien Forum.
Mach mit und werde Teil unserer Community!
Mach mit und werde Teil unserer Community!
-
-
Was sagt openssl speed -elapsed aes ?
Code
Display Moreopenssl speed -elapsed aes You have chosen to measure elapsed time instead of user CPU time. Doing aes-128 cbc for 3s on 16 size blocks: 13206402 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 64 size blocks: 3518450 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 256 size blocks: 889926 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 1024 size blocks: 224138 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 8192 size blocks: 28042 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 16384 size blocks: 14031 aes-128 cbc's in 3.00s Doing aes-192 cbc for 3s on 16 size blocks: 11394075 aes-192 cbc's in 3.00s Doing aes-192 cbc for 3s on 64 size blocks: 3008905 aes-192 cbc's in 3.00s Doing aes-192 cbc for 3s on 256 size blocks: 759993 aes-192 cbc's in 3.00s Doing aes-192 cbc for 3s on 1024 size blocks: 191185 aes-192 cbc's in 3.00s Doing aes-192 cbc for 3s on 8192 size blocks: 23921 aes-192 cbc's in 3.00s Doing aes-192 cbc for 3s on 16384 size blocks: 11965 aes-192 cbc's in 3.00s Doing aes-256 cbc for 3s on 16 size blocks: 10024091 aes-256 cbc's in 3.00s Doing aes-256 cbc for 3s on 64 size blocks: 2628753 aes-256 cbc's in 3.00s Doing aes-256 cbc for 3s on 256 size blocks: 663099 aes-256 cbc's in 3.00s Doing aes-256 cbc for 3s on 1024 size blocks: 166655 aes-256 cbc's in 3.00s Doing aes-256 cbc for 3s on 8192 size blocks: 20859 aes-256 cbc's in 3.00s Doing aes-256 cbc for 3s on 16384 size blocks: 10428 aes-256 cbc's in 3.00s OpenSSL 1.1.1d 10 Sep 2019 built on: Tue Aug 24 08:30:43 2021 UTC options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr) compiler: gcc -fPIC -pthread -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -fdebug-prefix-map=/build/openssl-RzZXhH/openssl-1.1.1d=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes aes-128 cbc 70434.14k 75060.27k 75940.35k 76505.77k 76573.35k 76627.97k aes-192 cbc 60768.40k 64189.97k 64852.74k 65257.81k 65320.28k 65344.85k aes-256 cbc 53461.82k 56080.06k 56584.45k 56884.91k 56958.98k 56950.78k
Gleiches Problem an einem Freund seinem Rpi 4 ( Minimal Debian ohne ssl nur SFTP )
-
also ich habe mal rumprobiert und etweas google gespielt.
es liegt am SFTP / SSL vermutlich scheint der raspberry probleme zu haben mit dem encrypten ?
HTTPdownloads laufen wie sie sollen, nur sobald etwas über eine sichere leitung (HTTPS oder SFTP (winscp) läuft, wird der download / upload verlangsamt
-
Vhost nextcloud.conf
Apache Configuration
Display More<VirtualHost *:80> Protocols h2 http/1.1 ServerAdmin ********* DocumentRoot /var/www/Nextcloud/ ServerName ********* Alias /nextcloud "/var/www/Nextcloud/" <Directory /var/www/Nextcloud/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/Nextcloud SetEnv HTTP_HOME /var/www/Nextcloud </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =********* RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>
nextcloud-le-ssl.conf
Code
Display More<IfModule mod_ssl.c> <VirtualHost *:443> Protocols h2 http/1.1 ServerAdmin ********* DocumentRoot /var/www/Nextcloud/ ServerName ********* Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" Alias /nextcloud "/var/www/Nextcloud/" <Directory /var/www/Nextcloud/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/Nextcloud SetEnv HTTP_HOME /var/www/Nextcloud </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile /etc/letsencrypt/live/*********/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/*********/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule>
nextcloud-localhost.conf
Apache Configuration
Display More<VirtualHost *:80> Protocols h2 http/1.1 ServerAdmin ********* DocumentRoot /var/www/Nextcloud/ ServerName ********* Alias /nextcloud "/var/www/Nextcloud/" <Directory /var/www/Nextcloud/> Options +FollowSymlinks AllowOverride All Require all granted <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/Nextcloud SetEnv HTTP_HOME /var/www/Nextcloud </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteCond %{SERVER_NAME} =192.168.178.49 RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>
für SSL verwende ich letsencrypt und certbot
-
okay gesagt getan
auslastung des rpi
speed
ich habe auch versucht den download mit firefox zu starten. fullspeed!
es liegt offenbar an den Vhost oder eben an dem SSL
doch wie kann ich das nun beheben?
-
Das liegt Im normalen GbE-Bereich.
Hast du den Axel-Test auf deine Nextcloud-Installation gemacht oder auf den Apache?
Speicher-/CPU-Last dabei mal beobachtet?
also wenn ich axel nur mit dem rpi mache kommt folgendes
mache ich das mit dem Vserver bekomme ich folgenden fehler
Der meint irgendwas mit SSL und HTTP/1.1
auch mit http anstatt https kommt der gleiche Fehler
-
Iperf3 auf localhost ist hier ziemlich sinnlos. Du müsstest das schon von/zu einem anderen Rechner im LAN machen. In beide Richtungen sinvollerweise.
( der andere Linux ist ein Vserver auf meinem Intel Nuc )
dies ist die verbindung vom rpi zu einem zweiten linux
und hier vom zweiten linux zum rpi
Meiner Meinung nach kann es nur am Apache liegen, SSH sowie Apache sind relativ langsam.
Kann es am SSL/SSH liegen?
-
iperf:
mit dem befehl axel bekomme ich auch nur 16 Mb/s rein
(siehe Bild)
und es läuft mpm_event
-
zurück zum anfang^^
Ist es denn nicht möglich einen Downloadprozess auf alle kerne zu verteilen?
ich mein 15 bis 20 Mb/s download im localem netzwerk ist ein bissl wenig
(es wird nur ein CPU auf 100% hochgedreht daher der langsame downloadspeed)
-
[EDIT] Habs getan und habe nun vm.swappiness = 2
nun in der datei steht nichts davon drin. soll ich den command dort einfach mal eintragen und den rpi neu starten ?
hier die datei
Code
Display More# # /etc/sysctl.conf - Configuration file for setting system variables # See /etc/sysctl.d/ for additional system variables. # See sysctl.conf (5) for information. # #kernel.domainname = example.com # Uncomment the following to stop low-level messages on console #kernel.printk = 3 4 1 3 ##############################################################3 # Functions previously found in netbase # # Uncomment the next two lines to enable Spoof protection (reverse-path filter) # Turn on Source Address Verification in all interfaces to # prevent some spoofing attacks #net.ipv4.conf.default.rp_filter=1 #net.ipv4.conf.all.rp_filter=1 # Uncomment the next line to enable TCP/IP SYN cookies # See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too #net.ipv4.tcp_syncookies=1 # Uncomment the next line to enable packet forwarding for IPv4 #net.ipv4.ip_forward=1 # Uncomment the next line to enable packet forwarding for IPv6 # Enabling this option disables Stateless Address Autoconfiguration # based on Router Advertisements for this host #net.ipv6.conf.all.forwarding=1 ################################################################### # Additional settings - these settings can improve the network # security of the host and prevent against some network attacks # including spoofing attacks and man in the middle attacks through # redirection. Some network environments, however, require that these # settings are disabled so review and enable them as needed. # # Do not accept ICMP redirects (prevent MITM attacks) #net.ipv4.conf.all.accept_redirects = 0 #net.ipv6.conf.all.accept_redirects = 0 # _or_ # Accept ICMP redirects only for gateways listed in our default # gateway list (enabled by default) # net.ipv4.conf.all.secure_redirects = 1 # # Do not send ICMP redirects (we are not a router) #net.ipv4.conf.all.send_redirects = 0 # # Do not accept IP source route packets (we are not a router) #net.ipv4.conf.all.accept_source_route = 0 #net.ipv6.conf.all.accept_source_route = 0 # # Log Martian Packets #net.ipv4.conf.all.log_martians = 1 # ################################################################### # Magic system request Key # 0=disable, 1=enable all, >1 bitmask of sysrq functions # See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html # for what other values do #kernel.sysrq=438
-
okay. ich habe sogut wie 0 ahnung von der sache. ich habe also den befehl
sudo sysctl -a | grep -i swappiness
eingegeben und bekomme diese meldung vm.swappiness = 60
jetzt wurde oben geschrieben ich solle dies mit dem befehl verändern vm.swappiness = 2
aber der rasp erkennt diesen befehl nicht ebenfalls hat die datei /etc/sysctl.conf keinerlei eintrag. wie also kann ich das ganze nun anpassen ?
-
-
Uhm was genau soll ich da eintragen? habe hier die dphys-swapfile
Code
Display More# /etc/dphys-swapfile - user settings for dphys-swapfile package # author Neil Franklin, last modification 2010.05.05 # copyright ETH Zuerich Physics Departement # use under either modified/non-advertising BSD or GPL license # this file is sourced with . so full normal sh syntax applies # the default settings are added as commented out CONF_*=* lines # where we want the swapfile to be, this is the default #CONF_SWAPFILE=/var/swap # set size to absolute value, leaving empty (default) then uses computed value # you most likely don't want this, unless you have an special disk situation CONF_SWAPSIZE=100 # set size to computed value, this times RAM size, dynamically adapts, # guarantees that there is enough swap without wasting disk space on excess #CONF_SWAPFACTOR=2 # restrict size (computed and absolute!) to maximally this limit # can be set to empty for no limit, but beware of filled partitions! # this is/was a (outdated?) 32bit kernel limit (in MBytes), do not overrun it # but is also sensible on 64bit to prevent filling /var or even / partition #CONF_MAXSWAP=2048
-
-
Hallo und danke für die rasche Antwort
wieso der ram? der ist noch nichtmal bei einem GB?
ja er verwendet ein wenig mehr wie 100% aber das problem ist starte ich mit einem zweiten brower oder gerät den selben download, gehen die anderen CPUS ebenfalls hoch, welches er aber bei einem Download machen sollte.
Die Cloud ist für mich und mein Vater, daher kann der ruhig mehr power bei einem Download geben.
Denn im Lokalen netzwerk sollte es weit über 20 mb/s sein,
-
Hallo. Ich habe einen Raspberry pi 4 mit 4 Gb Ram. Installiert ist Rasbian x64
Ich habe mir Apache sowie Nextcloud installiert und drehe bereits durch
Der Locale Up sowie downloadspeed ist zwischen 15 und 19 Mb/s wobei der Sambaserver mit die Komplette Festplattengeschwindigkeit gibt.
Nun habe ich ein wenig rum gegoogelt und habe gelesen dass ich das MPM addon für apache benötige, andere wiederum meinen is brauche Redis, usw.
Das Problem welches ich vermute zu haben ist, dass es weder an der Nextcloud noch am PHP liegst, sondern am Apache oder möglicherweise am rpi selbst.
Starte ich einen localen down/upload geht einer der CPUs auf 100%. Wenn es irgendwie möglich ist, dass alle oder 2 CPUs verwendet werden, müsste das ganze doch schneller werden oder ?=
Anbei Bilder vom CPUlast sowie downloadspeed