Slab memory leak on Ubuntu Xenial stemcells
search cancel

Slab memory leak on Ubuntu Xenial stemcells

book

Article ID: 293847

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

This issue has been observed on TAS and TKGi environment utilizing Ubuntu Xenial stemcell versions 621.241 and higher.

This issue may result in intermittent unresponsive VM's. This problem has not been seen on all TAS and TKGi foundations but rather only ones with certain characteristics (BOSH add-ons, specific application workloads).

/proc/meminfo shows low free memory and high amount of Slab memory.

proc_meminfo.png

slabtop command shows high amount of memory usage by TCP.

slabtop_worker.png

Environment

Product Version: 2.10

Resolution

Canonical has released a fix in the Ubuntu kernel v4.15.0-197.208 . From changelog https://www.ubuntuupdates.org/package/core/bionic/main/updates/linux-source-4.15.0:
Memory leak while using NFQUEUE to delegate the decision on TCP packets to
    userspace processes (LP: #1991774)
    - SAUCE: netfilter: nf_queue: Fix memory leak in nf_queue_entry_get_refs

Ubuntu Xenial stemcell 621.330 includes the Ubuntu kernel v4.15.0-197
https://docs.pivotal.io/stemcells/stemcells.html#621-line