Preview Tool

Cisco Bug: CSCvu28371 - Negative Memory Values for Sysadmin VM show memory_status

Last Modified

Oct 09, 2020

Products (1)

  • Cisco ASR 9000 Series Aggregation Services Routers

Known Affected Releases


Description (partial)

When calling show memory_status command, negative used values are in negative values:

sysadmin-vm:0_RP0# show memory_status
Tue May  5  18:40:07.485 UTC
Location: 0/RP0
Memory     80%        90%        95%        NORMAL          -116         1265

Total_inactive_file number from sysadmin /dev/cgroup/memory/memory.stat is much bigger then the number in reference router.

total_inactive_file 48868139008
total_active_file 300675072

active_file         file-backed memory on active LRU list, in bytes

inactive_file         file-backed memory on inactive LRU list, in bytes

Looks like when router has been up to run over long time, like 30+ weeks, both active_file and inactive_file will getting bigger and bigger, will the total memory for LXC to use are keep same.

[sysadmin-vm:0_RP0:~]$cat /dev/cgroup/memory/memory.stat
cache 191016960
rss 764956672
rss_huge 0
mapped_file 151429120
writeback 0
swap 0
pgpgin 2864380390
pgpgout 2864146998
pgfault 11450035288
pgmajfault 30120
inactive_anon 409300992
active_anon 364429312
inactive_file 48868139008 <<<<<<<<<<
active_file 300675072 <<<<<<<<<<
[host:0_RP0:~]$ cat /proc/meminfo
MemTotal:       65234552 kB
MemFree:         3041792 kB
MemAvailable:   52947764 kB
Buffers:          359628 kB
Cached:          2622444 kB
SwapCached:            0 kB
Active:          8430956 kB <<<<<<<<<<
Inactive:       50762484 kB <<<<<<<<<<

Fix will include a ckeck at the end of lxc_mem_info() API to pick the smaller number of MemTotal and mem_available as mem_available.
Bug details contain sensitive information and therefore require a account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.