#18039 closed bug (fixed)
ramfs: kernel heap (slab) memory leak when creating and deleting mmap'ed files
Reported by: | X512 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | File Systems/RAMFS | Version: | R1/Development |
Keywords: | Cc: | waddlesplash | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
This is hrev56567.
"slab area" memory constantly increase when repeating this cycle
- create file and set size
- mmap
- memset(ptr, 0xcc, size)
- munmap
- delete file and close fd
Leaked memory is not freed after unmount.
It can be also some VFS or VM memory leak.
Change History (5)
comment:1 by , 2 years ago
comment:2 by , 2 years ago
It seems that VMCache
objects are leaking (including physical pages) if mmap
is called at least once.
comment:3 by , 2 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Merged in hrev56581
Note:
See TracTickets
for help on using tickets.
No leak if
mmap
is not used (usewrite
instead for example). Problem is also reproduced in my shmfs. It always use VMAnonumousCache for storage, so leak seems to be in VM kernel code, not in ramfs/shmfs.