Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-15-2016, 01:19 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 24

Rep: Reputation: 0
Linux top command does not list all CPUs

I've Ubuntu 14.04.3 LTS installed on an x86 host.
The host has 56 virtual CPUs or hyperthreads (as seen
in cat /proc/cpuinfo).
When I run top command and then press '1' key, it shows load on
only CPUs 0-39, but not all 56 CPUs, i.e. 0-55.

Does anyone know how to view load on all CPUs (56 in my case) ?

Thank you.

Last edited by MahendraL; 04-15-2016 at 03:01 AM.
Old 04-15-2016, 01:30 AM   #2
Registered: Mar 2015
Location: The Netherlands
Distribution: CentOS 7, Ubuntu 12.04, Linux-Mint 17.3
Posts: 46

Rep: Reputation: Disabled

You can also check:

dmesg | grep cpu
It might have limited NR_CPUS to 39 - even though I do not know how to change this.

Old 04-15-2016, 01:38 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,400

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
See section 2.16
My Centos 6.7 defaults to 0 (unlimited) ie limited only by size of terminal window
1 members found this post helpful.
Old 04-15-2016, 01:44 AM   #4
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,274

Rep: Reputation: 148Reputation: 148
It will present up to available screen hight.
1 members found this post helpful.
Old 04-15-2016, 02:59 AM   #5
LQ Newbie
Registered: Jul 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Thank you chrism01 and kirukan.
After reducing font size of my xterm, I found that now all CPUs are displayed by top.
Old 04-15-2016, 03:56 PM   #6
LQ Newbie
Registered: Apr 2016
Posts: 6

Rep: Reputation: Disabled
I know you solved it but, there is also htop. It defaults to show all cpus without having to toggle the '1' key.

It's very similar to top with more features. Below is an excerpt from man htop

Htop is a free (GPL) ncurses-based process viewer for Linux.

It is similar to top, but allows you to scroll vertically and horizontally, so you can
see all the processes running on the system, along with their full command lines, as
well as viewing them as a process tree, selecting mutiple processes and acting on them
all at once.

Tasks related to processes (killing, renicing) can be done without entering their
1 members found this post helpful.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to see multiple CPUs with top F,Dillon@NYC Linux - Newbie 3 07-25-2015 02:05 PM
LXer: Can You Top This? 15 Practical Linux Top Command Examples LXer Syndicated Linux News 0 01-09-2010 09:42 PM
how does TOP work with 2 CPUs ipanema Linux - Server 6 10-23-2007 01:01 AM
Is there a command to list how many CPUs a system has? Locura Linux - General 2 02-25-2005 11:28 AM
top: number of CPUs naijaguy Linux - Newbie 4 02-11-2005 05:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration