Running the Nytro Profiler and the Converter in the Manual Mode
NOTE Before running blktrace, run this command: mount debugfs debugfs /sys/kernel/debug.
./NytroProfiler_64 -D disk5 -CFG das -SZ 500 -T Windows -I xperf_trace.txt -O trace_results
![]()
If you want to collect the I/O traces on /dev/sdb and /dev/sdga of capacity 200 GB and 400 GB respectively, perform these steps:
1.
Run blktrace -d /dev/sdb /dev/sdga.
To stop blktrace, press Ctrl+C on your keyboard.
2.
Run blkparse -t sdb sdga> blk_trace.txt.
This step generates several temporary files and a trace file, blk_trace.txt (you can have any file name or path). Delete the blktrace temporary files.
If the interested devices for I/O analysis are /dev/sda:
![]()
Collect the traces using blktrace and blkparse.
NOTE blktrace generates several temporary files in the folder from where it is run. These files are inputs to the blkparse command. You must run blkparse from the same folder.
CAUTION blkparse is CPU-intensive:
Use the nice command to control the trace collecting priority.
After running blktrace on the target/production machine, you can also copy the generated blktrace files onto another machine to run blkparse.
![]()
The generated output file is trace_out.qt (-o option).
To manually run the Nytro Profiler in various scenarios:
![]()
If you want to run the Nytro Profiler on the same Linux machine, perform these steps: blktrace runs or on another Linux machine:
1.
Run blktrace/blkparse on the Linux machine.
2.
Run ./NytroProfiler_64 -d /dev/sdb:/dev/sdga -CFG das -SZ 200:400 -t Linux -p partitions.txt -i blk_trace.txt -o trace_out.
The Nytro Profiler generates the .qt file for a previously collected bltrace and blkparse trace file. In this example, blk_trace.txt is the trace file, partitions.txt is either the path to /proc/partitions or a copy of /proc/partitions on the machine where blktrace was run.
NOTE Step 1 and Step 2 run on the same Linux machine. Make sure that the trace file collected through Step 1 is fed as input into Step 2. /proc/partitions is also an input to the Nytro Profiler.
![]()
If you want to profile I/Os onto a device (for example, /dev/sdb) on a different Linux machine:
1.
Run blktrace/blkparse on the Linux machine.
2.
Run ./NytroProfiler_64 -d /dev/sdb:/dev/sdga -CFG das -SZ 200:400 -t Linux -p dev_info -i blk_trace.txt -o trace_out.
The Nytro Profiler generates the .qt file for a previously collected bltrace and blkparse trace file. In this example, blk_trace.txt is the trace file, partitions.txt is either the path to /proc/partitions or a copy of /proc/partitions on the machine where blktrace was run.
NOTE If Step 1 and Step 2 run on the different Linux machine, make sure that the trace file collected through Step 1 is fed as input into Step 2. /proc/partitions is also an input into the Nytro Profiler.
Additionally, to generate the dev_info file, run the cat /proc/partitions > dev_info command on the machine where Step 1 was run. Copy the dev_info file onto the machine where Step 2 runs, to generatethe *.qt file.
![]()
If you want to generate a .qt file for a trace file obtained on a Windows machine for a disk (for example, Disk5):
1.
Run Xperf (see Running the Nytro Profiler and Converter in the Manual Mode).
2.
Run ./NytroProfiler_64 -d Disk5 -CFG das -SZ 200 -t Windows -i xperf_trace -o trace_out.
xperf_trace is the input trace file, and the Nytro Profiler generates the trace_out.qt file.
NOTE Step 1 runs on a Windows machine and Step 2 runs on a Linux machine. You must provide the Xperf file from Step 1 as input to Step 2.
DB15-000969-03 - December 2012 |
Copyright© 2012 by LSI Corporation. All rights reserved. |