LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2016, 04:10 PM   #1
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
the specs say single CPU but dmesg says 2 CPUs ?


from dmesg I get these lines
smpboot: CPU0: Intel(R) Atom(TM) CPU N450 @ 1.66GHz (fam: 06, model: 1c, stepping: 0a)

smpboot: Booting Node 0, Processors #1

Brought up 2 CPUs

smpboot: Total of 2 processors activated (6649.85 BogoMIPS)

from lspci I get
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller

00:02.1 Display controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller

the display adapter is built in to the CPU how come I have 2 display adapters
even /proc/cpuinfo shows processor 0 and 1 both running at different speeds

the specs all of them I have found say single CPU so who's right
the kernel or the spects
it's a HP mini 210-1040NR

Last edited by rob.rice; 04-20-2016 at 04:25 PM.
 
Old 04-20-2016, 04:14 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It's a single physical core with two threads. See "hyperthreading" for an explanation.
http://ark.intel.com/products/42503/...Cache-1_66-GHz
https://en.wikipedia.org/wiki/Hyper-threading

My experience with a very similar processor showed that hyperthreading just slowed things down, even when running a single high-CPU process on a single thread. With HT enabled, it would use ~140% CPU (out of 200%) according to top and would regularly fall behind real time and miss data. With HT disabled, it would use ~80% CPU (out of 100%) and would never miss a beat. Depending on what you do with the machine you might consider disabling it, but you should test to see how your workload compares with and without first.

Last edited by suicidaleggroll; 04-20-2016 at 04:18 PM.
 
2 members found this post helpful.
Old 04-20-2016, 05:38 PM   #3
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by suicidaleggroll View Post
It's a single physical core with two threads. See "hyperthreading" for an explanation.
http://ark.intel.com/products/42503/...Cache-1_66-GHz
https://en.wikipedia.org/wiki/Hyper-threading

My experience with a very similar processor showed that hyperthreading just slowed things down, even when running a single high-CPU process on a single thread. With HT enabled, it would use ~140% CPU (out of 200%) according to top and would regularly fall behind real time and miss data. With HT disabled, it would use ~80% CPU (out of 100%) and would never miss a beat. Depending on what you do with the machine you might consider disabling it, but you should test to see how your workload compares with and without first.
so how would I go about disabling it ?
I have some bugs with KDE when doing a lot of disk top switching and switching from X to a VT and back that it may be causing
 
Old 04-20-2016, 06:19 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You would disable it in the machine's BIOS menu. Hit F10 or whatever it is on boot and you should find it buried in the menu system.
 
Old 04-20-2016, 06:25 PM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by suicidaleggroll View Post
You would disable it in the machine's BIOS menu. Hit F10 or whatever it is on boot and you should find it buried in the menu system.
don't have that option in the BIOS
found this on line

echo 0 > /sys/devices/system/cpu1/online
BUT the path is wrong it should be
echo 0 > /sys/devices/system/cpu/cpu1/online
added it to /etc/rc.d/rc.local

every thing about this computer seems faster even loading web pages

Last edited by rob.rice; 04-20-2016 at 06:27 PM.
 
Old 04-20-2016, 07:10 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That takes the CPU offline, but leaves all the scheduler "plumbing". Look at adding nr_cpus=1 to kernel parms to ensure it can never come back online.
 
Old 04-21-2016, 12:09 PM   #7
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
I'm going to build another kernel anyway I always do to speed up booting
maybe a better option would be to turn it off in the kernel build
by not building SMP in to the kernel haven't found hyper threading in menuconfig
 
Old 04-21-2016, 12:53 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I'd just leave the HT enabled and leave SMP on. That system is so slow to being with, I doubt you'll gain anything from all that work. I guess it would be worth a test.


A number of years ago HT was really bad. Software now has caught up with it if you are running a modern distro.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
taskset - Bind several CPUs into a single process JMFA Linux - General 2 05-24-2012 10:44 AM
High CPU utilization on only one CPU out of 4 CPUs makam.sreekanth Linux - Kernel 2 09-03-2009 04:12 AM
allocate a CPU for a process out of 4 CPUS procfs Linux - Newbie 7 12-31-2007 12:28 AM
RHE 4 AS with 4 CPUs - shows 8 loaded in dmesg enzo250gto Red Hat 1 04-02-2006 09:54 PM
How to find CPU Cache ? (apart from dmesg|grep CPU) Dark Carnival Linux - Hardware 3 12-22-2005 07:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:52 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