heiher / natmap

TCP/UDP port mapping for full cone NAT
MIT License
1.38k stars 103 forks source link

请问natmap在openwrt上约占用多少运行内存 #34

Closed zhangbaichang closed 1 year ago

zhangbaichang commented 1 year ago

如题,本人的小米AX3000只有256M的运行内存,若安装插件超出运存则会变砖,还请大佬给出一个大致的运存范围

heiher commented 1 year ago

在 OpenWrt 22.03.0 AArch64 系统上,看上去一个实例大约是 512 KB 的内存使用。

Name:   natmap
Umask:  0022
State:  S (sleeping)
Tgid:   2115
Ngid:   0
Pid:    2115
PPid:   1
TracerPid:  0
Uid:    0   0   0   0
Gid:    0   0   0   0
FDSize: 64
Groups:  
NStgid: 2115
NSpid:  2115
NSpgid: 1
NSsid:  1
Kthread:    0
VmPeak:     1240 kB
VmSize:     1172 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:       512 kB
VmRSS:       512 kB <-----------------
RssAnon:           0 kB
RssFile:         512 kB
RssShmem:          0 kB
VmData:      240 kB
VmStk:       132 kB
VmExe:        40 kB
VmLib:       724 kB
VmPTE:        40 kB
VmSwap:        0 kB
zhangbaichang commented 1 year ago

好的,那应该没问题