Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › temp logs in linux
New Posts  All Forums:Forum Nav:

temp logs in linux

post #1 of 23
Thread Starter 
I'm not sure if there's an easier way to do this, but I created a script to monitor and log my cpu temps in linux. Primarily I did this to get more accurate numbers for testing coolers on a dedicated bigadv rig. This may or may not work for you, but thought I'd throw it out there for all of you just in case it helps. I run redhat, and had previously installed the sensors/lm-sensors rpms (and had to add in the coretemp kernel support for it, I also added the sensors applet), so you need to get that part working i.e. when you run "sensors" from a terminal it gives you this kind of output:

Code:
[simon@simonbeast ~]$ sensors
coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +37.0°C  (high = +80.0°C, crit = +100.0°C)  

coretemp-isa-0002
Adapter: ISA adapter
Core 2:      +41.0°C  (high = +80.0°C, crit = +100.0°C)  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +36.0°C  (high = +80.0°C, crit = +100.0°C)  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +43.0°C  (high = +80.0°C, crit = +100.0°C)
The script outputs to a csv file on my desktop which I can then open in excel and plot vs time etc. The csv file looks something like this if you were to run it every 30 seconds:

Code:
Oct 4,11:41:00,+43.0,+41.0,+39.0,+43.0
Oct 4,11:41:01,+40.0,+41.0,+42.0,+43.0
Oct 4,11:41:02,+40.0,+41.0,+42.0,+43.0
Oct 4,11:41:02,+37.0,+41.0,+41.0,+45.0
Oct 4,11:41:03,+37.0,+41.0,+41.0,+45.0
Oct 4,11:41:03,+39.0,+47.0,+36.0,+43.0
and the script is:

Code:
#!/bin/bash
date | tr -d "\
"  | sed -e "s/.\\{250\\}/&\
/g" | gawk '{print $2 " " $3 "," $4 ","}' | tr -d "\
" | cat  /home/simon/Desktop/templogs.csv - > /tmp/tempfile ; mv /tmp/tempfile /home/simon/Desktop/templogs.csv
sensors | grep "Core" | tr -d "\
" | tr -d "\
" | sed -e "s/.\\{250\\}/&\
/g" | tr -d "°C" | gawk '{print $3 "," $10 "," $17 "," $24}' | cat /home/simon/Desktop/templogs.csv - > /tmp/tempfile ; mv /tmp/tempfile /home/simon/Desktop/templogs.csv
I then set it to run every ten minutes by adding the following line to my /etc/crontab:

Code:
 *0 * * * * root /home/simon/.logtemp.script
Note this is for a quad core cpu, I'll create one for a hex core too. Also note that when running the script myself from a terminal I had to use $3 $12 $21 $30, I'm not sure why the output changes when running from crontab, but the above version should work.

Anyway I hope this is of help to someone, and if there's a better way, please let me know!
Edited by stren - 10/4/11 at 2:01pm
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
post #2 of 23
Interesting

But if one uses the 'corehack' scripts the sensors won't work, am i right? or does it still read temps?
I need upgrades
(21 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X6 1090T Foxconn A79A-S PNY GTS450 XLR8 KVR800D2N6/2G 
Hard DriveHard DriveHard DriveHard Drive
WD2500AAKS WD3200AAKS WD10EARS WD3200JB 
Optical DriveOptical DriveCoolingOS
Asus DRW-1608P2 Asus DRW-1608P2 Corsair H70 Ubuntu Server 10.10 x64 
OSMonitorKeyboardPower
Windows 7 Professional x64 SP1 ASUS VW193S Logitech EX100 LC-Power 650W 
CaseMouseAudioAudio
Coolermaster Stacker 830 SE Logitech EX100 Creative Audigy 2 ZS Creative i-Trigue L3450 
  hide details  
Reply
I need upgrades
(21 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X6 1090T Foxconn A79A-S PNY GTS450 XLR8 KVR800D2N6/2G 
Hard DriveHard DriveHard DriveHard Drive
WD2500AAKS WD3200AAKS WD10EARS WD3200JB 
Optical DriveOptical DriveCoolingOS
Asus DRW-1608P2 Asus DRW-1608P2 Corsair H70 Ubuntu Server 10.10 x64 
OSMonitorKeyboardPower
Windows 7 Professional x64 SP1 ASUS VW193S Logitech EX100 LC-Power 650W 
CaseMouseAudioAudio
Coolermaster Stacker 830 SE Logitech EX100 Creative Audigy 2 ZS Creative i-Trigue L3450 
  hide details  
Reply
post #3 of 23
Thread Starter 
Not sure, I don't use the core hack, maybe therefore there's a better way from that faq, I'll have to check it out sometime

>> edit I misread what you said. I assume if you're using the corehack that you're running a vm and then could monitor (and possibly log?) temps in windows. I'm not sure if the vm player on the host would present the hw temps to the guest OS
Edited by stren - 10/4/11 at 1:23pm
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
post #4 of 23
Quote:
Originally Posted by stren View Post
Not sure, I don't use the core hack, maybe therefore there's a better way from that faq, I'll have to check it out sometime

>> edit I misread what you said. I assume if you're using the corehack that you're running a vm and then could monitor (and possibly log?) temps in windows. I'm not sure if the vm player on the host would present the hw temps to the guest OS
well, im running the core hack on my physical nix box for my 2600k. You dont have ROG Connect to monitor temps on that board though? Works like a champ on my Gene-z.
Gene-Z Dedi
(7 items)
 
Captain America
(6 items)
 
 
CPUMotherboardRAMHard Drive
i7 2600k @ 5.2 Ghz Asus Maximus IV Gene-Z Gskill 2133 4GB Caviar Black 
CoolingOSPower
Corsair H100 Arch x64 OCZ 650 Watt 
CPUCPUMotherboardGraphics
Intel Xeon E5-2650 Intel Xeon E5-2650 ASUS Z9PE-D8 WS XFX 6870 
RAMOS
32 GB Samsung Arch Nix 
  hide details  
Reply
Gene-Z Dedi
(7 items)
 
Captain America
(6 items)
 
 
CPUMotherboardRAMHard Drive
i7 2600k @ 5.2 Ghz Asus Maximus IV Gene-Z Gskill 2133 4GB Caviar Black 
CoolingOSPower
Corsair H100 Arch x64 OCZ 650 Watt 
CPUCPUMotherboardGraphics
Intel Xeon E5-2650 Intel Xeon E5-2650 ASUS Z9PE-D8 WS XFX 6870 
RAMOS
32 GB Samsung Arch Nix 
  hide details  
Reply
post #5 of 23
I run the corehack and when I type sensors in one of them terminals it does display the temps of the cores. It doesn't auto update like realtemp in windows, so I stopped using it, that and I'd have to go fine a keyboard everytime I wanted to know.
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
post #6 of 23
Thread Starter 
Quote:
Originally Posted by JedixJarf View Post
well, im running the core hack on my physical nix box for my 2600k. You dont have ROG Connect to monitor temps on that board though? Works like a champ on my Gene-z.
This was for a different rig (920/p6t). I couldn't get rog connect to work though on my R3E when I tried it before (I didn't spend long on it though), nor the iphone app via bluetooth.
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
post #7 of 23
Thread Starter 
Quote:
Originally Posted by 0bit View Post
I run the corehack and when I type sensors in one of them terminals it does display the temps of the cores. It doesn't auto update like realtemp in windows, so I stopped using it, that and I'd have to go fine a keyboard everytime I wanted to know.
OK then it should work with this, how many cores does it display? If you share the csv file or store it on an external share then you can look at it remotely too, you could even set it to update every minute if you cared, if you only want the last minute and not a full log you can modify the script to do this also. You could also just write a script to keep looping the sensors call every minute and displaying to the terminal, or hack a cronjob to output to the terminal. But at that point, the sensors-applet might be the easiest way if you can see the screen.

Let me know if you want help with any of those
Edited by stren - 10/4/11 at 1:48pm
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
post #8 of 23
Quote:
Originally Posted by stren View Post
OK then it should work with this, how many cores does it display? If you share the csv file or store it on an external share then you can look at it remotely too, you could even set it to update every minute if you cared, if you only want the last minute and not a full log you can modify the script to do this also. You could also just write a script to keep looping the sensors call every minute and displaying to the terminal.Let me know if you want help with any of those
Yeah, I'm going to need help with everything I underlined.

It displays the 4 cores I actually have. However I'm not home at the moment, so I'll have to remember to find a keyboard when I get home.
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
post #9 of 23
Thread Starter 
Quote:
Originally Posted by 0bit View Post
Yeah, I'm going to need help with everything I underlined.

It displays the 4 cores I actually have. However I'm not home at the moment, so I'll have to remember to find a keyboard when I get home.
Ok so of the following what do you want it to do?

1. Export temps every X mins to a file which can be shared on the network?
2. Repeatedly output temps to a terminal displayed on the screen/vnc display?
3. Output temps (numbers or a graphical plot) to the "start" menu bar via the gnome-sensors-applet?
Edited by stren - 10/4/11 at 1:59pm
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
     
CPUMotherboardGraphicsRAM
i7-3930k @ 4.?GHz Rampage IV Extreme 2x 8800GT 32GB Dominator GT 2133 CL9 
Hard DriveCoolingOSMonitor
2xX25-E Raid 0, 1xC300 128GB, + Mechanicals DT 5Noz, EK full cover GPU blocks, EK full cove... RHEL 5.5 WS Dell U3011 + 2005WFP Portrait 
PowerCaseMouse
AX1200 CaseLabs TX10-D + Pedestal Razer DeathAdder 
CPUMotherboardGraphicsRAM
3930K@4.8 Rampage IV Extreme GTX580 3GB Tri SLI, GTX460 FizzyX 16GB Samsung SuperOverclockingTiny DDR3 
Hard DriveCoolingOSMonitor
Crucial M4 DT 5Noz, Koolance Full Cover GPU blocks, EK ful... Win 7 64 bit Pro Dell U3011 + 2005WFP 
PowerCaseMouseMouse Pad
EVGA NEX1500 CaseLabs TX10-D + Pedestal Logitech G5 Razer Goliathus 
Audio
Asus Essence One 
  hide details  
Reply
post #10 of 23
I'd probably be happy with #3. All I ever do now is turn on the tv attached to the folding rig to see if it's still running. If the temps for each core are displayed then it would be awesome.
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
HAF932
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600k ASUS P8P67 Deluxe EVGA gtx 450 G.SKILL Ripjaws X 4GB 
Hard DriveOptical DriveOSMonitor
Intel 510 Series 128gb LG Bluray Win 7 64bit S23A950 
PowerCase
Antec TruePower Quattro TPQ-1000 HAF 932 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Overclock.net Folding@Home Team
Overclock.net › Forums › Overclockers Care › Overclock.net Folding@Home Team › temp logs in linux