Over the last couple of weeks I have found myself wanting to find certain things
out which were hard to answer quickly without the deep insight from kernel
level. The problem was that the issues were themselves not dire enough to spend
the extra time cooking up the bpftrace or my own BCC program. So I got around by
using vanilla perf
or ftrace
or flamegraphs
, but soon such small
niggles added up. Now I am at a point where I dearly miss programming in kernel
where the inertia to doing such things is minimal and access to info from
scheduler is readily available.
I’d like to quickly answer things like who preempted a pid
out and how many
times in this period. “What are each of the threads spawned by a pid
doing
right now?”
So I think it is time to go back to writing a few BCC programs in C++ to get information at this level.
Bring Your Own Cause
If you think any info here has remotely helped you consider dropping a penny for this cause, just click me . You can visit https://www.bbc.com/news/world-asia-india-52672764 Unfortunately, there are plenty of sad things happening all over the world, if you have a different cause or charity you'd rather support please do. And if you did make a donation, please drop a note to me (annotated) or leave a comment here (anonymous is OK!) and I will use that as motivation to write more useful content here.
If you like topics such as this then please consider subscribing to my podcast. I talk to some of the stalwarts in tech and ask them what their favorite productivity hacks are:
Available on iTunes Podcast
Visit Void Star Podcast’s page on iTunes Podcast Portal. Please Click ‘Subscribe’, leave a comment.