-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
系统整体响应很慢, Btrfs文件系统(ext4文件系统也是响应慢), zstd:6压缩
ssh输入密码后验证需要超过一秒, 像是sudo nala --help命令需要等待很久,负载只有一个核心是满的
我之前有个玩客云,在旧版本的内核时响应没问题,但是使用新版本内核也会响应慢,这是硬件问题吗?
bonnie++测试emmc4G文件大小
------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
/sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
4G 97k 99 106m 32 98.0m 46 755k 99 480m 93 1770 284
87951us 615ms 575ms 16247us 17683us 9472us
------Sequential Create------ --------Random Create--------
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
16 16384 54 +++++ +++ 16384 96 16384 56 +++++ +++ 16384 96
555us 733us 1454us 397us 123us 2810us
读写速度正常,但是延迟很高600ms,使用默认参数测试,块写入只有3MB,cpu使用了3%,延迟大约3000ms
strace追踪nala --help报告
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
30.03 0.013393 5 2298 401 newfstatat
13.44 0.005992 5 1029 read
12.11 0.005399 8 603 5 openat
11.76 0.005245 3 1511 469 ioctl
6.00 0.002677 4 599 close
5.98 0.002665 2 1054 fstat
5.51 0.002458 9 249 mmap
4.58 0.002041 2 946 3 lseek
4.00 0.001784 10 177 munmap
2.40 0.001071 13 80 mprotect
1.98 0.000881 6 130 getdents64
1.37 0.000613 9 63 brk
0.47 0.000208 3 66 rt_sigaction
0.20 0.000090 4 19 futex
0.09 0.000041 5 7 5 readlinkat
0.04 0.000020 5 4 fcntl
0.02 0.000010 2 5 write
0.02 0.000007 1 6 4 prctl
0.00 0.000002 1 2 gettid
0.00 0.000000 0 1 getcwd
0.00 0.000000 0 1 epoll_create1
0.00 0.000000 0 1 1 faccessat
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 1 set_robust_list
0.00 0.000000 0 4 rt_sigprocmask
0.00 0.000000 0 2 getuid
0.00 0.000000 0 1 geteuid
0.00 0.000000 0 1 getgid
0.00 0.000000 0 1 getegid
0.00 0.000000 0 1 execve
0.00 0.000000 0 1 prlimit64
0.00 0.000000 0 3 getrandom
0.00 0.000000 0 1 rseq
------ ----------- ----------- --------- --------- ----------------
100.00 0.044597 5 8868 888 totalPRETTY_NAME="Armbian OS 25.11.0 trixie"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.2
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian OS 25.11.0 trixie"
DTB:
LINUX=/zImage
INITRD=/uInitrd
FDT=/dtb/amlogic/meson-gxl-s905x-p212.dtb
APPEND=root=UUID=818f2140-e661-4b23-85f7-e724f0996db4 rootflags=compress=zstd:6 rootfstype=btrfs console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 max_loop=128 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1