LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-17-2006, 02:48 AM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
Dual Core


Hey guys I have a dual core cpu and I was just wondering how I could check if FC5 is using the processor to its fullist potential.
Thanks,
nate
 
Old 08-17-2006, 11:08 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Not sure what you mean by "fullist potential" but if you want to see if both are detected then use cat /proc/cpuinfo or top then hit the 1 key and it will show both processors and the load on each.
 
Old 08-17-2006, 05:20 PM   #3
Ehwaz
Member
 
Registered: Aug 2006
Distribution: FC, Mandriva, Suse
Posts: 52

Rep: Reputation: 15
Not sure whether you should use the SMP core for that, since it's not 2 physical cores, but see what FC has detected by running cat /proc/cpuinfo or cpufreq-info
If you see 2 CPU's then your dual core CPU is enabled.
 
Old 08-17-2006, 05:46 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by Ehwaz
Not sure whether you should use the SMP core for that, since it's not 2 physical cores, but see what FC has detected by running cat /proc/cpuinfo or cpufreq-info
If you see 2 CPU's then your dual core CPU is enabled.
That is wrong. A dual core processor is the same as 2 one core processor system. The kernel have to be compiled for SMP or the other processor will just idle. If you are thinking of Hyperthreading, then yes it is not two phyiscal processors.
 
Old 08-18-2006, 12:49 AM   #5
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
This is what I got. Guess this means it is working well. I am runnig a smp kernel.

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3330.56

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3325.22

just an idea is there anyway to set affinity per program?
 
Old 08-18-2006, 02:23 AM   #6
Ehwaz
Member
 
Registered: Aug 2006
Distribution: FC, Mandriva, Suse
Posts: 52

Rep: Reputation: 15
If your running DC programs, they usually have a flag that you can set for each core (through the means of a "Machine ID"/"Affinity")
But usually the OS decides by itself how to spread tasks over the cores evenly.
 
Old 08-18-2006, 08:11 AM   #7
jfs_linux
LQ Newbie
 
Registered: Aug 2005
Distribution: Suse
Posts: 3

Rep: Reputation: 0
A more graphical answer is KDE Ksysguard. It has several plots showing each CPUs load.
 
Old 08-18-2006, 11:01 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by nomb
This is what I got. Guess this means it is working well. I am runnig a smp kernel.

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3330.56

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2300 @ 1.66GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips : 3325.22

just an idea is there anyway to set affinity per program?
No need to set affinity if the program is multi-threaded it will use both processors although a quick search here on Debian reveals schedutils which seems to be what you would want for it.

Code:
>$ apt-cache search show schedutils
Package: schedutils
Priority: optional
Section: utils
Installed-Size: 84
Maintainer: Guus Sliepen <guus@debian.org>
Architecture: amd64
Version: 1.4.0-1
Depends: libc6 (>= 2.3.5-1)
Filename: pool/main/s/schedutils/schedutils_1.4.0-1_amd64.deb
Size: 16484
MD5sum: 59eecf7462463f322cc9237e2828a689
SHA1: 3c413ffbd8cdeaf3338f218813c2bb81bbb4a2d0
SHA256: 9063067e02db5aa2215e5ddef2fc79738e83831d119b5e4a7ad72883cfe672fd
Description: Linux scheduler utilities
 These are the Linux scheduler utilities - schedutils for short. These programs
 take advantage of the scheduler family of syscalls that Linux implements across
 various kernels. These system calls implement interfaces for scheduler-related
 parameters such as CPU affinity and real-time attributes. The standard UNIX
 utilities do not provide support for these interfaces -- thus this package.
 .
 The programs that are included in this package are taskset and chrt. Together
 with nice and renice (not included), they allow full control of process
 scheduling parameters. Suggestions for related utilities are welcome, although
 it is believed (barring new interfaces) that all scheduling interfaces are
 covered.
Tag: admin::kernel, interface::commandline, role::sw:utility, works-with::software:running
 
  


Reply



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
Dual Socket Dual-Core Suse 9.3 x86_64 2.6.11 ryanhs Linux - Hardware 2 02-16-2007 04:01 AM
Dual Xeon appears as dual-core in 6.1 thanos155 *BSD 4 05-19-2006 12:00 PM
Dual Core Dual Opteron Motherboards? teamchachi Linux - Hardware 0 04-03-2006 05:38 PM
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 10:47 PM.

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