How to measure CPU, memory and disk usage during build?

I am trying to improve build time and want to have feedback to determine where my problems are.

I use GNU Make on a Linux CentOS system to build a Linux kernel along with some application code. I can run Make with "time" to get the total time for a complete build, but that does not tell me where the bottlenecks are.

I used -j with Make to run it on multiple kernels on my build machine, but I ran from the top during build and noticed that the processor cores often were idle.

Any suggestions on the best way to measure disk and memory usage during build?

Anything else I have to measure?

There are no preferences in the text or graphical interface - no matter what gives me some data that I can use.

+5
source share
1 answer

For real-time measurement, I use tex-based htop from third-party repositories. It looks like the top one, but better, it shows graphically cpu (all CPUs separately), drum load.

+1
source

All Articles