Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Embedded Linux Development Using Yocto Project Cookbook. - Second Edition

You're reading from  Embedded Linux Development Using Yocto Project Cookbook. - Second Edition

Product type Book
Published in Jan 2018
Publisher
ISBN-13 9781788399210
Pages 456 pages
Edition 2nd Edition
Languages
Author (1):
Alex Gonzalez Alex Gonzalez
Profile icon Alex Gonzalez

Table of Contents (13) Chapters

Title Page
Dedication
Packt Upsell
Foreword
Contributors
Preface
The Build System The BSP Layer The Software Layer Application Development Debugging, Tracing, and Profiling Other Books You May Enjoy Index

Using blktrace


There are a few tools available to perform block devices I/O monitoring and profiling.

iotop, which we mentioned in the Exploring Yocto's tracing and profiling tools recipe, gives a general idea of the throughput on a system and a particular process. iostat provides many more statistics regarding CPU usage and device utilization, but does not provide per process details. Finally, blktrace, a GPLv2 licensed tool that monitors specific block devices' I/O at a low level, and can also compute I/O operations per second (IOPS).

This recipe will explain how to use blktrace to trace block devices and blkparse, to convert the traces into human readable format.

Flash filesystems, even if they are presented to the user space as block devices, cannot be profiled with blktrace.

Getting ready

To use blktrace and blkparse, you can add them to the target image by adding them specifically to your conf/local.conf file as in the following:

IMAGE_INSTALL_append = " blktrace" 

Alternatively, you can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}