最近编译的x86版本启动后空载内存占用翻倍
1.关于你要提交的问题
昨天编译了master最新代码,与2022.10.08号编译的对比,启动后空载内存占用由100MB左右变为了300MB左右,编译配置没变。
此内存占用情况是否正常?
build 2022.10.08 @ OpenWrt R22.9.1 / LuCI Master (git-22.279.28429-0cb5c5c)
root@OpenWrt:~# free
total used free shared buff/cache available
Mem: 1011020 112716 611176 15068 287128 828288
Swap: 0 0 0
root@OpenWrt:~#
build 2023.04.13 @ OpenWrt R23.4.1 / LuCI Master (git-23.102.51528-077696d)
root@OpenWrt:~# free
total used free shared buff/cache available
Mem: 984316 348800 537472 3896 98044 575992
Swap: 0 0 0
root@OpenWrt:~#
(2) 路由器型号和固件版本
A:PVE虚拟化
我这里也有类似问题,但我看到进程是说Xray线程造成的,不知道你是不是也这样
top 看看哪个进程占用了内存
22180 1 root S 5339m 540% 2% /tmp/etc/passwall/bin/xray run -c /tmp/etc/passwall/TCP_UDP_SOCKS.json 14607 1 root S 798m 81% 0% /usr/bin/AdGuardHome/AdGuardHome -c /etc/config/AdGuardHome.yaml -w /tmp/AdGuardHome -p 3000 -l /tmp/AdGuardHome.log 2113 1 root S 12656 1% 0% /usr/sbin/smartdns -f -c /var/etc/smartdns/smartdns.conf
top 看看哪个进程占用了内存
Xray~~
@coolsnowwolf
我这里情况还有所不同,新编译的版本启动后未开启其他服务,空载占用就很高
build 2023.04.13 @ OpenWrt R23.4.1 / LuCI Master (git-23.102.51528-077696d)
启动后未开启其他服务,空载内存情况:
root@OpenWrt:~# free -h
total used free shared buff/cache available
Mem: 984316 345516 540692 3916 98108 579276
Swap: 0 0 0
root@OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1292 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 IW< [rcu_gp]
4 root 0 IW< [rcu_par_gp]
5 root 0 IW< [slub_flushwq]
6 root 0 IW< [netns]
8 root 0 IW< [kworker/0:0H-kb]
10 root 0 IW< [mm_percpu_wq]
11 root 0 SW [rcu_tasks_trace]
12 root 0 SW [ksoftirqd/0]
13 root 0 IW [rcu_sched]
14 root 0 SW [migration/0]
15 root 0 SW [cpuhp/0]
16 root 0 SW [cpuhp/1]
17 root 0 SW [migration/1]
18 root 0 SW [ksoftirqd/1]
20 root 0 IW< [kworker/1:0H-ev]
21 root 0 IW< [inet_frag_wq]
22 root 0 IW [kworker/0:1-rcu]
23 root 0 IW [kworker/0:2-mm_]
24 root 0 SW [oom_reaper]
25 root 0 IW< [writeback]
26 root 0 SW [kcompactd0]
34 root 0 IW< [pencrypt_serial]
35 root 0 IW< [pdecrypt_serial]
36 root 0 IW< [cryptd]
42 root 0 IW< [kintegrityd]
43 root 0 IW< [kblockd]
44 root 0 IW< [blkcg_punt_bio]
45 root 0 IW< [ata_sff]
46 root 0 SW [watchdogd]
48 root 0 IW< [kworker/1:1H-kb]
55 root 0 SW [kswapd0]
179 root 0 IW< [kthrotld]
253 root 0 IW< [acpi_thermal_pm]
322 root 0 IW< [nvme-wq]
326 root 0 IW< [nvme-reset-wq]
328 root 0 IW< [nvme-delete-wq]
343 root 0 SW [scsi_eh_0]
344 root 0 IW< [scsi_tmf_0]
348 root 0 SW [scsi_eh_1]
349 root 0 IW< [scsi_tmf_1]
350 root 0 IW< [mpt_poll_0]
366 root 0 IW< [mpt/0]
367 root 0 SW [scsi_eh_2]
368 root 0 IW< [scsi_tmf_2]
428 root 0 IW< [mld]
429 root 0 IW< [ipv6_addrconf]
431 root 0 IW [kworker/1:2-eve]
455 root 0 IW< [kworker/0:1H-kb]
469 root 0 IW< [uas]
542 root 0 SW [f2fs_ckpt-7:0]
543 root 0 SW [f2fs_flush-7:0]
544 root 0 SW [f2fs_gc-7:0]
729 ubus 956 S /sbin/ubusd
731 root 1136 S /bin/ash --login
765 root 812 S /sbin/urngd
835 root 0 IW< [ena]
861 root 0 IW< [ixgbe]
884 root 0 IW< [cryptodev_queue]
907 root 0 IW< [i40e]
913 root 0 IW< [iavf]
927 root 0 IW< [mlx4]
1014 root 0 IW< [bnx2x]
1015 root 0 IW< [bnx2x_iov]
2040 logd 992 S /sbin/logd -S 64
2092 root 1128 S /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
2539 root 1288 S /sbin/netifd
2849 root 4752 S /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -I cgi-bin/luci -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 0.0.0.0:443 -s [::]:
2945 root 940 S /usr/sbin/vsftpd -olisten_address=0.0.0.0 -olisten=YES -olisten_ipv6=NO /var/run/vsftpd/vsftpd.conf
2995 root 1356 S /usr/bin/dbus-daemon --system
3047 root 1156 SN /usr/sbin/nlbwmon -o /var/lib/nlbwmon -b 16777216 -i 4h -r 30s -p /usr/share/nlbwmon/protocols -G 10 -I 1 -L 10000 -Z -s 192.168.0.0/16 -s 172.16.0.0/12 -s 10.0.0.0/8 -s 192.168.109.5/24 -s fd81:d67c:b
3101 nobody 1644 S avahi-daemon: running [OpenWrt.local]
3810 root 772 S /usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -L 0.0.0.0:1688
4365 root 936 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 192.168.109.5:22 -p fd81:d67c:b0cb::1:22 -K 300 -T 3
8096 root 1236 S /usr/bin/oafd
8265 root 2160 S {ntpd} /sbin/ujail -t 5 -n ntpd -U ntp -G ntp -C /etc/capabilities/ntpd.json -c -u -r /bin/ubus -r /usr/bin/env -r /usr/bin/jshn -r /usr/sbin/ntpd-hotplug -r /usr/share/libubox/jshn.sh -- /usr/sbin/ntp
8302 ntp 1124 S /usr/sbin/ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p ntp.aliyun.com -p time1.cloud.tencent.com -p time.ustc.edu.cn -p cn.pool.ntp.org
8360 root 0 IW [kworker/1:3-eve]
8439 root 1124 S udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -x hostname:OpenWrt -C -R -O 121
9839 root 5544 R /usr/bin/ttyd -i br-lan /bin/login
10018 root 784 S /usr/bin/wsdd2 -i br-lan -N OpenWrt -G WORKGROUP -b vendor:vmware-inc-vmware-virtual-platform,model:Intel(R)_Core(TM)_i5-9500_CPU_@_3.00GHz_
10492 root 2160 S {dnsmasq} /sbin/ujail -t 5 -n dnsmasq -u -l -r /bin/ubus -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r /tmp/hosts -r
10499 dnsmasq 2152 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
10688 root 1132 S /usr/sbin/crond -f -c /etc/crontabs -l 5
11124 root 27452 S /usr/sbin/smbd -F
11125 root 16764 S /usr/sbin/nmbd -F
11156 root 26148 S {smbd-notifyd} /usr/sbin/smbd -F
11157 root 26140 S {cleanupd} /usr/sbin/smbd -F
38523 root 1144 S /bin/login
38534 root 1140 S -ash
40716 root 0 IW [kworker/u256:1-]
43097 root 0 IW [kworker/u256:2-]
47843 root 1132 R ps
root@OpenWrt:~#
Mem: 445060K used, 539256K free, 3916K shrd, 652K buff, 83824K cached
CPU: 0% usr 0% sys 0% nic 100% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.00 0.00 1/94 48051
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1 0 root S 1292 0% 0% /sbin/procd
11124 1 root S 27452 3% 0% /usr/sbin/smbd -F
11156 11124 root S 26148 3% 0% {smbd-notifyd} /usr/sbin/smbd -F
11157 11124 root S 26140 3% 0% {cleanupd} /usr/sbin/smbd -F
11125 1 root S 16764 2% 0% /usr/sbin/nmbd -F
9839 1 root S 5476 1% 0% /usr/bin/ttyd -i br-lan /bin/login
2849 1 root S 4752 0% 0% /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -I cgi-bin/luci -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 0.0.0.
8265 1 root S 2160 0% 0% {ntpd} /sbin/ujail -t 5 -n ntpd -U ntp -G ntp -C /etc/capabilities/ntpd.json -c -u -r /bin/ubus -r /usr/bin/env -r /usr/bin/jshn -r /usr/sbin/ntpd-hotplug -r /usr/share/libubox/jshn.sh --
10492 1 root S 2160 0% 0% {dnsmasq} /sbin/ujail -t 5 -n dnsmasq -u -l -r /bin/ubus -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d -r
10499 10492 dnsmasq S 2152 0% 0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
3101 1 nobody S 1644 0% 0% avahi-daemon: running [OpenWrt.local]
2995 1 root S 1356 0% 0% /usr/bin/dbus-daemon --system
2539 1 root S 1288 0% 0% /sbin/netifd
8096 1 root S 1236 0% 0% /usr/bin/oafd
3047 1 root SN 1156 0% 0% /usr/sbin/nlbwmon -o /var/lib/nlbwmon -b 16777216 -i 4h -r 30s -p /usr/share/nlbwmon/protocols -G 10 -I 1 -L 10000 -Z -s 192.168.0.0/16 -s 172.16.0.0/12 -s 10.0.0.0/8 -s 192.168.109.5/24
38534 38523 root S 1144 0% 0% -ash
38523 9839 root S 1144 0% 0% /bin/login
48050 38534 root R 1140 0% 0% top
731 1 root S 1136 0% 0% /bin/ash --login
10688 1 root S 1132 0% 0% /usr/sbin/crond -f -c /etc/crontabs -l 5
2092 1 root S 1128 0% 0% /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
8302 8265 ntp S 1124 0% 0% /usr/sbin/ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p ntp.aliyun.com -p time1.cloud.tencent.com -p time.ustc.edu.cn -p cn.pool.ntp.org
8439 2539 root S 1124 0% 0% udhcpc -p /var/run/udhcpc-eth1.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth1 -x hostname:OpenWrt -C -R -O 121
2040 1 logd S 992 0% 0% /sbin/logd -S 64
729 1 ubus S 956 0% 0% /sbin/ubusd
2945 1 root S 940 0% 0% /usr/sbin/vsftpd -olisten_address=0.0.0.0 -olisten=YES -olisten_ipv6=NO /var/run/vsftpd/vsftpd.conf
4365 1 root S 936 0% 0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 192.168.109.5:22 -p fd81:d67c:b0cb::1:22 -K 300 -T 3
765 1 root S 812 0% 0% /sbin/urngd
10018 1 root S 784 0% 0% /usr/bin/wsdd2 -i br-lan -N OpenWrt -G WORKGROUP -b vendor:vmware-inc-vmware-virtual-platform,model:Intel(R)_Core(TM)_i5-9500_CPU_@_3.00GHz_
3810 1 root S 772 0% 0% /usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -L 0.0.0.0:1688
8360 2 root IW 0 0% 0% [kworker/1:3-eve]
23 2 root IW 0 0% 0% [kworker/0:2-mm_]
13 2 root IW 0 0% 0% [rcu_sched]
26 2 root SW 0 0% 0% [kcompactd0]
12 2 root SW 0 0% 0% [ksoftirqd/0]
18 2 root SW 0 0% 0% [ksoftirqd/1]
17 2 root SW 0 0% 0% [migration/1]
14 2 root SW 0 0% 0% [migration/0]
544 2 root SW 0 0% 0% [f2fs_gc-7:0]
542 2 root SW 0 0% 0% [f2fs_ckpt-7:0]
40716 2 root IW 0 0% 0% [kworker/u256:1-]
455 2 root IW< 0 0% 0% [kworker/0:1H-kb]
48 2 root IW< 0 0% 0% [kworker/1:1H-kb]
22 2 root IW 0 0% 0% [kworker/0:1-rcu]
431 2 root IW 0 0% 0% [kworker/1:2-eve]
343 2 root SW 0 0% 0% [scsi_eh_0]
43097 2 root IW 0 0% 0% [kworker/u256:2-]
348 2 root SW 0 0% 0% [scsi_eh_1]
2 0 root SW 0 0% 0% [kthreadd]
429 2 root IW< 0 0% 0% [ipv6_addrconf]
428 2 root IW< 0 0% 0% [mld]
367 2 root SW 0 0% 0% [scsi_eh_2]
350 2 root IW< 0 0% 0% [mpt_poll_0]
469 2 root IW< 0 0% 0% [uas]
543 2 root SW 0 0% 0% [f2fs_flush-7:0]
349 2 root IW< 0 0% 0% [scsi_tmf_1]
^C366 2 root IW< 0 0% 0% [mpt/0]
build 2022.10.08 @ OpenWrt R22.9.1 / LuCI Master (git-22.279.28429-0cb5c5c)
此为正在使用的版本,开启了pppoe拨号,ddns,passw???,等服务,内存比新编译的版本内存占用更低
root@OpenWrt:~# free
total used free shared buff/cache available
Mem: 1011020 110820 781460 18232 118740 827572
Swap: 0 0 0
root@OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1248 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 IW< [rcu_gp]
4 root 0 IW< [rcu_par_gp]
5 root 0 IW< [slub_flushwq]
6 root 0 IW< [netns]
8 root 0 IW< [kworker/0:0H-ev]
10 root 0 IW< [kworker/0:1H-ev]
11 root 0 IW< [mm_percpu_wq]
12 root 0 SW [rcu_tasks_trace]
13 root 0 SW [ksoftirqd/0]
14 root 0 IW [rcu_sched]
15 root 0 SW [migration/0]
16 root 0 SW [cpuhp/0]
17 root 0 SW [cpuhp/1]
18 root 0 SW [migration/1]
19 root 0 SW [ksoftirqd/1]
20 root 0 IW [kworker/1:0-rcu]
21 root 0 IW< [kworker/1:0H-ev]
22 root 0 SW [cpuhp/2]
23 root 0 SW [migration/2]
24 root 0 SW [ksoftirqd/2]
26 root 0 IW< [kworker/2:0H-ev]
27 root 0 SW [cpuhp/3]
28 root 0 SW [migration/3]
29 root 0 SW [ksoftirqd/3]
31 root 0 IW< [kworker/3:0H-ev]
32 root 0 IW< [inet_frag_wq]
33 root 0 IW [kworker/1:1-eve]
34 root 0 SW [oom_reaper]
35 root 0 IW< [writeback]
36 root 0 SW [kcompactd0]
43 root 0 IW< [pencrypt_serial]
44 root 0 IW< [pdecrypt_serial]
45 root 0 IW [kworker/2:1-eve]
46 root 0 IW< [cryptd]
52 root 0 IW< [kintegrityd]
53 root 0 IW< [kblockd]
54 root 0 IW< [blkcg_punt_bio]
55 root 0 IW [kworker/0:1-mm_]
56 root 0 IW< [ata_sff]
57 root 0 SW [watchdogd]
60 root 0 IW< [kworker/2:1H-ev]
77 root 0 SW [kswapd0]
89 root 0 IW [kworker/3:1-eve]
91 root 0 IW< [kthrotld]
103 root 0 IW< [acpi_thermal_pm]
185 root 0 SW [scsi_eh_0]
196 root 0 IW< [scsi_tmf_0]
200 root 0 IW< [kworker/3:1H-ev]
210 root 0 IW< [nvme-wq]
213 root 0 IW< [nvme-reset-wq]
216 root 0 IW< [nvme-delete-wq]
231 root 0 SW [scsi_eh_1]
232 root 0 IW< [scsi_tmf_1]
234 root 0 SW [scsi_eh_2]
237 root 0 IW< [scsi_tmf_2]
290 root 0 IW< [vfio-irqfd-clea]
338 root 0 IW [kworker/2:2-eve]
341 root 0 IW< [kworker/1:1H-ev]
347 root 0 IW< [mld]
348 root 0 IW< [ipv6_addrconf]
371 root 0 IW [kworker/0:2-eve]
388 root 0 IW [kworker/3:2-eve]
398 root 0 IW< [uas]
475 root 0 SW [f2fs_ckpt-7:0]
476 root 0 SW [f2fs_flush-7:0]
477 root 0 SW [f2fs_discard-7:]
478 root 0 SW [f2fs_gc-7:0]
527 root 0 IW [kworker/u8:1-lo]
697 ubus 932 S /sbin/ubusd
699 root 732 S /sbin/askfirst /usr/libexec/login.sh
753 root 0 IW< [ena]
765 root 0 IW [kworker/u8:2-ev]
769 root 0 IW< [ixgbe]
792 root 0 IW< [cryptodev_queue]
815 root 0 IW< [i40e]
820 root 0 IW< [iavf]
838 root 0 IW< [mlx4]
923 root 0 IW< [bnx2x]
924 root 0 IW< [bnx2x_iov]
1119 logd 976 S /sbin/logd -S 64
1166 root 1104 S /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
1392 root 0 IW< [xt_FULLCONENAT]
1647 root 1260 S /sbin/netifd
1814 root 1108 S sleep 300
1859 root 1100 S /usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan +ipv6 set AUTOIPV6=1 nodefaultroute usepeerdns maxfail 1 user ?????? password ?????? ip-up-script /lib/netifd/ppp-up ipv6-up-script /lib/netifd/ppp6
1992 root 4728 S /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -I cgi-bin/luci -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 0.0.0.0:443 -s [::]:443
2072 root 1340 S /usr/bin/dbus-daemon --system
2135 root 1220 SN /usr/sbin/nlbwmon -o /var/lib/nlbwmon -b 16777216 -i 4h -r 30s -p /usr/share/nlbwmon/protocols -G 10 -I 1 -L 10000 -Z -s 192.168.0.0/16 -s 172.16.0.0/12 -s 10.0.0.0/8 -s 10.0.0.1/24 -s fd29:8739:55cf::1/60
2183 nobody 1772 S avahi-daemon: running [OpenWrt.local]
2273 root 920 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 10.0.0.1:22 -p fd29::::1:22 -K 300 -T 3
2314 root 756 S /usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -L 0.0.0.0:1688
2444 root 1112 S sleep 300
2710 root 940 D /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 10.0.0.1:22 -p fd29::::1:22 -K 300 -T 3 -2 8
2783 root 1108 S sleep 1m
2792 root 1120 S -ash
2839 root 1108 S sleep 58s
2876 root 0 Z [check_pppoe.sh]
2904 root 1116 R ps
3587 root 27616 S /usr/sbin/smbd -F
3588 root 16720 S /usr/sbin/nmbd -F
3643 root 1108 S< ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p ntp.aliyun.com -p time1.cloud.tencent.com -p time.ustc.edu.cn -p cn.pool.ntp.org
3898 root 26104 S {smbd-notifyd} /usr/sbin/smbd -F
3899 root 26096 S {cleanupd} /usr/sbin/smbd -F
4524 root 5308 S /usr/bin/ttyd -i br-lan /bin/login
5800 root 1632 S {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S ???? -- start
5801 root 1604 S {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S ??? -- start
9345 root 2080 S /tmp/etc/????/bin/??-local -c /tmp/etc/????/????.json -v
9352 root 848 S obfs-local
9411 root 3152 S /tmp/etc/????/bin/??-redir -c /tmp/etc/????/TCP_UDP.json -v
9415 root 1056 S obfs-local
9479 root 756 S /tmp/etc/???/bin/dns2tcp -L 127.0.0.1#15353 -R 1.1.1.1#53 -v
10751 dnsmasq 4728 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
10864 root 1124 S {monitor.sh} /bin/sh /usr/share/???/monitor.sh
10870 root 1180 S {test.sh} /bin/sh /usr/share/????/test.sh
10933 root 1116 S crond -f -c /etc/crontabs -l 5
17452 root 0 IW [kworker/u8:3-ev]
22900 root 0 RW [kworker/u8:0-ev]
root@OpenWrt:~#
Mem: 228272K used, 782748K free, 18260K shrd, 9232K buff, 97264K cached
CPU: 0% usr 0% sys 0% nic 97% idle 0% io 0% irq 0% sirq
Load average: 0.10 0.06 0.01 1/119 5164
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
3587 1 root S 27616 3% 0% /usr/sbin/smbd -F
3898 3587 root S 26104 3% 0% {smbd-notifyd} /usr/sbin/smbd -F
3899 3587 root S 26096 3% 0% {cleanupd} /usr/sbin/smbd -F
3588 1 root S 16720 2% 0% /usr/sbin/nmbd -F
4524 1 root S 5308 1% 0% /usr/bin/ttyd -i br-lan /bin/login
10751 1 dnsmasq S 4728 0% 0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
1992 1 root S 4728 0% 0% /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 50 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -I cgi-bin/luci -C /etc/uhttpd.crt -K /etc/uhttpd.key -s 0.0.0.0:443
9411 1 root S 3152 0% 0% /tmp/etc/????/bin/ss-redir -c /tmp/etc/????/TCP_UDP.json -v
9345 1 root S 2080 0% 0% /tmp/etc/????/bin/ss-local -c /tmp/etc/????/????.json -v
2183 1 nobody S 1772 0% 0% avahi-daemon: running [OpenWrt.local]
5800 1 root S 1632 0% 0% {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S ???? -- start
5801 1 root S 1604 0% 0% {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -v 0 -S ???? -- start
2072 1 root S 1340 0% 0% /usr/bin/dbus-daemon --system
1647 1 root S 1260 0% 0% /sbin/netifd
1 0 root S 1248 0% 0% /sbin/procd
2135 1 root SN 1220 0% 0% /usr/sbin/nlbwmon -o /var/lib/nlbwmon -b 16777216 -i 4h -r 30s -p /usr/share/nlbwmon/protocols -G 10 -I 1 -L 10000 -Z -s 192.168.0.0/16 -s 172.16.0.0/12 -s 10.0.0.0/8 -s 10.0.0.1/24 -s fd29:873
10870 1 root S 1180 0% 0% {test.sh} /bin/sh /usr/share/????/test.sh
10864 1 root S 1124 0% 0% {monitor.sh} /bin/sh /usr/share/????/monitor.sh
5164 2792 root R 1124 0% 0% top
2792 2710 root S 1120 0% 0% -ash
10933 1 root S 1116 0% 0% crond -f -c /etc/crontabs -l 5
4996 5800 root S 1112 0% 0% sleep 300
3643 1 root S< 1108 0% 0% ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p ntp.aliyun.com -p time1.cloud.tencent.com -p time.ustc.edu.cn -p cn.pool.ntp.org
5057 10864 root S 1108 0% 0% sleep 58s
5135 10870 root S 1108 0% 0% sleep 1m
4372 5801 root S 1108 0% 0% sleep 300
1166 1 root S 1104 0% 0% /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
1859 1647 root S 1100 0% 0% /usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan +ipv6 set AUTOIPV6=1 nodefaultroute usepeerdns maxfail 1 user ????? password ?????? ip-up-script /lib/netifd/ppp-up ipv6-up-script /l
9415 9411 root S 1024 0% 0% obfs-local
1119 1 logd S 976 0% 0% /sbin/logd -S 64
2710 2273 root S 940 0% 0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 10.0.0.1:22 -p fd29:8739:55cf::1:22 -K 300 -T 3 -2 8
697 1 ubus S 932 0% 0% /sbin/ubusd
2273 1 root S 920 0% 0% /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 10.0.0.1:22 -p fd29::::1:22 -K 300 -T 3
9352 9345 root S 848 0% 0% obfs-local
9479 1 root S 756 0% 0% /tmp/etc/????/bin/dns2tcp -L 127.0.0.1#15353 -R 1.1.1.1#53 -v
2314 1 root S 756 0% 0% /usr/bin/vlmcsd -i /etc/vlmcsd/vlmcsd.ini -L 0.0.0.0:1688
699 1 root S 732 0% 0% /sbin/askfirst /usr/libexec/login.sh
14 2 root IW 0 0% 0% [rcu_sched]
24 2 root SW 0 0% 0% [ksoftirqd/2]
13 2 root SW 0 0% 0% [ksoftirqd/0]
19 2 root SW 0 0% 0% [ksoftirqd/1]
29 2 root SW 0 0% 0% [ksoftirqd/3]
33 2 root IW 0 0% 0% [kworker/1:1-eve]
45 2 root IW 0 0% 0% [kworker/2:1-eve]
55 2 root IW 0 0% 0% [kworker/0:1-eve]
36 2 root SW 0 0% 0% [kcompactd0]
388 2 root IW 0 0% 0% [kworker/3:2-mm_]
10 2 root IW< 0 0% 0% [kworker/0:1H-ev]
60 2 root IW< 0 0% 0% [kworker/2:1H-ev]
^C341 2 root IW< 0 0% 0% [kworker/1:1H-ev]
@coolsnowwolf
你好,
~~我这也遇到类似的问题,新编译的固件(应用尽可能精简),但是启用就占用300多M的内存。请问这可能是哪些地方出现的问题呢?~~
~~*更新:我全默认配置又编译了一次,结果还是一样。~~
~~*更新2:我切换到20230609和20220401两个分支重新编译,结果任然一样。这就奇怪了,我下载release页面的基于20220401分支编译的[R23.4.1](https://github.com/coolsnowwolf/lede/releases/tag/20220401)版本开机占用只有100M~~
***更新3:问题只有在vmware出现,直接刷在物理机上运行没有问题
以下是系统内存占用以及运行中的进程信息供参考,谢谢。
运行环境:vmware 虚拟机
OpenWrt login: root
Password:
BusyBox v1.36.0 (2023-07-08 13:10:01 UTC) built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___|
\ \ DE /
\ LE \ / -------------------------------------------
\ DE \ / OpenWrt SNAPSHOT, r6098-710fec8fc
\________\/ -------------------------------------------
root@OpenWrt:~# free
total used free shared buff/cache available
Mem: 983100 336464 598592 592 48044 593996
Swap: 0 0 0
root@OpenWrt:~# ps
PID USER VSZ STAT COMMAND
1 root 1248 S /sbin/procd
2 root 0 SW [kthreadd]
3 root 0 IW< [rcu_gp]
4 root 0 IW< [rcu_par_gp]
5 root 0 IW< [slub_flushwq]
6 root 0 IW< [netns]
8 root 0 IW< [kworker/0:0H-ev]
10 root 0 IW< [mm_percpu_wq]
11 root 0 IW [rcu_tasks_kthre]
12 root 0 IW [rcu_tasks_trace]
13 root 0 SW [ksoftirqd/0]
14 root 0 IW [rcu_preempt]
15 root 0 SW [migration/0]
16 root 0 SW [cpuhp/0]
17 root 0 SW [cpuhp/1]
18 root 0 SW [migration/1]
19 root 0 SW [ksoftirqd/1]
21 root 0 IW< [kworker/1:0H-kb]
22 root 0 SW [cpuhp/2]
23 root 0 SW [migration/2]
24 root 0 SW [ksoftirqd/2]
26 root 0 IW< [kworker/2:0H-kb]
27 root 0 SW [cpuhp/3]
28 root 0 SW [migration/3]
29 root 0 SW [ksoftirqd/3]
30 root 0 IW [kworker/3:0-eve]
31 root 0 IW< [kworker/3:0H-ev]
32 root 0 SW [cpuhp/4]
33 root 0 SW [migration/4]
34 root 0 SW [ksoftirqd/4]
36 root 0 IW< [kworker/4:0H-ev]
37 root 0 SW [cpuhp/5]
38 root 0 SW [migration/5]
39 root 0 SW [ksoftirqd/5]
41 root 0 IW< [kworker/5:0H-kb]
42 root 0 SW [cpuhp/6]
43 root 0 SW [migration/6]
44 root 0 SW [ksoftirqd/6]
46 root 0 IW< [kworker/6:0H-ev]
47 root 0 SW [cpuhp/7]
48 root 0 SW [migration/7]
49 root 0 SW [ksoftirqd/7]
51 root 0 IW< [kworker/7:0H-kb]
52 root 0 IW< [inet_frag_wq]
53 root 0 IW [kworker/0:1-rcu]
54 root 0 IW [kworker/0:2-eve]
55 root 0 SW [oom_reaper]
56 root 0 IW< [writeback]
57 root 0 SW [kcompactd0]
58 root 0 IW< [pencrypt_serial]
59 root 0 IW< [pdecrypt_serial]
60 root 0 IW [kworker/2:1-rcu]
61 root 0 IW< [cryptd]
62 root 0 IW< [kintegrityd]
63 root 0 IW< [kblockd]
64 root 0 IW< [blkcg_punt_bio]
65 root 0 IW< [ata_sff]
66 root 0 SW [watchdogd]
68 root 0 IW< [kworker/0:1H-kb]
230 root 0 SW [kswapd0]
232 root 0 IW< [kthrotld]
236 root 0 IW [kworker/2:3-mm_]
238 root 0 IW [kworker/4:2-eve]
239 root 0 IW [kworker/4:3-eve]
285 root 0 IW [kworker/5:1-mpt]
307 root 0 IW< [acpi_thermal_pm]
312 root 0 SW [xenbus_probe]
357 root 0 SW [irq/24-vmw_vmci]
358 root 0 SW [irq/25-vmw_vmci]
359 root 0 SW [irq/26-vmw_vmci]
376 root 0 IW< [nvme-wq]
379 root 0 IW< [nvme-reset-wq]
382 root 0 IW< [nvme-delete-wq]
397 root 0 SW [scsi_eh_0]
398 root 0 IW< [scsi_tmf_0]
402 root 0 SW [scsi_eh_1]
403 root 0 IW< [scsi_tmf_1]
410 root 0 IW [kworker/u256:5-]
418 root 0 IW< [mpt_poll_0]
419 root 0 IW< [mpt/0]
420 root 0 IW [kworker/3:1-mm_]
422 root 0 IW [kworker/1:1-mm_]
423 root 0 IW [kworker/6:1-mm_]
424 root 0 IW [kworker/7:1-mm_]
425 root 0 SW [scsi_eh_2]
426 root 0 IW< [scsi_tmf_2]
431 root 0 IW [kworker/5:2-eve]
484 root 0 IW< [mld]
486 root 0 IW< [ipv6_addrconf]
487 root 0 IW< [kworker/4:1H-kb]
528 root 0 IW< [kworker/7:1H-kb]
530 root 0 IW< [kworker/1:1H-kb]
533 root 0 IW [kworker/1:2-eve]
538 root 0 IW< [uas]
543 root 0 IW< [kworker/5:1H-kb]
545 root 0 IW< [kworker/6:1H-kb]
557 root 0 IW< [kworker/2:1H-kb]
604 root 0 SW [f2fs_ckpt-7:0]
605 root 0 SW [f2fs_flush-7:0]
606 root 0 SW [f2fs_gc-7:0]
637 root 0 IW [kworker/7:2-eve]
787 root 0 IW< [kworker/3:1H-kb]
844 ubus 940 S /sbin/ubusd
846 root 748 S /sbin/askfirst /usr/libexec/login.sh
880 root 812 S /sbin/urngd
1005 root 0 IW [kworker/6:2-eve]
1069 root 0 IW< [cryptodev_queue]
1313 logd 992 S /sbin/logd -S 64
1365 root 1120 S /sbin/rpcd -s /var/run/ubus/ubus.sock -t 30
1706 root 1264 S /sbin/netifd
1766 root 1084 S /usr/sbin/odhcpd
1840 root 1128 S /usr/sbin/crond -f -c /etc/crontabs -l 5
1959 root 4760 S /usr/sbin/uhttpd -f -h /www -r OpenWrt -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:80 -p [::]:80 -I cgi-bin/luci -C /etc/uhttpd.crt -K /etc/uhttpd.k
2629 root 1048 SN /usr/sbin/nlbwmon -o /var/lib/nlbwmon -b 16777216 -i 4h -r 30s -p /usr/share/nlbwmon/protocols -G 10 -I 1 -L 10000 -Z -s 192.168.0.0/16 -s 172.16.0.0/12 -s 10.0.0.0/8 -s 192.
3078 root 2160 S {dnsmasq} /sbin/ujail -t 5 -n dnsmasq -u -l -r /bin/ubus -r /etc/TZ -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp
3237 dnsmasq 2176 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
3281 root 2160 S {ntpd} /sbin/ujail -t 5 -n ntpd -U ntp -G ntp -C /etc/capabilities/ntpd.json -c -u -r /bin/ubus -r /usr/bin/env -r /usr/bin/jshn -r /usr/sbin/ntpd-hotplug -r /usr/share/libub
3317 ntp 1124 S /usr/sbin/ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p ntp.aliyun.com -p time1.cloud.tencent.com -p time.ustc.edu.cn -p cn.pool.ntp.org
3395 root 5472 R /usr/bin/ttyd -i br-lan /bin/login
3614 root 936 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 192.168.5.239:22 -p fd70:fccb:afeb::1:22 -K 300 -T 3
18584 root 0 IW [kworker/u256:1-]
20527 root 0 IW [kworker/u256:0-]
20879 root 1144 S /bin/login
20888 root 1136 S -ash
20906 root 1132 R ps
root@OpenWrt:~#
问题只有在vmware出现,直接刷在物理机上运行没有问题