[리눅스커널] 메모리: 슬랩(Slab) 캐시 - 오브젝트 릭(Leakage) 디버깅 패치

Guillermo Austin Kim|2020년 5월 30일
Posts

[리눅스커널] 메모리: 슬랩(Slab) 캐시 - 오브젝트 릭(Leakage) 디버깅 패치

Guillermo Austin Kim|2020년 5월 30일

프로젝트를 진행하다 보면 슬랩 메모리의 잔여량이 부족하다는 제보를 받습니다. 예를 들면 'cat /proc/slabinfo' 명령어를 입력했더니 특정 슬랩 오브젝트의 양이 부족하다는 이야기죠. root@raspberrypi:/proc# cat /proc/slabinfoslabinfo - version: 2.1# name a : tunables : slabdata