mbox series

[V2,0/2] Introduce panic function when slub leaks

Message ID 20240925132505.21278-1-fangzheng.zhang@unisoc.com (mailing list archive)
Headers show
Series Introduce panic function when slub leaks | expand

Message

Fangzheng Zhang Sept. 25, 2024, 1:25 p.m. UTC
Hi all,

A method to detect slub leaks by monitoring its usage in real time
on the page allocation path of the slub. When the slub occupancy
exceeds the user-set value, it is considered that the slub is leaking
at this time, and a panic operation will be triggered immediately.

Changes in v2:
- Fix error that unterminated conditional directive
- Avoid using #ifdef when referencing .h in .c files

Changes in v1:
- Add panic function when slub leaks
- Add parameter description for slub_leak_panic function

[1] https://lore.kernel.org/linux-mm/20240925032256.1782-1-fangzheng.zhang@unisoc.com

Fangzheng Zhang (2):
  mm/slub: Add panic function when slub leaks
  Documentation: admin-guide: kernel-parameters: Add parameter
    description for slub_leak_panic function

 .../admin-guide/kernel-parameters.txt         | 15 ++++
 mm/Kconfig                                    | 11 +++
 mm/slub.c                                     | 75 +++++++++++++++++++
 3 files changed, 101 insertions(+)