V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
rzdCG
V2EX  ›  Linux

想问一下在 Linux 下我该如何监听在接下来的一段时间内系统的文件写入情况

  •  
  •   rzdCG · 315 天前 · 1075 次点击
    这是一个创建于 315 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2023-05-20 17:07:14 +08:00
    tensorzhang
        1
    tensorzhang  
       315 天前
    watchdog ?
    aloxaf
        2
    aloxaf  
       315 天前
    fanotify ?
    garychenlin
        3
    garychenlin  
       315 天前
    audit ?
    defunct9
        4
    defunct9  
       315 天前
    go 写个 inotify
    barathrum
        5
    barathrum  
       315 天前
    systemtap 或 eBPF 之类的应该能做吧
    LindsayZhou
        6
    LindsayZhou  
       315 天前   ❤️ 1
    搜了一下,bcc 的示例里已经有相关的了: https://github.com/iovisor/bcc/blob/master/tools/filetop.py

    ebpf + kprobe ,要定制化自己简单改下就行了。
    julyclyde
        7
    julyclyde  
       313 天前
    进程视角:strace
    文件被动视角:inotify
    开放视角:systemtap 、eBPF 之类的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5400 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:58 · PVG 16:58 · LAX 01:58 · JFK 04:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.