Analyzer vfs-write-top-files
Name
vfs-write-top-files - Virtual File System Write Top N files
This analyzer identifies the most frequently written files across all applications through the virtual file system layer. It captures file write operations and ranks files by write frequency. The analyzer generates bar charts showing top written files, helping identify write-intensive operations and optimize logging or data persistence strategies.
Resource Category
Disk I/O.
Application Type & Technical Stack
- All
Command Line Syntax
The analyzer can be invoked directly on the command-line via the orxray
utility from the openresty-xray-cli software package.
Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).
# PID is the target process PID.
orxray analyzer run vfs-write-top-files -p PID
# trace a shell command directly
orxray analyzer run vfs-write-top-files -c SHELL_CMD
# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run vfs-write-top-files -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run vfs-write-top-files --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Bar Charts
- Plain Texts
Output Example
[
{
"title": "Top 10 files written to the disk",
"subtitle": "",
"series": {
"data": {
"/usr/local/openresty/proxy_cache/4/90/4ff946ccef0d95a46377e823256dd904.0000412176": 16384,
"/usr/local/openresty/proxy_cache/c/30/ad6032da73d476e342cc2fdd8255f30c": 336
},
"name": "bytes"
},
"ver": 1,
"type": "bar"
}
]
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.