Analyzer vfs-read-top-files
Name
vfs-read-top-files - Virtual File System Read Top N files (including sendfile)
This analyzer identifies the most frequently read files across all applications through the virtual file system layer. It captures file read operations including sendfile calls and ranks files by access frequency. The analyzer generates bar charts showing top accessed files, helping identify I/O hotspots and optimize file caching 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-read-top-files -p PID
# trace a shell command directly
orxray analyzer run vfs-read-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-read-top-files -p -PGID
# trace any processes started from the specified executable path.
orxray analyzer run vfs-read-top-files --exe /path/to/exe/file
Tracing Multiple Processes
Supported.
Output Formats
- Bar Charts
- Plain Texts
Output Example
{
"title": "Top 10 files read from the disk",
"subtitle": "",
"series": {
"data": {
"/usr/local/openresty/proxy_cache/2/f6/0767f310cd769476c5614ab73a938f62": 16384,
"/usr/local/openresty/proxy_cache/2/f4/0767f310cd769476c5614ab73a938f63": 1634
},
"name": "bytes"
},
"ver": 1,
"type": "bar"
}
Author
The OpenResty Inc. Team.
Copyright
Copyright (C) by OpenResty Inc. All rights reserved.