Code Monkey home page Code Monkey logo

Comments (6)

wdlkmpx avatar wdlkmpx commented on June 15, 2024

For example P-4 Celeron Willamette

Facts:
Produced only for socket 478 mPGA
techonlogy: 180nm
FSB 400mhz

http://www.cpu-world.com/CPUs/Celeron/TYPE-Celeron (Willamette).html

# cpu-z
Processor : Intel(R) Celeron(R) CPU 1.80GHz
Code name : P-4 Celeron (Willamette-128)
Cache size: 128 KB
Socket    : 478 mPGA
Bus speed : 400 MHz
Technology: 180 nm        Arch: 32 bits
Cores     : 1
Threads   : 2
Flags     : 
            fpu vme de pse tsc msr pae
            mce cx8 apic mtrr sep pge mca
            cmov pat pse36 clflush dts acpi mmx
            fxsr sse sse2 ss ht tm 

from libcpuid.

wdlkmpx avatar wdlkmpx commented on June 15, 2024

Actually it might not be a good idea, i'm writing a shell script to handle every situation. Perhaps it could be accepted as an extra in about 2 months?

from libcpuid.

anrieff avatar anrieff commented on June 15, 2024

Yes, I'm thinking libcpuid has to remain a purely CPU detection library. We discussed that previously in issue #8 . Additional, catalogue-like data, is welcome in a non-code format, like a SQL dump, a XML, or anything else suitable to the task (indeed, whatever you choose, it's going to have a lot of repetitive info).

from libcpuid.

wdlkmpx avatar wdlkmpx commented on June 15, 2024

I see.

By the way, I think there is a bug regarding HyperThreading (num_logical_cpus > 1) in p4 cpus. As you can see from the example above there is no way such a primitive p4 celeron can do hyperthreading, but has the HT flag... which is misleading. Right I'm with another processor (but quite similar), as you can see here:

This is the output 'lscpu'... 1 thread:

Architecture:          i686
CPU op-mode(s):        32-bit
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 2
Model name:            Intel(R) Celeron(R) CPU 2.50GHz
Stepping:              9
CPU MHz:               2500.000
CPU max MHz:           2500.0000
CPU min MHz:           312.5000
BogoMIPS:              5001.32
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr

Some interesting pages:
http://unix.stackexchange.com/questions/33450/checking-if-hyperthreading-is-enabled-or-not

Interesting pages:

http://unix.stackexchange.com/questions/33450/checking-if-hyperthreading-is-enabled-or-not
http://fibrevillage.com/sysadmin/155-how-to-tell-if-cpu-hyperthreading-enabled-on-linux
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/tree/sys-utils/lscpu.c

from libcpuid.

wdlkmpx avatar wdlkmpx commented on June 15, 2024

Actually even an Atom (Diamonville) processor has the HT flag, and it shows 'num_logical: 2' which is not the case...

from libcpuid.

wdlkmpx avatar wdlkmpx commented on June 15, 2024

Well I was wrong, Atom (Diamondville) processors do have 2 'threads'.

Having said that, I have a fix for this, I'll make a pull request later. I'll add a test for Pentium 4 Prescott 3.2GHz with HT enabled, so you can see.

from libcpuid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.