Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

Discover Bottlenecks on QNX

How to Speed Up the Process

#   Tip: you can clear all values before recording with following command
$   fsysinfo -Z DEVICE|FILESYSTEM

#   Record samples
$   fsysinfo -l PERIOD DEVICE|FILESYSTEM > OUTPUTFILE
$   fsysinfo_plot.py [OPTION]... FILE -- KEY...
$   fsysinfo_plot.py --diff --log --legendright fsysinfo_rwdata_log -- "DISK I/O.read.bytes" "DISK I/O.write.bytes"
$   fsysinfo_plot.py --stackplot fsysinfo_rwdata_log -- SYSCALL.create SYSCALL.delete SYSCALL.open SYSCALL.stat
$   fsysinfo_plot.py --help
this script plots a qnx fsysinfo log
usage
    fsysinfo_plot.py [OPTION]... FILE -- KEY...

    whereas the key determines what shall be printed
    the keys are formatted like so: "SYSCALL.rename"
example
    fsysinfo_plot.py --diff my_fsysinfo_log -- SYSCALL.open "DISK I/O.read" "DISK I/O.write"
options
    --stackplot     performs a stackplot instead of a usual one
    --diff          calculates the difference between 2 samples
    --avg N         averages between N samples (applied after diff)
    --log           logarithmic scale (be careful with negative values or when using diff)
    --legendright   display legend on the top right instead of top left corner
keys
    DISK I/O    read, r/a, write, io req, direct, bad, read.bytes, r/a.bytes, write.bytes, io req.bytes, direct.bytes
    CACHE       read, write, mfu, mru, ratio, read.bytes, write.bytes
    SYSCALL     open, create, delete, trunc, stat, namei, modes, owner, rename, devctl, sync, pause, change, timed, write, read, write.bytes, read.bytes
    NAMES       exist, enoent, misses, unsuit, stale, rate
    BMAP        hit, miss, rate
    VNODES      create, hit, rate, lock, recycl
    SLAB        map, unmap, active
    THREADS     create, destro, pool

recording a log is possible with `fsysinfo -l PERIOD DEVICE|FILESYSTEM > OUTPUTFILE`
whereas PERIOD is in milliseconds
please look into the fsysinfo manual for more information

About KDAB