Skip to content

Commit ac84a22

Browse files
authored
Replace master branch with page content via GitHub
1 parent eed27ae commit ac84a22

File tree

3 files changed

+268
-886
lines changed

3 files changed

+268
-886
lines changed

index.html

Lines changed: 49 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en-us">
33
<head>
4-
<meta charset='utf-8'>
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7-
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
4+
<meta charset="UTF-8">
5+
<title>CPU Hackers by CPUhackers</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
8+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
89
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
910
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
10-
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
11-
12-
<!--[if lt IE 9]>
13-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14-
<![endif]-->
15-
16-
<title>CPU Hackers by CPUhackers</title>
1711
</head>
18-
1912
<body>
20-
<header>
21-
<div class="inner">
22-
<h1>CPU Hackers</h1>
23-
<h2>Where we tinker with the inner core and share the results</h2>
24-
<a href="https://github.com/CPUhackers" class="button"><small>Follow me on</small> GitHub</a>
25-
</div>
26-
</header>
27-
28-
<div id="content-wrapper">
29-
<div class="inner clearfix">
30-
<section id="main-content">
31-
<h2>
13+
<section class="page-header">
14+
<h1 class="project-name">CPU Hackers</h1>
15+
<h2 class="project-tagline">Where we tinker with the inner core and share the results</h2>
16+
</section>
17+
18+
<section class="main-content">
19+
<h2>
3220
<a id="how-to-change-the-cpu-frequency" class="anchor" href="#how-to-change-the-cpu-frequency" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>How To Change The CPU Frequency?</h2>
3321

3422
<h3>
@@ -513,15 +501,45 @@ <h2>
513501
</tr>
514502
</tbody>
515503
</table>
516-
</section>
517504

518-
<aside id="sidebar">
505+
<table>
506+
<thead>
507+
<tr>
508+
<th>Program</th>
509+
<th>Ondemand(s)</th>
510+
<th>Tebalo(s)</th>
511+
</tr>
512+
</thead>
513+
<tbody>
514+
<tr>
515+
<td>Graph 0.3k 0.3k</td>
516+
<td>18.52</td>
517+
<td>20.24</td>
518+
</tr>
519+
<tr>
520+
<td>Graph 0.5k 0.5k</td>
521+
<td>27.45</td>
522+
<td>28.42</td>
523+
</tr>
524+
<tr>
525+
<td>Graph 0.7k 0.7k</td>
526+
<td>48.52</td>
527+
<td>52.24</td>
528+
</tr>
529+
<tr>
530+
<td>Graph 1k 1k</td>
531+
<td>84.33</td>
532+
<td>88.41</td>
533+
</tr>
534+
</tbody>
535+
</table>
536+
537+
<footer class="site-footer">
519538

539+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
540+
</footer>
520541

521-
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p>
522-
</aside>
523-
</div>
524-
</div>
542+
</section>
525543

526544

527545
</body>

