Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
susu200213
V2EX  ›  Linux

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

  •  
  •   susu200213 · May 19, 2023 · 2145 views
    This topic created in 1264 days ago, the information mentioned may be changed or developed.
    7 replies  •  2023-05-20 17:07:14 +08:00
    tensorzhang
    tensorzhang
    May 19, 2023
    1
    watchdog ?
    aloxaf
    aloxaf
    May 19, 2023
    2
    fanotify ?
    garychenlin
    garychenlin
    May 19, 2023
    3
    audit ?
    defunct9
    defunct9
    May 19, 2023
    4
    go 写个 inotify
    barathrum
    barathrum
    May 19, 2023
    5
    systemtap 或 eBPF 之类的应该能做吧
    LindsayZhou
    LindsayZhou
    May 19, 2023❤️1
    6
    搜了一下,bcc 的示例里已经有相关的了: https://github.com/iovisor/bcc/blob/master/tools/filetop.py

    ebpf + kprobe ,要定制化自己简单改下就行了。
    julyclyde
    julyclyde
    May 20, 2023
    7
    进程视角:strace
    文件被动视角:inotify
    开放视角:systemtap 、eBPF 之类的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:16 · PVG 20:16 · LAX 04:16 · JFK 07:16
    ♥ Do have faith in what you're doing.