Tag Archives: sar

Baseline Analysis is Important, CPU Performance Analysis in Linux Revisited

Yes­ter­day I wrote about CPU Per­for­mance Analy­sis in Linux. I explained how to tell if you are expe­ri­enc­ing a CPU bot­tle­neck. This is just a quick fol­lowup to show the effect of adding more cpu power.

CPU Performance Analysis in Linux

A while back I wrote a post Ana­lyz­ing Linux Sys­tem Per­for­mance and Find­ing Bot­tle­necks. I did’t really give a good expla­na­tion of deter­min­ing if you are CPU bound or not so I am writ­ing this post to clear that up.

Analyzing linux system performance and finding bottle necks

Sys­tem per­for­mance ana­lyt­ics seems to be a fre­quent ques­tion on forums and mail­ing lists. Find­ing out why some­thing is slow is gen­er­ally non­triv­ial as there are many fac­tors to con­sider. I have found the sys­stat pack­age to be an invalu­able tool when look­ing at sys­tem per­for­mance. Specif­i­cally the com­mand sar gives a wealth of information.

Match string and print preceding line

Text pro­cess­ing is fun. Well, fun if you like to beat your head against a wall. Most of the time I just string a few things together to get what­ever I am doing done. Its much bet­ter to find the short­est way to do some­thing, it spawns less processes, is more effi­cient and gen­er­ally a