close
본문으로 이동

readahead

위키백과, 우리 모두의 백과사전.

readahead(리드어헤드)는 리눅스 커널시스템 호출로, 파일 내용을 버퍼 캐시에 로드한다. 이는 파일을 프리페칭하여 나중에 접근할 때 내용이 하드 디스크 드라이브 (HDD) 대신 주 기억 장치 (RAM)에서 읽혀 파일 접근 지연 시간을 훨씬 낮춘다.[1][2]

많은 리눅스 배포판은 일반적으로 사용되는 파일 목록에 readahead를 사용하여 부팅 속도를 높인다. 이러한 설정에서 커널profile 부트 파라미터로 부팅되면, 부팅 중 모든 파일 접근을 기록하고 나중 부팅 시퀀스에서 읽을 새 파일 목록을 작성한다. 이는 기본 readahead 목록에 포함되지 않은 추가 설치된 서비스가 더 빨리 시작되도록 할 것이다.[3]

Systemd를 사용하는 리눅스 배포판에서는 (부팅 시퀀스의 일부로) readahead 바이너리가 systemd-readahead로 대체되었다.[4][5] 그러나 systemd 버전 217에서 readahead 지원이 제거되었으며, 유지 관리되지 않고 예상 성능 이점을 제공할 수 없다고 설명되었다.[6]

특정 실험적인 페이지 수준 프리페칭 시스템이 성능을 더욱 향상시키기 위해 개발되었다.[7]

파일 시스템에서

[편집]
  • Bcache는 파일 및 메타데이터의 readahead를 지원한다.[8]
  • ZFS는 ARC를 사용할 때 파일 및 메타데이터의 readahead를 지원한다.[9]

같이 보기

[편집]

각주

[편집]
  1. Jonathan Corbet (2005년 10월 12일). Adaptive file readahead. LWN.net. 2014년 8월 20일에 확인함.
  2. readahead(2) - Linux manual page. man7.org. 2014년 4월 9일에 확인함.
  3. Michael Opdenacker (2007년 6월 15일). Readahead: time-travel techniques for desktop and embedded systems (PDF). free-electrons.com. 56쪽. 2014년 5월 1일에 확인함.
  4. Readahead. fedorahosted.org. 2014년 4월 9일에 확인함.
  5. systemd-readahead-replay.service. freedesktop.org. 2014년 3월 26일. 2014년 4월 9일에 원본 문서에서 보존된 문서. 2014년 4월 9일에 확인함.
  6. systemd/systemd – System and Session Manager: Changes with 217. cgit.freedesktop.org. 2018년 2월 9일에 확인함.
  7. Krzysztof Lichota (2008). Linux solution for prefetching necessary data during application and system startup (PDF). code.google.com. 2009년 12월 11일에 원본 문서 (PDF)에서 보존된 문서. 2014년 7월 28일에 확인함.
  8. bcache.txt\Documentation - linux-bcache.git - Unnamed repository; edit this file 'description' to name the repository.. evilpiepirate.org. 2020년 5월 1일에 확인함.
  9. Part 10 - Monitoring and Tuning ZFS Performance| Oracle Community. community.oracle.com. 2020년 5월 1일에 확인함.