gvisor: Memory leak in procfs in VFS2
Below is a simple way to reproduce this issue:
sh -c 'while true; do ls -l /proc; done'
After launching above command, we can see that the amount of memory taken by
runsc-sandbox
process keeps increasing (e.g. 1.5G after about 4min 29sec):
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
80839 root 20 0 64.0t 1.5g 23296 S 80.0 0.8 4:29.73 exe
runsc version: release-20200907.0-38-gb6ca96b9b9e7
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (6 by maintainers)
Commits related to this issue
- [vfs] kernfs: Fix inode memory leak issue. kernfs always adds the child dentry to the parent' children list on Lookup and only removes it when that dentry is Looked-up again and the dentry is deemed ... — committed to google/gvisor by ayushr2 4 years ago
- WIP [vfs] kernfs: Fix inode memory leak issue. Fixes #3933 PiperOrigin-RevId: 333548584 — committed to google/gvisor by ayushr2 4 years ago
- WIP [vfs] kernfs: Fix inode memory leak issue. Fixes #3933 PiperOrigin-RevId: 333548584 — committed to google/gvisor by ayushr2 4 years ago
- WIP [vfs] kernfs: Fix inode memory leak issue. Fixes #3933 PiperOrigin-RevId: 333548584 — committed to google/gvisor by ayushr2 4 years ago
- WIP [vfs] kernfs: Fix inode memory leak issue. Fixes #3933 PiperOrigin-RevId: 333548584 — committed to google/gvisor by ayushr2 4 years ago
- WIP [vfs] kernfs: Fix inode memory leak issue. Fixes #3933 PiperOrigin-RevId: 333548584 — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
- [vfs] kernfs: Fix inode memory leak issue. This change aims to fix the memory leak issue reported in #3933. Background: VFS2 kernfs kept accumulating invalid dentries if those dentries were not walk... — committed to google/gvisor by ayushr2 4 years ago
@ayushr2 Thanks for all the works! I really appreciate it. I tried this patch with below commands:
It looks runsc may crash sometimes, below is the backtrace I got: