Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › should I use dmidecode?
New Posts  All Forums:Forum Nav:

should I use dmidecode?

Poll Results: What should I do?

Poll expired: Aug 22, 2007  
  • 0% (0)
    Just use dmidecode. Who cares if its not 100% true for everyone.
  • 33% (1)
    Write a program to talk to the cpu directly.
  • 66% (2)
    Use dmidecode for, work on pulling more cpu info out later.
3 Total Votes  
post #1 of 3
Thread Starter 
I'd like to know what you guys think about this.

I'm trying to decide if I should use dmidecode or not for the application I'm working on.
The issue: dmidecode is known to sometimes to not be reliable because it gets its info from the BIOS (it really just grabs DMI data from the BIOS) which is sometimes not true.
So I was thinking of just communicating to the cpu directly.
The issue: This will take a lot of time and can be considered unsafe to do.

The third option I'm considering is using dmidecode for now and then later write a C program to talk to the kernel module 'cpuid'(/dev/cpu/*/{cpuid, msr}) to get better/more reliable data.

Thanks to anyone that gives some feed back.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #2 of 3
Why is it considered unsafe?

That concern aside, I would say do it with dmidecode first if you can do it easily. There should be something to work towards for version 0.2
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
post #3 of 3
Thread Starter 
Quote:
Originally Posted by rabidgnome229 View Post
Why is it considered unsafe?

That concern aside, I would say do it with dmidecode first if you can do it easily. There should be something to work towards for version 0.2
I have just read that it was considered unsafe. I didn't think that it would be if it was all read only.

I think the route I'll go is dmidecode and then attempt to not have to depend on it later.
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › should I use dmidecode?