LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-09-2013, 05:55 PM   #1
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,311
Blog Entries: 24

Rep: Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263
Where does /proc/cpuinfo model name data originate?


I am performing another resurrection of an old box and just discovered that the CPU is a faster version than I had expected - pleasant surprise. But now I am confused as to what I am seeing when I cat /proc/cpuinfo. I always thought that was reported by the cpu itself - apparently not.

The motherboard is an SV266A and the CPU is AMD Athlon. When I received the corpse it had 256mb RAM and cat /proc/cpuinfo reported:

Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) 
stepping        : 0
cpu MHz         : 1248.759
...
It seemed to work fine with a good hard drive and network card so I thought it worth adding some RAM and bringing it back to life. The RAM arrived today and I had found a datasheet on the motherboard.

While setting it up I pulled the CPU heatsink and looked up the part number - and found that it is actually an 'Athlon XP2000+' CPU that operates at a higher clock rate. So I configured the motherboard and RAM timings for higher speed and it works great.

But now cat /proc/cpuinfo reports:

Code:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2000+
stepping        : 0
cpu MHz         : 1662.003
...
So obviously the model name does not come from the CPU itself, but must be looked up by the kernel based at least in part on the clock rate. In other words, reported CPU model is inferred, not read directly from the CPU.

That being the case, perhaps I should look under the heatsink on some of my other zombies!

I know this is ancient hardware for most of you, but would be curious to know if anyone else has seen this, or if I have stumbled on something known to everyone else.

NOTE: It is running Slackware -current headless.

Last edited by astrogeek; 12-09-2013 at 06:26 PM.
 
Old 12-09-2013, 06:31 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It depends on the CPU. The Athlon XP CPUs never really had the knowledge about their type, so from a software point of view the only way to determine which Athlon XP was actually in the machine was a lookup table.
This is different with modern CPUs that switch their clockspeed dependent on load, they know their type and nominal frequencies.
 
4 members found this post helpful.
Old 12-09-2013, 06:59 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 748

Rep: Reputation: Disabled
the name does come from the cpu itself
well... yes, but not human readable

"modern" cpus (past 486) have an extra opcode called cpuid that fills the registers with info on the cpu
first register then holds the stepping, model, family and such
while other hold info about the MMU, flags for extra capabilities like fpu, sse, nx etc. etc.
any program can execute it

there is a fairly detailed example on wikipedia


i guess the commercial name changed 'cuz AMD made more then one series with exactly the same core (they maybe changed a few things not related to the architecture)
so the kernel guessed based on the base frequency

when that series went out the "war" with intel was flamin' if i remember right


edit: TobiSGD said it good, i just misinterpreted "type" for the general info
this still stands thou, just less on topic

Last edited by genss; 12-09-2013 at 08:25 PM.
 
2 members found this post helpful.
Old 12-10-2013, 01:00 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,311

Original Poster
Blog Entries: 24

Rep: Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263
Thanks TobiSGD and genss - exactly what I was looking for , very helpful!

I had a mental note that CPUs included such info since Pentium days, but did not really know the specifics. When I saw the reported model name change based on clock freq instead of the other way around I found it a little confusing.

Marking solved.
 
  


Reply


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
It is possible to modify the /proc/cpuinfo ? fc3_fan Linux - Newbie 21 01-30-2013 03:43 PM
/proc/cpuinfo doubt..? roolit Linux - Hardware 1 02-14-2011 08:37 AM
proc/cpuinfo question pilot117 Linux - Hardware 1 03-07-2010 08:49 PM
Proc/CpuInfo sipsipi Linux - Software 4 03-03-2006 12:42 PM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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