|
Apt speed problems after 6.17.7 on LG N1T1 NAS November 11, 2025 05:49AM |
Registered: 8 years ago Posts: 60 |
apt autoremove rm -f /var/cache/apt/*.bin rm -rf /var/lib/apt/lists/* apt clean apt updateBut it did not help.
Model: LG N1T1 Linux version 6.16.5-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 PREEMPT Thu Sep 4 15:49:06 PDT 2025 Debian 13.1
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 11, 2025 02:19PM |
Admin Registered: 15 years ago Posts: 20,127 |
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 11, 2025 02:45PM |
Admin Registered: 15 years ago Posts: 20,127 |
Quote
https://forum.doozan.com/read.php?2,12096
- General kernel upgrade.
- This kernel is now running with the non-preempt scheduler. This is to avoid a kernel bug that was introduced recently in mainline Linux. Also, the performance should improve a little bit for Kirkwood boxes running as servers.
- Update the DTS for Promwad Thin Client
- Update the DTS for Synology DS112v10j
- See Important Note in Step 5 about uInitrd size
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 11, 2025 07:16PM |
Admin Registered: 15 years ago Posts: 20,127 |
1.2GHz CPU, 128MB RAM, 1Gbs Ethernet Linux version 6.17.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 Mon Nov 3 16:38:22 PST 2025 USB 2.0 rootfs
800 MHz CPU, 128 MB RAM, 1Gbs Ethernet Linux version 6.17.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 Mon Nov 3 16:38:22 PST 2025 USB 3.0 rootfs
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 12, 2025 04:11PM |
Admin Registered: 15 years ago Posts: 20,127 |
800 MHz CPU, 128 MB RAM, 1Gbs Ethernet Linux version 6.17.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 Mon Nov 3 16:38:22 PST 2025 USB 2.0 rootfs 2GB swapfile on HDD
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 13, 2025 12:09AM |
Registered: 8 years ago Posts: 60 |
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS November 13, 2025 02:03PM |
Admin Registered: 15 years ago Posts: 20,127 |
Quote
Memory & Swap Settings
Tuning for low RAM boxes - System and HDD performance. Also read several posts after for setups for logging to RAM.
logrotate examples
How to create and use a Swap file
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS February 26, 2026 01:03PM |
Registered: 8 years ago Posts: 60 |
ionice -c3 nice -n 19 or ionice -c2 -n7 nice -n 19 or just ionice nice -n 19
ionice -c2 -n7 nice -n 19 apt-get -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 update
APT::Install-Recommends "0"; APT::Install-Suggests "0"; Acquire::Languages "none"; Acquire::PDiffs "0"; Dpkg::Use-Pty "0";
ionice -c2 -n7 nice -n 19 apt-get -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 update ionice -c2 -n7 nice -n 19 apt-get -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 install -y zram-tools
swapoff /dev/zram0 echo 1 > /sys/block/zram0/reset echo lzo-rle > /sys/block/zram0/comp_algorithm echo $((768*1024*1024)) > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 100 /dev/zram0
swapon --show zramctl free -h
modprobe zram echo 1 > /sys/block/zram0/reset echo lzo-rle > /sys/block/zram0/comp_algorithm echo $((768*1024*1024)) > /sys/block/zram0/disksize mkswap /dev/zram0 swapon -p 100 /dev/zram0
sysctl vm.swappiness=10
vm.swappiness=10
grep -R --line-number -E '^(deb|deb-src)' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
dpkg --print-architecture
dpkg --print-foreign-architectures
dpkg --remove-architecture armhf
rm -rf /var/lib/apt/lists/* apt-get clean
ps aux --sort=-%mem | head -n 15
service glances stop service fail2ban stop service nscd stop service nmbd stop service atop stop service atopacct stop service smbd stop service ntp stop Run apt… # Then: service ntp start service smbd start service atopacct start service atop start service nmbd start service nscd start service fail2ban start service glances start
mkdir -p /var/lock/subsys
service glances stop service fail2ban stop service nscd stop service nmbd stop service atop stop service atopacct stop service smbd stop service ntp stop ionice -c2 -n7 nice -n 19 apt-get -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 update ionice -c2 -n7 nice -n 19 apt-get -y -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 upgrade service ntp start service smbd start service atopacct start service atop start service nmbd start service nscd start service fail2ban start service glances start
# Stop services ionice -c2 -n7 nice -n 19 apt-get update ionice -c2 -n7 nice -n 19 apt-get -y upgrade # Start services
#!/bin/sh set -eu echo . echo === Stopping services === service glances stop || true service fail2ban stop || true service nscd stop || true service nmbd stop || true # These two do not say anything, so I force some info if service atop stop; then echo "Stopping atop = OK"; else echo "Stopping atop = FAILED"; fi if service atopacct stop; then echo "Stopping atopacct = OK"; else echo "Stopping atopacct = FAILED"; fi service smbd stop || true service ntp stop || true echo . echo === Running apt-get update === ionice -c2 -n7 nice -n 19 apt-get -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 update echo . echo === Running apt-get upgrade === ionice -c2 -n7 nice -n 19 apt-get -y -o Acquire::Languages=none -o Acquire::PDiffs=0 -o Dpkg::Use-Pty=0 upgrade | tee /root/apt-upgrade.log echo . echo === Running apt-get autoremove and clean === apt-get -y autoremove --purge | tee -a /root/apt-upgrade.log apt-get clean # Just in case, create folder with -p = no error if existing mkdir -p /var/lock/subsys echo . echo === Starting services === service ntp start || true service smbd start || true # These two do not say anything, so I force some info if service atopacct start; then echo "Starting atopacct = OK"; else echo "Starting atopacct = FAILED"; fi if service atop start; then echo "Starting atop = OK"; else echo "Starting atop = FAILED"; fi service nmbd start || true service nscd start || true service fail2ban start || true service glances start || true date >> /root/apt-upgrade.log echo '**** CHECKING FOR UPDATE-INITRAMFS! **********' echo '**** This will look for things like this:' echo 'update-initramfs: Generating /boot/initrd.img-6.18.10-kirkwood-tld-1' echo ' ' echo '**** IF FOUND, you will have to do this (otherwies, do nothing):' echo ' ' echo 'cd /boot' echo 'mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.18.10-kirkwood-tld-1 -d initrd.img-6.18.10-kirkwood-tld-1 uInitrd ' echo '(check what version you have!)' echo ' ' echo '**** Checking (if you see nothing here under, nothing is found)....' grep update-initramfs /root/apt-upgrade.log
root@debian:~# time ./run-apt-upgrade.sh . === Stopping services === Stopping Glances server: glances . Stopping Authentication failure monitor: fail2ban. Stopping Name Service Cache Daemon: nscd. Stopping NetBIOS name server: nmbd. Stopping atop = OK Stopping atopacct = OK Stopping Samba SMB/CIFS daemon: smbd. Stopping NTP server: ntpd. . === Running apt-get update === Hit:1 http://deb.debian.org/debian stable InRelease Hit:2 http://deb.debian.org/debian-security stable-security InRelease Hit:3 http://deb.debian.org/debian stable-updates InRelease Reading package lists... Done . === Running apt-get upgrade === Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. . === Running apt-get autoremove and clean === Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. . === Starting services === Starting NTP server: ntpd2026-03-02T10:49:09 ntpd[2367]: INIT: ntpd ntpsec-1.2.3: Starting 2026-03-02T10:49:09 ntpd[2367]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106 . Starting Samba SMB/CIFS daemon: smbd. Starting atopacct = OK Starting atop = OK Starting NetBIOS name server: nmbd. Starting Name Service Cache Daemon: nscd. Starting Authentication failure monitor: fail2ban. Starting Glances server: glances . **** CHECKING FOR UPDATE-INITRAMFS! ********** **** This will look for things like this: update-initramfs: Generating /boot/initrd.img-6.18.10-kirkwood-tld-1 **** IF FOUND, you will have to do this (otherwies, do nothing): cd /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.18.10-kirkwood-tld-1 -d initrd.img-6.18.10-kirkwood-tld-1 uInitrd (check what version you have!) **** Checking (if you see nothing here under, nothing is found).... real 4m21.498s user 0m52.053s sys 0m41.530s root@debian:~#
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS February 26, 2026 02:18PM |
Admin Registered: 15 years ago Posts: 20,127 |
|
Re: Apt speed problems after 6.17.7 on LG N1T1 NAS February 27, 2026 03:08AM |
Registered: 8 years ago Posts: 60 |