LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-15-2016, 02:19 AM   #1
MahendraL
LQ Newbie
 
Registered: Jul 2009
Posts: 22

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


Hi,
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.
Mahendra

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

Rep: Reputation: Disabled
Hey,

You can also check:

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

Cheers!
 
Old 04-15-2016, 02:38 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
See section 2.16 http://linoxide.com/linux-command/li...s-screenshots/
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, 02:44 AM   #4
kirukan
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, 03:59 AM   #5
MahendraL
LQ Newbie
 
Registered: Jul 2009
Posts: 22

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, 04:56 PM   #6
JenkinsCW
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

Quote:
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
PIDs.
 
1 members found this post helpful.
  


Reply

Tags
linux


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 03:05 PM
LXer: Can You Top This? 15 Practical Linux Top Command Examples LXer Syndicated Linux News 0 01-09-2010 10:42 PM
how does TOP work with 2 CPUs ipanema Linux - Server 6 10-23-2007 02:01 AM
Is there a command to list how many CPUs a system has? Locura Linux - General 2 02-25-2005 12:28 PM
top: number of CPUs naijaguy Linux - Newbie 4 02-11-2005 06:36 PM


All times are GMT -5. The time now is 07:34 AM.

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