Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running some programs on a server and I would like to know how much % cpu I'm taking up and how many cores are being utilised by my process.

To clarify, the server has 16 CPUs, all quad-core. I know about the top command, but that just continually reports CPU% between 80% and 100.2%.

I also tried mpstat -P ALL but I'm really not sure how to read this table.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

When using top, press '1' and you should see the different CPUs (or VCPUS) and their load distribution. Probably top reports 80% but not all the CPUs are busy, with this option you should be able to see something else. On other hand you can try htop

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.