• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jdz
V2EX  ›  程序员

Linux 的 sendfile 系统调用会将 file 缓存在页高速缓存吗

  •  
  •   jdz · Feb 15, 2020 via Android · 1907 views
    This topic created in 2305 days ago, the information mentioned may be changed or developed.
    还是每次调用该系统调用都会从需要磁盘 io
    2 replies    2020-02-16 02:17:15 +08:00
    x1596357
        1
    x1596357  
       Feb 15, 2020 via iPhone   ❤️ 1
    自动会缓存的,只有第一次需要磁盘读写
    codehz
        2
    codehz  
       Feb 16, 2020 via Android
    Linux 没特殊说明 direct io 的都是带缓存的(
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5747 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 03:28 · PVG 11:28 · LAX 20:28 · JFK 23:28
    ♥ Do have faith in what you're doing.