LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-28-2008, 02:04 AM   #1
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Rep: Reputation: 15
Dual-core


Hallo,
I installed OpenSUSE in a dual-core machine. If I use the 'top' command to monitor the CPU usage, I don't see how the two cores work separately.
Is it possible to do it as it happens with the task manager in Windows?
 
Old 01-28-2008, 03:52 AM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Cool dual-core

Until this moment all I have discover is that using system monitor
That it shows the programs that use the dual core and cpu load
my distro suse 10.3

all the best
 
Old 01-28-2008, 04:09 AM   #3
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello morfeus80

If you are asking for a graphical display of the usage of your cpu cores, then if you are using KDE there is a program called KSysGuard that can be configured to do it.

There may be something similar in Gnome, but I usually install GKrellM which can also be so configured.
 
Old 01-28-2008, 04:18 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Both kde and Gnome have system monitoring programs that allow you to see some aspects of system operation, probably including the information that you want.

For the kde version (kdesysguard), the information can be quite comprehensive (which isn't necessarily the same as comprehensible), but you do have to spend a little time configuring it.

The gnome application (system monitor) is less comprehensive, but probably easier to get started with. I think all you want is the cpu history plot on the resources tab, but I could be mistaken about the extent of the information that you are asking for.

If you are using something simpler like XFCE, there will be some own tools, but I can't remember what level of information you will get. You probably could run the kde or gnome application, but because you drag a substantial part of the relevant infrastructure with them, they change significantly the problem that they are monitoring. (This is like the Heisenberg uncertainty priciple, if that helps at all!)
 
Old 01-28-2008, 04:21 AM   #5
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
You have to get the machine really cooking on something hard, that really chews up those cpu cycles. Then you'll see one task at 100% of cpu usage, with other tasks taking up another 25% of cpu, or something like that. If you want to know if you are using the right software to take advantage of both your cores, open a terminal and type in "dmesg | less" and page down until you see something about "smp"

David
 
Old 01-28-2008, 04:52 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
This kind of information (which CPU's core a process uses) can be visualized also in top, but you have to add an additional field in the task area, since usually it is not visualized by default.

To do this launch top, then press 'f' to access the 'Field Select' screen, then press 'j' to toggle the visualization of the 'last used CPU'. Press enter to return to the main page and you will see an additional column in the task area called 'P'. According to the man page it is
Quote:
j: P -- Last used CPU (SMP)
A number representing the last used processor. In a true SMP
environment this will likely change frequently since
the kernel intentionally uses weak affinity.
If you have two cores you will see numbers 0 and 1 in this column, if you have 8 cores you will see numbers from 0 to 7 and so on. Moreover take in mind that if you launch a multithreaded process (e.g. a process capable of running in parallel on two or more CPU/cores) the percentage of CPU usage is up to 200% or more.

For example I have a machine running a parallel fortran code on two Xeon Quad core and it's a pleasure to see the top command report 796% of CPU usage!

Last edited by colucix; 01-28-2008 at 04:53 AM.
 
Old 01-28-2008, 04:52 AM   #7
morfeus80
Member
 
Registered: Mar 2006
Distribution: OpenSUSE 10.3
Posts: 53

Original Poster
Rep: Reputation: 15
Thank you,I installed ksysguard and it's what I need!
 
Old 01-28-2008, 05:01 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,706

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
If you had read the manpage for top, you'd have seen that merely hitting the "1" (numeric one) key would have shown the CPU breakout.
 
Old 01-28-2008, 06:22 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Quote:
Originally Posted by syg00 View Post
If you had read the manpage for top, you'd have seen that merely hitting the "1" (numeric one) key would have shown the CPU breakout.
You never stop to learn! I missed the way to split cpu's usage in the summary section of top. Thanks, syg00.
 
  


Reply

Tags
dualcore


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
Kernel Panic on Intel Core 2 Duo E6700 Dual Core Processor nwongrat Linux - Hardware 2 01-08-2008 10:13 PM
Fedora Core 7 on a Dell Latitude D630 Dual Core gwiesenekker Linux - Laptop and Netbook 0 10-11-2007 07:38 AM
Dual Socket Dual-Core Suse 9.3 x86_64 2.6.11 ryanhs Linux - Hardware 2 02-16-2007 04:01 AM
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
Dual processor vs. Dual core cs. single on home machine fincher69 Linux - Hardware 3 03-04-2005 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:51 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
Open Source Consulting | Domain Registration