미리 읽다

readahead

미리 읽기는 파일 내용을 페이지 캐시에 로드하는 Linux 커널시스템 호출입니다.이것에 의해, 파일이 프리페치 되어 나중에 액세스 할 때에, 하드 디스크 드라이브(HDD)가 아닌 메인 메모리(RAM)로부터 내용을 읽어낼 수 있기 때문에, 파일 액세스의 [1][2]대기 시간이 큰폭으로 단축됩니다.

대부분의 리눅스 배포에서는 부팅 속도를 높이기 위해 일반적으로 사용되는 파일 목록에서 미리 읽기를 사용합니다.이러한 셋업에서는 커널이 다음 명령어를 사용하여 부트되는 경우 profileboot 파라미터는 부트업 중에 모든 파일접근을 기록하고 이후 부트시퀀스 중에 읽을 새로운 파일목록을 작성합니다.이렇게 하면 설치된 추가 서비스는 기본 미리 읽기 [3]목록에 포함되지 않으므로 더 빨리 시작됩니다.

systemd를 사용하는 리눅스 배포에서는 부트 시퀀스의 일부인 읽기 전 [4][5]바이너리가 systemd-readahead로 대체되었습니다.그러나 버전 217에서는 readahead 지원이 systemd에서 삭제되어 유지보수가 되지 않아 기대되는 성능상의 이점을 [6]제공할 수 없습니다.

특정 [7]실험적인 페이지 레벨 프리페치 시스템은 성능을 더욱 향상시키기 위해 개발되었습니다.

파일 시스템 내

파일 및 메타데이터의 미리 읽기를 [8]지원합니다.

ZFS[9]ARC를 사용할 때 파일 및 메타데이터의 미리 읽기를 지원합니다.

레퍼런스

  1. ^ Jonathan Corbet (2005-10-12). "Adaptive file readahead". LWN.net. Retrieved 2014-08-20.
  2. ^ "readahead(2) - Linux manual page". man7.org. Retrieved 2014-04-09.
  3. ^ Michael Opdenacker (2007-06-15). "Readahead: time-travel techniques for desktop and embedded systems" (PDF). free-electrons.com. pp. 5–6. Retrieved 2014-05-01.
  4. ^ "Readahead". fedorahosted.org. Retrieved 2014-04-09.
  5. ^ "systemd-readahead-replay.service". freedesktop.org. 2014-03-26. Archived from the original on 2014-04-09. Retrieved 2014-04-09.
  6. ^ "systemd/systemd – System and Session Manager: Changes with 217". cgit.freedesktop.org. Retrieved 2018-02-09.
  7. ^ Krzysztof Lichota (2008). "Linux solution for prefetching necessary data during application and system startup" (PDF). code.google.com. Archived from the original (PDF) on 2009-12-11. Retrieved 2014-07-28.
  8. ^ "bcache.txt\Documentation - linux-bcache.git - Unnamed repository; edit this file 'description' to name the repository". evilpiepirate.org. Retrieved 1 May 2020.
  9. ^ "Part 10 - Monitoring and Tuning ZFS Performance Oracle Community". community.oracle.com. Retrieved 1 May 2020.