params.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "CPU Hackers",
33
"tagline": "Where we tinker with the inner core and share the results",
4-
"body": "\r\n\r\n##How To Change The CPU Frequency?\r\n\r\n###Installation\r\n\r\n```\r\nsudo apt-get install cpufrequtils\r\n```\r\n\r\n###Running\r\n\r\nSave the below in a set_freq.sh file\r\n```sh\r\nsudo cpufreq-set -c0 -g userspace\r\nsudo cpufreq-set -c1 -g userspace\r\nsudo cpufreq-set -c2 -g userspace\r\nsudo cpufreq-set -c3 -g userspace\r\n\r\nsudo cpufreq-set -c0 -f $1GHz\r\nsudo cpufreq-set -c1 -f $1GHz\r\nsudo cpufreq-set -c2 -f $1GHz\r\nsudo cpufreq-set -c3 -f $1GHz\r\n\r\n\r\ncat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq\r\n\r\n```\r\n\r\nNow execute \r\n\r\n```\r\nchmod +x set_freq.sh\r\n```\r\n\r\nTo change the frequncy exeucute the below command\r\n\r\n```\r\n./set_freq.sh 2.2\r\n```\r\n\r\nThe available freqencies can be found by \r\n\r\n```\r\nmore cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies\r\n```\r\n\r\n##Running Benchmarks\r\n\r\nWe used [Lulesh benchmark](https://codesign.llnl.gov/lulesh.php) for studying the change in temperature and execution time with change in frequency\r\n\r\n##Results\r\n\r\n| Frequency | Temp Core 1 ℃ | Temp Core ℃ | Execution Time in Seconds |\r\n| ------------- |:-------------:| -----:| ----:|\r\n| 1197000 | 35 | 37 | 79.65 |\r\n| 2261000 | 39 | 43 | 40.34 |\r\n| 2394000 | 39 | 43 | 39.49 |\r\n| 2527000 | 41 | 44 | 37.05 |\r\n| 2660000 | 43 | 45 | 35.52 |\r\n| 2793000 | 43 | 45 | 34.26 |\r\n| 2926000 | 43 | 46 | 33.70 |\r\n| 3059000 | 44 | 47 | 32.27 |\r\n| 3192000 | 45 | 48 | 30.74 |\r\n| 3193000 | 45 | 50 | 31.15 |\r\n\r\n\r\n\r\n### Frequency vs Tempararture Graph\r\n\r\n![Temparature-Frequency](images/freq-temp.png) \r\n\r\n### Frequency vs Time Graph\r\n\r\n![Time-Frequency](images/time-freq.png) \r\n\r\n##Temparature reading in HPC Computer\r\n\r\n![Silp Temparature Reading](images/temparature-silp.png)\r\n\r\n##How to read CPU voltage for 64 bit computer\r\n\r\n```bash\r\n sudo apt-get install msr-tools\r\n sudo modprobe msr\r\n sudo rdmsr 408 --bitfield 47:32 --decimal --processor 0\r\n ```\r\n \r\nThe value of register 408(x198) can be used to calculate the value of voltage. \r\nThe value obtained from 32:47 bits on multiplying with (1 / 2^^13) gives the voltage.\r\n\r\n##Comparison of Frequency Vs Voltage\r\n\r\n\r\n|Max Frequency| Max Voltage |Min Voltage |\r\n|---------|:-------------:|-------:|\r\n|1.2 GHz|0.86890 Volt|0.70386 Volt|\r\n|1.4 GHz|0.86890 Volt|0.71838 Volt|\r\n|1.6 GHz|0.86890 Volt|0.73291 Volt|\r\n|1.8 GHz|0.86890 Volt|0.75232 Volt|\r\n|2.0 GHz|0.87366 Volt|0.81055 Volt|\r\n|2.2 GHz|0.87366 Volt|0.80579 Volt|\r\n|2.4 GHz|0.90771 Volt|0.86890 Volt|\r\n\r\n\r\n###Graph\r\n\r\n![Freq vs Voltage](images/freqvsvol.png)\r\n\r\n##Time for Various Programs \r\n\r\n|Program |Userspace Time| Ondemand Time|\r\n|--------------------|--------------|--------------|\r\n|Compress 10gb file|01:55 Min|01:20 Min|\r\n|Lulesh2.0|48.41 Sec|42.99 Sec|\r\n|Convert File To Pdf - LibreOffice|6.41 Sec |4.30 Sec|\r\n|Copy 1 GB|16.128 Sec|17.356 Sec|\r\n\r\n##Comparison of Governors\r\n\r\n##Time\r\n\r\n|Program |Ondemand |Conservative | Powersave| Performance| Rounder @ 1| Rounder @ 2| Rounder @ 5|\r\n|--------------|-------------|--------------|----------|------------|------------|------------|------------|\r\n|Lulesh @ 30 |29.76\t\t |31.35 |74.26 |30.89 |43.21 |41.91 |43.46 |\r\n|Lulesh @ 35 |56.16 |56.80 |132.25 |57.02 |79.10 |82.87 |77.30 |\r\n|Lulesh @ 40 |97.24 |96.40 |215.02 |95.29 |136.79 |128.67 |132.02 |\r\n|Lulesh @ 45 |159.65 |175.90 |359.83 |157.57 |217.00 |225.11 |209.52 |\r\n\r\n\r\n##Max Temparatue \r\n\r\n|Program |Ondemand |Conservative | Powersave|Performance| Rounder @ 1 |Rounder @ 2 |Rounder @ 5 |\r\n|--------------|-------------|--------------|-----------|-----------| ------------|------------|------------|\r\n|Lulesh @ 30 |58,57\t\t |56,55 |44,43 |56,55 |55,53 |56,55 |55,53 |\r\n|Lulesh @ 35 |58,56 |58,56 |45,44 |57,56 |56,55 |56,55 |55,53 |\r\n|Lulesh @ 40 |60,58 |60,59 |45,44 |59,57 |57,56 |58,56 |57,54 |\r\n|Lulesh @ 45 |59, 57 |60,57 |44,42 |63,57 |57,55 |57,55 |58,56 |\r\n\r\n\r\n\r\n##Min Temparatue\r\n\r\n\r\n|Program |Ondemand |Conservative |Powersave|Performance| Rounder @ 1|Rounder @ 2|Rounder @ 5|\r\n|--------------|-------------|--------------|---------|-----------|------------|-----------|-----------|\r\n|Lulesh @ 30 |44,43\t\t |39,40 |40,40 | 42,42 | 41, 41 |41,39\t |39,38 |\r\n|Lulesh @ 35 |41,40 |39,39 |39,39 | 44,42 | 39, 39 |40,39 |41,39 |\r\n|Lulesh @ 40 |41,41 \t |41,40 |39,39 | 47,45 | 40, 40 |41,40 |42,40 |\r\n|Lulesh @ 45 |37, 36 |39,37 |38,37 | 43,40 | 42, 40 |40,39 |41,39 |\r\n\r\n\r\n##Average Temparature\r\n\r\n\r\n|Program \t|Ondemand |Conservative |Powersave |Performance | Rounder @ 1 |Rounder @ 2 | Rounder @5| \r\n|--------------|-----------------|--------------|--------------|------------|--------------|------------|------------|\r\n|Lulesh @ 30 |56.63,55.35\t\t |54.11, 52.81 |42.53, 41.92 |53.53,52.67 | 49.68, 48.22 |49.22,47.97 |49.03,46.55 |\r\n|Lulesh @ 35 |55.32,53.96 |55.01, 53.62 |43.46,42.32 |55.37,53.79 | 49.57, 48.52 |50.04,48.94 |48.36,46.01 |\r\n|Lulesh @ 40 |57.01,55.38 |57.09, 55.80 |43.71,42.67 |56.63,55.08 | 50.79, 49.79 |51.21,50.01 |50.05,47.76 |\r\n|Lulesh @ 45 |55.51,52.91 |56.34, 53.82 |43.08, 40.57 |56.72,53.75 | 50.65, 48.16 |50.99,48.60 |50.68,48.57 |\r\n",
4+
"body": "\r\n\r\n##How To Change The CPU Frequency?\r\n\r\n###Installation\r\n\r\n```\r\nsudo apt-get install cpufrequtils\r\n```\r\n\r\n###Running\r\n\r\nSave the below in a set_freq.sh file\r\n```sh\r\nsudo cpufreq-set -c0 -g userspace\r\nsudo cpufreq-set -c1 -g userspace\r\nsudo cpufreq-set -c2 -g userspace\r\nsudo cpufreq-set -c3 -g userspace\r\n\r\nsudo cpufreq-set -c0 -f $1GHz\r\nsudo cpufreq-set -c1 -f $1GHz\r\nsudo cpufreq-set -c2 -f $1GHz\r\nsudo cpufreq-set -c3 -f $1GHz\r\n\r\n\r\ncat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq\r\ncat /sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq\r\n\r\n```\r\n\r\nNow execute \r\n\r\n```\r\nchmod +x set_freq.sh\r\n```\r\n\r\nTo change the frequncy exeucute the below command\r\n\r\n```\r\n./set_freq.sh 2.2\r\n```\r\n\r\nThe available freqencies can be found by \r\n\r\n```\r\nmore cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies\r\n```\r\n\r\n##Running Benchmarks\r\n\r\nWe used [Lulesh benchmark](https://codesign.llnl.gov/lulesh.php) for studying the change in temperature and execution time with change in frequency\r\n\r\n##Results\r\n\r\n| Frequency | Temp Core 1 ℃ | Temp Core ℃ | Execution Time in Seconds |\r\n| ------------- |:-------------:| -----:| ----:|\r\n| 1197000 | 35 | 37 | 79.65 |\r\n| 2261000 | 39 | 43 | 40.34 |\r\n| 2394000 | 39 | 43 | 39.49 |\r\n| 2527000 | 41 | 44 | 37.05 |\r\n| 2660000 | 43 | 45 | 35.52 |\r\n| 2793000 | 43 | 45 | 34.26 |\r\n| 2926000 | 43 | 46 | 33.70 |\r\n| 3059000 | 44 | 47 | 32.27 |\r\n| 3192000 | 45 | 48 | 30.74 |\r\n| 3193000 | 45 | 50 | 31.15 |\r\n\r\n\r\n\r\n### Frequency vs Tempararture Graph\r\n\r\n![Temparature-Frequency](images/freq-temp.png) \r\n\r\n### Frequency vs Time Graph\r\n\r\n![Time-Frequency](images/time-freq.png) \r\n\r\n##Temparature reading in HPC Computer\r\n\r\n![Silp Temparature Reading](images/temparature-silp.png)\r\n\r\n##How to read CPU voltage for 64 bit computer\r\n\r\n```bash\r\n sudo apt-get install msr-tools\r\n sudo modprobe msr\r\n sudo rdmsr 408 --bitfield 47:32 --decimal --processor 0\r\n ```\r\n \r\nThe value of register 408(x198) can be used to calculate the value of voltage. \r\nThe value obtained from 32:47 bits on multiplying with (1 / 2^^13) gives the voltage.\r\n\r\n##Comparison of Frequency Vs Voltage\r\n\r\n\r\n|Max Frequency| Max Voltage |Min Voltage |\r\n|---------|:-------------:|-------:|\r\n|1.2 GHz|0.86890 Volt|0.70386 Volt|\r\n|1.4 GHz|0.86890 Volt|0.71838 Volt|\r\n|1.6 GHz|0.86890 Volt|0.73291 Volt|\r\n|1.8 GHz|0.86890 Volt|0.75232 Volt|\r\n|2.0 GHz|0.87366 Volt|0.81055 Volt|\r\n|2.2 GHz|0.87366 Volt|0.80579 Volt|\r\n|2.4 GHz|0.90771 Volt|0.86890 Volt|\r\n\r\n\r\n###Graph\r\n\r\n![Freq vs Voltage](images/freqvsvol.png)\r\n\r\n##Time for Various Programs \r\n\r\n|Program |Userspace Time| Ondemand Time|\r\n|--------------------|--------------|--------------|\r\n|Compress 10gb file|01:55 Min|01:20 Min|\r\n|Lulesh2.0|48.41 Sec|42.99 Sec|\r\n|Convert File To Pdf - LibreOffice|6.41 Sec |4.30 Sec|\r\n|Copy 1 GB|16.128 Sec|17.356 Sec|\r\n\r\n##Comparison of Governors\r\n\r\n##Time\r\n\r\n|Program |Ondemand |Conservative | Powersave| Performance| Rounder @ 1| Rounder @ 2| Rounder @ 5|\r\n|--------------|-------------|--------------|----------|------------|------------|------------|------------|\r\n|Lulesh @ 30 |29.76\t\t |31.35 |74.26 |30.89 |43.21 |41.91 |43.46 |\r\n|Lulesh @ 35 |56.16 |56.80 |132.25 |57.02 |79.10 |82.87 |77.30 |\r\n|Lulesh @ 40 |97.24 |96.40 |215.02 |95.29 |136.79 |128.67 |132.02 |\r\n|Lulesh @ 45 |159.65 |175.90 |359.83 |157.57 |217.00 |225.11 |209.52 |\r\n\r\n\r\n##Max Temparatue \r\n\r\n|Program |Ondemand |Conservative | Powersave|Performance| Rounder @ 1 |Rounder @ 2 |Rounder @ 5 |\r\n|--------------|-------------|--------------|-----------|-----------| ------------|------------|------------|\r\n|Lulesh @ 30 |58,57\t\t |56,55 |44,43 |56,55 |55,53 |56,55 |55,53 |\r\n|Lulesh @ 35 |58,56 |58,56 |45,44 |57,56 |56,55 |56,55 |55,53 |\r\n|Lulesh @ 40 |60,58 |60,59 |45,44 |59,57 |57,56 |58,56 |57,54 |\r\n|Lulesh @ 45 |59, 57 |60,57 |44,42 |63,57 |57,55 |57,55 |58,56 |\r\n\r\n\r\n\r\n##Min Temparatue\r\n\r\n\r\n|Program |Ondemand |Conservative |Powersave|Performance| Rounder @ 1|Rounder @ 2|Rounder @ 5|\r\n|--------------|-------------|--------------|---------|-----------|------------|-----------|-----------|\r\n|Lulesh @ 30 |44,43\t\t |39,40 |40,40 | 42,42 | 41, 41 |41,39\t |39,38 |\r\n|Lulesh @ 35 |41,40 |39,39 |39,39 | 44,42 | 39, 39 |40,39 |41,39 |\r\n|Lulesh @ 40 |41,41 \t |41,40 |39,39 | 47,45 | 40, 40 |41,40 |42,40 |\r\n|Lulesh @ 45 |37, 36 |39,37 |38,37 | 43,40 | 42, 40 |40,39 |41,39 |\r\n\r\n\r\n##Average Temparature\r\n\r\n\r\n|Program \t|Ondemand |Conservative |Powersave |Performance | Rounder @ 1 |Rounder @ 2 | Rounder @5| \r\n|--------------|-----------------|--------------|--------------|------------|--------------|------------|------------|\r\n|Lulesh @ 30 |56.63,55.35\t\t |54.11, 52.81 |42.53, 41.92 |53.53,52.67 | 49.68, 48.22 |49.22,47.97 |49.03,46.55 |\r\n|Lulesh @ 35 |55.32,53.96 |55.01, 53.62 |43.46,42.32 |55.37,53.79 | 49.57, 48.52 |50.04,48.94 |48.36,46.01 |\r\n|Lulesh @ 40 |57.01,55.38 |57.09, 55.80 |43.71,42.67 |56.63,55.08 | 50.79, 49.79 |51.21,50.01 |50.05,47.76 |\r\n|Lulesh @ 45 |55.51,52.91 |56.34, 53.82 |43.08, 40.57 |56.72,53.75 | 50.65, 48.16 |50.99,48.60 |50.68,48.57 |\r\n\r\n|Program |Ondemand(s) |Tebalo(s) |\r\n|--------------- |----------|---------|\r\n|Graph 0.3k 0.3k |18.52 |20.24 |\r\n|Graph 0.5k 0.5k |27.45 |28.42 |\r\n|Graph 0.7k 0.7k |48.52 |52.24 |\r\n|Graph 1k 1k |84.33 |88.41 |\r\n\r\n",
55
"google": "",
66
"note": "Don't delete this file! It's used internally to help with page regeneration."
77
}

0 commit comments

Comments
 (0)