On the Redmi AX6000 using the filogic snapshot r34359-dfbacabec6, when operating with multiple SSIDs and fast roaming, how can we determine if a process is continuously consuming memory? First, retain the device's boot time and process identity. If there are three clients during the first sample and exactly twenty clients associated during the second sample, comparing only the two top process screenshots makes it difficult to identify the root cause.
Simultaneously record system overhead and the resident page count for each process
date -u
cat /proc/sys/kernel/random/boot_id
grep -E '^(MemAvailable|Cached|Slab|SUnreclaim):' /proc/meminfo
for name in netifd hostapd wpad; do
for pid in $(pidof "$name"); do
echo "$name pid=$pid"
grep -E '^(Name|VmSize|VmRSS|RssAnon|VmSwap):' "/proc/$pid/status"
test ! -r "/proc/$pid/smaps_rollup" || grep -E '^(Pss|Private_Dirty):' "/proc/$pid/smaps_rollup"
done
done

VmSize is the virtual address space; VmRSS is the resident memory; RssAnon is the anonymous resident portion. When multiple processes share libraries, summing the RSS values directly will result in overcounting; the kernel provides smaps_rollup, allowing Pss to be used to observe shared pages allocated proportionally. Some minimal kernels do not export this file; in such cases, missing entries can be left as is. If wireless processes are not found, verify the actual process name from ubus call service list and the process list—do not substitute a zero for empty output.
Which change warrants continued pursuit?
On the management PC, schedule periodic SSH sampling to collect data and store it on the PC, sampling at one-minute intervals or longer, spanning one idle period, followed by client gradual association, then back to idle. For each cycle, record the number of SSIDs, connection count, presence of roaming, and any configuration reloads. First read boot_id, then PID; if boot_id changes, indicate a new boot; if PID changes, start a new segment of logging.
- VmSize growth, RssAnon, and MemAvailable remain within original ranges; extend observation period and verify whether the change is merely due to address mapping alteration.
- When the same PID repeatedly shows RssAnon or Pss increases under similar load conditions, and the values fail to drop after idle, with system headroom narrowing, retain the full time-series data and associated logs, then compare against the same hardware under controlled configurations. Modify only one variable at a time, provided that wired management and rollbackable configurations are fully available.
- Wireless process runs smoothly, but the system still lacks memory. Check recyclable caches, Slab, and other processes. If OOM has been triggered, retain the kernel's log indicating which process was selected for termination; the terminated process may not necessarily be the source of memory growth.
The experiment only verified the netifd sampling fields on x86/64 virtual machines. Short-interval readings cannot prove leakage in Redmi's wireless driver, roaming, or hostapd. Timed sampling can be stopped once the test is complete; modified wireless parameters must be reverted and validated, including successful client reassociation, reacquisition of IP leases, and reestablishment of internet connectivity.System memory shortage and OOM log troubleshooting
Comments