PopoPlug Memory Limitations on Upgrading February 13, 2021 12:58PM |
Registered: 6 years ago Posts: 35 |
update-initramfs: deferring update (trigger activated) Processing triggers for man-db (2.8.5-2) ... Processing triggers for dbus (1.12.20-0+deb10u1) ... Processing triggers for libc-bin (2.28-10) ... Processing triggers for initramfs-tools (0.133+deb10u1) ... update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1
Re: PopoPlug Memory Limitations on Upgrading February 13, 2021 04:31PM |
Admin Registered: 13 years ago Posts: 18,898 |
free -h swapon
# sysctl -a | grep swap vm.swappiness = 60
# sysctl -a | grep vm.min_free_kbytes vm.min_free_kbytes = 16384
Re: PopoPlug Memory Limitations on Upgrading February 13, 2021 06:41PM |
Registered: 6 years ago Posts: 35 |
root@debian:~# free -h total used free shared buff/cache available Mem: 112Mi 94Mi 1.0Mi 0.0Ki 16Mi 13Mi Swap: 1.0Gi 73Mi 950Mi root@debian:~# swapon NAME TYPE SIZE USED PRIO /media/data/swapfile.img file 1024M 91M -2 root@debian:~# sysctl -a | grep swap vm.swappiness = 60 root@debian:~# sysctl -a | grep vm.min_free_kbytes vm.min_free_kbytes = 1295
root@debian:~# sysctl vm.swappiness=30 vm.swappiness = 30 root@debian:~# cat /proc/sys/vm/swappiness 30 root@debian:~# echo 16384 > /proc/sys/vm/min_free_kbytes root@debian:~# sysctl -a | grep vm.min_free_kbytes vm.min_free_kbytes = 16384I assume I just play with the swappiness to find the sweetspot?
Re: PopoPlug Memory Limitations on Upgrading February 13, 2021 07:18PM |
Registered: 6 years ago Posts: 35 |
Re: PopoPlug Memory Limitations on Upgrading February 13, 2021 07:51PM |
Admin Registered: 13 years ago Posts: 18,898 |
# # /etc/sysctl.d/local.conf # # Configuration file for setting system variables # supplement to /etc/sysctl.conf # # increase the free page caches for VM vm.min_free_kbytes = 16384 vm.swappiness = 60 # disable IPV6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
Re: PopoPlug Memory Limitations on Upgrading February 14, 2021 03:57PM |
Registered: 6 years ago Posts: 35 |
root@debian:~# cat /var/webmin/miniserv.log 10.0.1.126 - - [22/Jan/2021:23:35:03 -0800] "¸H4ò5tâ“[iR}ˆ_’QüS:æ—bA.FÚØBÓ¡ŒÌ ¢÷+£%ÆÄ€Dñ {P°@ìÕã\æˇ-_eVD”¿$¿+¿/éî¿,¿0¿" 400 74 10.0.1.126 - - [22/Ja+/2021:23:36:15 -0800] "GET / HTTP/1.1" 401 4853 10.0.1.126 - - [22/Ja+/2021:23:36:18 -0800] "GET /++a++he++ica+ed/c__/b++d+e.+i+.c__?19709999999999900 HTTP/1.1" 200 148024 10.0.1.126 - - [22/Ja+/2021:23:36:18 -0800] "GET /++a++he++ica+ed/c__/f-++_-_-b-+-.+i+.c__?19709999999999900 HTTP/1.1" 200 406059 10.0.1.126 - - [22/Ja+/2021:23:36:18 -0800] "GET /i+age_/fa+ic-+_/+eb+i+/a+d_-id-ch_-+e-192|192.-+g HTTP/1.1" 200 6851 10.0.1.126 - - [22/Ja+/2021:23:36:18 -0800] "GET /i+age_/fa+ic-+_/+eb+i+/fa+ic-+-16|16.-+g HTTP/1.1" 200 1146 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:33 -0800] "POST /_e__i-+_+-gi+.cgi HTTP/1.1" 302 0 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:41 -0800] "GET / HTTP/1.1" 200 70946 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:41 -0800] "GET /++a++he++ica+ed/+_/defa+++_.+_?19709999999999900 HTTP/1.1" 200 5123 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:41 -0800] "GET /++a++he++ica+ed/+_/b++d+e.+i+.+_?19709999999999900 HTTP/1.1" 200 488201 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:42 -0800] "GET /e|+e+_i-+_/_+a+_/_+a+_.+i+.+_?19709999999999900 HTTP/1.1" 200 2555 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:43 -0800] "GET /i+age_/fa+ic-+_/+eb+i+/a--+e-+-+ch-ic-+.-+g HTTP/1.1" 200 6368 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:48 -0800] "GET /i+de|.cgi/?|h_-ge+_+_e__+e+e+=1 HTTP/1.1" 200 1 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:49 -0800] "POST /i+de|.cgi/?|h_-+he+e_+e+-_da+a=1&|h_-+he+e_+e+-_da+a_ac+i-+=ge+&|h_-+he+e_+e+-_da+a_+a+e=g-+-&|h_-+he+e_+e+-_da+a_+a++e=fa+_e&|h_-+he+e_+e+-_da+a_+ee-=0 HTTP/1.1" 200 0 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:50 -0800] "GET /i+de|.cgi?|h_-+a+age-c-+fig=1&+-ad=1 HTTP/1.1" 200 2 10.0.1.126 - _h-de__ [22/Ja+/2021:23:36:53 -0800] "GET /i+de|.cgi/?|h_-defa+++=1 HTTP/1.1" 200 12 " " " " 10.0.1.70 - _h-de__ [14/Feb/2021:16:43:57 -0500] "POST /-ac+age-+-da+e_/ HTTP/1.1" 200 15906 10.0.1.70 - _h-de__ [14/Feb/2021:16:44:33 -0500] "POST /fdi_+/ HTTP/1.1" 200 5489 10.0.1.70 - _h-de__ [14/Feb/2021:16:46:45 -0500] "GET /i+de|.cgi/?|h_-i+f-=1&+eb-_efi|= HTTP/1.1" 200 8432 _--+@debia+:~# ^C _--+@debia+:~#
mkdir -p /tmp/var/log cp -aR /var/log/* /tmp/var/log mount -o bind /tmp/var/log /var/log cp /var/webmin/miniserv.log /tmp/var/log/ mount -o bind /tmp/var/log/miniserv.log /var/webmin/miniserv.log
Re: PopoPlug Memory Limitations on Upgrading February 14, 2021 04:14PM |
Admin Registered: 13 years ago Posts: 18,898 |
mkdir -p /tmp/var/log cp -aR /var/log/* /tmp/var/log mount -o bind /tmp/var/log /var/log cp /var/webmin/miniserv.log /tmp/var/log/ mount -o bind /tmp/var/log/miniserv.log /var/webmin/miniserv.log
/etc/rc.local ... ... ... # those statments go here (or the script). If using the script, it needs to be full path (eg. /root/movelog.sh). exit 0
Re: PopoPlug Memory Limitations on Upgrading February 15, 2021 05:48PM |
Registered: 6 years ago Posts: 35 |
mkdir -p /media/data/log/ cp -aR /var/log/* /media/data/log mount -o bind /media/data/log /var/log cp /var/webmin/miniserv.log /media/data/log/ mount -o bind /media/data/log/miniserv.log /var/webmin/miniserv.log
vi etc/logrotate.conf /media/data/log/<syslog.log> { # one line for each generated logfile here maxsize 1024k weekly rotate 9 postrotate killall -HUP syslogd # another killall here for each generated log endscript }
Re: PopoPlug Memory Limitations on Upgrading February 15, 2021 06:49PM |
Admin Registered: 13 years ago Posts: 18,898 |
/var/log/messages { missingok size 256k su root root create 0660 root root rotate 8 compress } /tmp/rsync.backup.daily.log { missingok size 256k su root root create 0660 root root rotate 4 compress }
# ps -deaf | grep syslog root 1634 1 0 15:38 ? 00:00:00 /sbin/syslogd -C128
Re: PopoPlug Memory Limitations on Upgrading May 02, 2021 11:19PM |
Registered: 7 years ago Posts: 7 |
Re: PopoPlug Memory Limitations on Upgrading May 02, 2021 11:33PM |
Registered: 7 years ago Posts: 7 |