본문 바로가기

Art of Pr0gr4m

검색하기
Art of Pr0gr4m
프로필사진 pr0gr4m

  • Pr0gr4m (45)
    • IT (43)
      • C Language (3)
      • Linux Kernel (22)
      • Linux Programming (1)
      • Network Programming (0)
      • Android (2)
      • Embedded Linux (0)
      • Using Linux (6)
      • Kafka (2)
    • Book (2)
      • IT (2)
      • 만화 (0)
      • 기타 (0)
    • BoB (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Tags
  • slab
  • buddy_system
  • commit
  • slowpath
  • blk-mq
  • devicedriver
  • slub
  • BLOCK
  • allocator
  • 카프카
  • vmalloc
  • fastpath
  • spinlock
  • multiqueue
  • page
  • memory
  • Kernel
  • mm_struct
  • NDK
  • Apache
  • kafka
  • kmalloc
  • vm_area_struct
  • strex
  • Android
  • lruvec
  • Linux
  • Network
  • proc
  • pmap
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록lruvec (1)

Art of Pr0gr4m

[Linux Kernel 5] LRU (Memory Reclaim)

리눅스 커널은 메모리 부족시 reclaim에 LRU(Least Recently Used) 정책을 사용한다. 1. Basis 커널은 리스트를 이용하여 LRU를 구현한다. 커널 2.4엔 하나의 리스트를, 커널 2.6.28 이전엔 active_list와 inactive_list를, 그 이후엔 5개의 리스트를 사용했다. 또한, 커널 4.7까지는 리스트를 구조체 zone에서 관리했는데, 4.8부터는 구조체 pglist_data에서 관리한다. 5개의 리스트는 다음과 같다. pglist_data->__lruvec.lists[LRU_INACTIVE_ANON] pglist_data->__lruvec.lists[LRU_ACTIVE_ANON] pglist_data->__lruvec.lists[LRU_INACTIVE_FILE..

IT/Linux Kernel 2020. 5. 17. 18:58
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바