Symptom
Cat9K switch may experience a slow memory leak within the crimson database under "/tmp/rp/tdldb/0/IOS_PRIV_OPER_DB" as seen in commands like the following, which will show the "Size", "Rss", and "Pss" values constantly increasing:
SWITCH#show proc mem plat detailed name iosd smaps
8c80000000-8ca7551000 rw-s 00000000 00:28 77043 /tmp/rp/tdldb/0/IOS_PRIV_OPER_DB
Size: 644420 kB
Rss: 639592 kB
Pss: 639592 kB
Conditions
To identify this bug, a core file would need to be generated for the IOSd process via:
request platform software process core ios switch active r0
If TAC / the BU confirmed that the core has data indicating that a "platform_property_value" vstring datatype is leaking, this bug may be a match.
Workaround
Reboot will recover the memory leaked but the condition will happens again.
Consider IOS upgrade to fixed code.
Further Problem Description
- Platforms affected: Catalyst 9000 familiy including C9400, C9500H, C9600
- Trigger: CRIMSON database leak messages are seen on bootup
- Impact: This is slow memory leak in crimson DB, which might lead up to high CPU/crash
- In older codes, the error log %CRIMSON-3-DATABASE_MEMLEAK might not appear but it will be reported tmpfs memory leak.
- Fixed releases: 17.3.5 onwards, 17.6.1 onwards, 17.7.1 onwards