Setting to High Performance The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraCPU Frequency is allways the lowest possible (and high CPU usage)Ubuntu 18.04 LTS performs badi3 core performance problemsCan an external flash or hard drive be used to boost performance, similar to Windows' ReadyBoost?high performance with xen, vmware or virtualboxPower Savings and Performance Modes on Ubuntu SystemLubuntu on ASUS 1215Automatic switching between performance and powersave mode on plugging in/out the power supplyHow to automatically swith between Performance mode and Power Saving mode?Weird behavior of battery level and notebook performanceUbuntu 18 & Thinkpad P51 - Slow Performance without Power SupplyWhat Linux kernel interfaces does the System76 Gnome Power Management extension use to set CPU governor policies?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
Simulating Exploding Dice
What can I do to 'burn' a journal?
Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?
Single author papers against my advisor's will?
ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?
What aspect of planet Earth must be changed to prevent the industrial revolution?
How did passengers keep warm on sail ships?
Why can't wing-mounted spoilers be used to steepen approaches?
Why doesn't shell automatically fix "useless use of cat"?
Identify 80s or 90s comics with ripped creatures (not dwarves)
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Make it rain characters
Why did Peik Lin say, "I'm not an animal"?
Would an alien lifeform be able to achieve space travel if lacking in vision?
Is an up-to-date browser secure on an out-of-date OS?
Is this wall load bearing? Blueprints and photos attached
What happens to a Warlock's expended Spell Slots when they gain a Level?
Why doesn't a hydraulic lever violate conservation of energy?
Sub-subscripts in strings cause different spacings than subscripts
Keeping a retro style to sci-fi spaceships?
"is" operation returns false even though two objects have same id
One-dimensional Japanese puzzle
Was credit for the black hole image misappropriated?
Setting to High Performance
The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraCPU Frequency is allways the lowest possible (and high CPU usage)Ubuntu 18.04 LTS performs badi3 core performance problemsCan an external flash or hard drive be used to boost performance, similar to Windows' ReadyBoost?high performance with xen, vmware or virtualboxPower Savings and Performance Modes on Ubuntu SystemLubuntu on ASUS 1215Automatic switching between performance and powersave mode on plugging in/out the power supplyHow to automatically swith between Performance mode and Power Saving mode?Weird behavior of battery level and notebook performanceUbuntu 18 & Thinkpad P51 - Slow Performance without Power SupplyWhat Linux kernel interfaces does the System76 Gnome Power Management extension use to set CPU governor policies?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When I had Windows 8.1, there was a power option for "High Performance" which allowed higher performance at the cost of power supply.
Is there a way to set my power option to "High Performance" on Linux?
power-management performance
add a comment |
When I had Windows 8.1, there was a power option for "High Performance" which allowed higher performance at the cost of power supply.
Is there a way to set my power option to "High Performance" on Linux?
power-management performance
add a comment |
When I had Windows 8.1, there was a power option for "High Performance" which allowed higher performance at the cost of power supply.
Is there a way to set my power option to "High Performance" on Linux?
power-management performance
When I had Windows 8.1, there was a power option for "High Performance" which allowed higher performance at the cost of power supply.
Is there a way to set my power option to "High Performance" on Linux?
power-management performance
power-management performance
asked Apr 3 '15 at 4:50
OkariOkari
36112
36112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check what is currently in use with this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
To change your processor to performance mode use:
$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
You will then notice CPU% utilization drop by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

I have noticed that even when set to powersave mode (as I always use) when Ubuntu first boots it runs in performance mode for 90 seconds before it eventually kicks into powersave mode.
None-the-less after manually setting the governor to performance mode using the appropriate command above. It has stayed in performance mode for 10 minutes now as confirmed by using the appropriate command above and doubly confirmed by conky display above.
I left the governor set on performance for 30 minutes and it worked just fine. It might interest some readers what the conky display looks like when switching off of performance governor back to the default powersave governor:

CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall I think powersave mode is the best for most configurations.
Conky Code
April 12, 2019 - Someone requested conky code so I'm including today's version. The refresh rate is set at 2.5 seconds today whereas in .gifs it's probably 1 second or .75 second. I've edited the code a bit here because mine is setup for three monitors and most people will have one monitor.
The storage section is a little tricky. You need to change the device names to your own and there are if tests if a partition isn't mounted shows system information like cache and buffers.
override_utf8_locale yes
use_xft yes
xftfont ubuntu:size=10.5
xftalpha 0.5
uppercase no
no_buffers yes # Subtract cached and buffered ram from memory usage.
short_units yes # Use "G" instead of "GiB"
text_buffer_size 2048
update_interval 2.5 # change to .001 for 1000 times per second stress test
own_window_class Conky
own_window yes
own_window_type dock
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 145 # semi-transparent
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
alignment top_right
draw_shades yes
# off-white
default_color ECEAE4
# blue
color1 1EB5FF
# light blue
color2 30DDFB
# dark blue
color3 0090ff
# lime
color4 98FF76
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
TEXT
#------------+
# Distro |
#------------+
$colorToday is:$color green$alignr$time %A,$alignr $time %e %B %G
$colorDistribution:$color green$alignr $execi 6300 cat /etc/issue.net $machine
$colorKernel:$alignr$color green $kernel
$color orange$voffset 2$hr 1
#------------+
# i7-6700 CPU|
#------------+
$color2$voffset 5Intel® i-7 6700HQ 3.5 GHz: $color1@ $color green$freq MHz
$color$goto 13CPU 0 $goto 81$color green$cpu cpu1% $goto 131$color3$cpubar cpu1 18
#$cpugauge cpu1 20,40
#$cpugraph 1 15,200 555555 AAAAAA -l
$color$goto 13CPU 1 $goto 81$color green$cpu cpu2% $goto 131$color3$cpubar cpu2 18
$color$goto 13CPU 2 $goto 81$color green$cpu cpu3% $goto 131$color3$cpubar cpu3 18
$color$goto 13CPU 3 $goto 81$color green$cpu cpu4% $goto 131$color3$cpubar cpu4 18
$color$goto 13CPU 4 $goto 81$color green$cpu cpu5% $goto 131$color3$cpubar cpu5 18
$color$goto 13CPU 5 $goto 81$color green$cpu cpu6% $goto 131$color3$cpubar cpu6 18
$color$goto 13CPU 6 $goto 81$color green$cpu cpu7% $goto 131$color3$cpubar cpu7 18
$color$goto 13CPU 7 $goto 81$color green$cpu cpu8% $goto 131$color3$cpubar cpu8 18
#------------+
# Temperature|
#------------+
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$ cut -c1-2°C $alignr$color1Up: $color green$uptime
# Next line is for kernel >= 4.13.0-36-generic
$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 1 temp 1°C $alignr$color1Up: $color green$uptime
# Next line is for temperature with Kerenel 4.4
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 0 temp 1°C $alignr$color1Up: $color green$uptime
$color green$running_processes $color1running of $color green$processes $color1loaded processes.
$color1Load Average 1-5-15 minutes: $alignr$color green$ bc -l $ bc -l $ bc -l
#------------+
# Intel iGPU |
#------------+
$color orange$hr 1$if_match "intel" == "$execpi 99999 prime-select query"
$color2$voffset 5Intel® Skylake GT2 HD 530 iGPU @$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_cur_freq_mhz) MHz
$color$goto 13Min. Freq:$goto 120$color green$execpi .001 (cat /sys/class/drm/card1/gt_min_freq_mhz) MHz$color$goto 210Max. Freq:$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_max_freq_mhz) MHz
$color orange$hr 1$else
#------------+
# Nvidia GPU |
#------------+
$color2$voffset 5$execpi .001 (nvidia-smi --query-gpu=gpu_name --format=csv,noheader) $color1@ $color green$execpi .001 (nvidia-smi --query-gpu=clocks.sm --format=csv,noheader) $alignr$color1Temp: $color green$execpi .001 (nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)°C
$color1$voffset 5Ver: $color green$execpi .001 (nvidia-smi --query-gpu=driver_version --format=csv,noheader) $color1 P-State: $color green$execpi .001 (nvidia-smi --query-gpu=pstate --format=csv,noheader) $alignr$color1BIOS: $color green$execpi .001 (nvidia-smi --query-gpu=vbios_version --format=csv,noheader)
$color1$voffset 5GPU:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader) $color1Ram:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.memory --format=csv,noheader) $color1Pwr:$color green$execpi .001 (nvidia-smi --query-gpu=power.draw --format=csv,noheader) $alignr$color1Freq: $color green$execpi .001 (nvidia-smi --query-gpu=clocks.mem --format=csv,noheader)
$color orange$hr 1$endif
#------------+
# Prcoesses |
#------------+
$color1$voffset 5Process Name: $goto 200PID $goto 265CPU% $alignrMem%
$color$goto 13$top name 1 $goto 190$top pid 1 $goto 270$color green$top cpu 1 $alignr$top mem 1
$color$goto 13$top name 2 $goto 190$top pid 2 $goto 270$color green$top cpu 2 $alignr$top mem 2
$color$goto 13$top name 3 $goto 190$top pid 3 $goto 270$color green$top cpu 3 $alignr$top mem 3
$color$goto 13$top name 4 $goto 190$top pid 4 $goto 270$color green$top cpu 4 $alignr$top mem 4
$color$goto 13$top name 5 $goto 190$top pid 5 $goto 270$color green$top cpu 5 $alignr$top mem 5
$color$goto 13$top name 6 $goto 190$top pid 6 $goto 270$color green$top cpu 6 $alignr$top mem 6
$color$goto 13$top name 7 $goto 190$top pid 7 $goto 270$color green$top cpu 7 $alignr$top mem 7
$color$goto 13$top name 8 $goto 190$top pid 8 $goto 270$color green$top cpu 8 $alignr$top mem 8
$color$goto 13$top name 9 $goto 190$top pid 9 $goto 270$color green$top cpu 9 $alignr$top mem 9
$color orange$voffset 2$hr 1
#------------+
# Storage |
#------------+
$color1RAM Use/Free:$goto 148$color red$mem $color red $goto 220$membar 15,100 $alignr$color$memeasyfree
$color1Linux Root:$goto 148$color red$fs_used / $color red $goto 220$fs_bar 15,100 / $alignr$color$fs_free /
$color1Ubuntu 18.04:$goto 148$if_mounted /mnt/clone$color red $fs_used /mnt/clone $color red $goto 220$fs_bar 15,100 /mnt/clone $alignr$color$fs_free /mnt/clone$else $color yellow /mnt/clone $endif
$color1$if_mounted /mnt/oldBroken 16.04:$goto 148$color red $fs_used /mnt/old $color red $goto 220$fs_bar 15,100 /mnt/old $alignr$color$fs_free /mnt/old$elseCache RAM:$goto 148$color green$cached $color1 $alignrBuffers: $color green $buffers$endif
$color1$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e $color red $goto 220$fs_bar 15,100 /mnt/e $alignr$color$fs_free /mnt/e$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
#$colorNVMe Win 10:$goto 148$if_mounted /mnt/c$color green $fs_used /mnt/c / $fs_size /mnt/c $alignr$color green$fs_used_perc /mnt/c%$else$color yellow/mnt/c$endif
#$color$if_mounted /mnt/dHGST_Win10:$goto 148$color red $fs_used /mnt/d / $fs_size /mnt/d $alignr$color green$fs_used_perc /mnt/d%$elseCache RAM:$goto 148$color green$cached $color Buffers: $color green $buffers$endif
#$color$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e / $fs_size /mnt/e $alignr$color red$fs_used_perc /mnt/e%$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
$color orange$voffset 2$hr 1
#------------+
# Network |
#------------+
#$color1Network using vnStat "-i", "-w" and "-m"
$color$goto 5Today $goto 100Yesterday $goto 225Week $goto 325Month $color green
# vnstatd updates database every five minutes
$ grep "today" $goto 110$ awk 'print $8" "substr ($9, 1, 1)' $goto 220$ grep "current week" $goto 315$ grep "`date +"%b '%y"`"
$colorDown: $color green$downspeed enp59s0/s $color$goto 220Up: $color green$upspeed enp59s0/s
$downspeedgraph enp59s0 25,190 000000 ff0000 $alignr$upspeedgraph enp59s0 25,190 000000 00ff00$color
Total: $color green$totaldown enp59s0 $color$alignrTotal: $color green$totalup enp59s0
#Bit Rate:$color $wireless_bitrate wlp60s0
#------------+
# Brightness |
#------------+
$color orange$voffset 2$hr 1
$color1$goto 5Rise: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunrise $goto 155$color1Set: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunset $alignr$color1Level: $color green$execpi 10 cat /sys/class/backlight/intel_backlight/brightness
Bottom half of conky screenshot
Just noticed the conky images above are top half only. The bottom half is included below so the code makes more sense. Also note the Intel iGPU appeared before because prime-select intel was used. Here the nVidia GPU appears because prime-select nvidia was used:

Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
add a comment |
You can install a CPU frequence controller with this command:
sudo apt-get install indicator-cpufreq
Then reboot, go to the notification area (the right side of the top panel), click on the cpu frequence indicator and then select Performance.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f604720%2fsetting-to-high-performance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check what is currently in use with this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
To change your processor to performance mode use:
$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
You will then notice CPU% utilization drop by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

I have noticed that even when set to powersave mode (as I always use) when Ubuntu first boots it runs in performance mode for 90 seconds before it eventually kicks into powersave mode.
None-the-less after manually setting the governor to performance mode using the appropriate command above. It has stayed in performance mode for 10 minutes now as confirmed by using the appropriate command above and doubly confirmed by conky display above.
I left the governor set on performance for 30 minutes and it worked just fine. It might interest some readers what the conky display looks like when switching off of performance governor back to the default powersave governor:

CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall I think powersave mode is the best for most configurations.
Conky Code
April 12, 2019 - Someone requested conky code so I'm including today's version. The refresh rate is set at 2.5 seconds today whereas in .gifs it's probably 1 second or .75 second. I've edited the code a bit here because mine is setup for three monitors and most people will have one monitor.
The storage section is a little tricky. You need to change the device names to your own and there are if tests if a partition isn't mounted shows system information like cache and buffers.
override_utf8_locale yes
use_xft yes
xftfont ubuntu:size=10.5
xftalpha 0.5
uppercase no
no_buffers yes # Subtract cached and buffered ram from memory usage.
short_units yes # Use "G" instead of "GiB"
text_buffer_size 2048
update_interval 2.5 # change to .001 for 1000 times per second stress test
own_window_class Conky
own_window yes
own_window_type dock
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 145 # semi-transparent
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
alignment top_right
draw_shades yes
# off-white
default_color ECEAE4
# blue
color1 1EB5FF
# light blue
color2 30DDFB
# dark blue
color3 0090ff
# lime
color4 98FF76
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
TEXT
#------------+
# Distro |
#------------+
$colorToday is:$color green$alignr$time %A,$alignr $time %e %B %G
$colorDistribution:$color green$alignr $execi 6300 cat /etc/issue.net $machine
$colorKernel:$alignr$color green $kernel
$color orange$voffset 2$hr 1
#------------+
# i7-6700 CPU|
#------------+
$color2$voffset 5Intel® i-7 6700HQ 3.5 GHz: $color1@ $color green$freq MHz
$color$goto 13CPU 0 $goto 81$color green$cpu cpu1% $goto 131$color3$cpubar cpu1 18
#$cpugauge cpu1 20,40
#$cpugraph 1 15,200 555555 AAAAAA -l
$color$goto 13CPU 1 $goto 81$color green$cpu cpu2% $goto 131$color3$cpubar cpu2 18
$color$goto 13CPU 2 $goto 81$color green$cpu cpu3% $goto 131$color3$cpubar cpu3 18
$color$goto 13CPU 3 $goto 81$color green$cpu cpu4% $goto 131$color3$cpubar cpu4 18
$color$goto 13CPU 4 $goto 81$color green$cpu cpu5% $goto 131$color3$cpubar cpu5 18
$color$goto 13CPU 5 $goto 81$color green$cpu cpu6% $goto 131$color3$cpubar cpu6 18
$color$goto 13CPU 6 $goto 81$color green$cpu cpu7% $goto 131$color3$cpubar cpu7 18
$color$goto 13CPU 7 $goto 81$color green$cpu cpu8% $goto 131$color3$cpubar cpu8 18
#------------+
# Temperature|
#------------+
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$ cut -c1-2°C $alignr$color1Up: $color green$uptime
# Next line is for kernel >= 4.13.0-36-generic
$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 1 temp 1°C $alignr$color1Up: $color green$uptime
# Next line is for temperature with Kerenel 4.4
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 0 temp 1°C $alignr$color1Up: $color green$uptime
$color green$running_processes $color1running of $color green$processes $color1loaded processes.
$color1Load Average 1-5-15 minutes: $alignr$color green$ bc -l $ bc -l $ bc -l
#------------+
# Intel iGPU |
#------------+
$color orange$hr 1$if_match "intel" == "$execpi 99999 prime-select query"
$color2$voffset 5Intel® Skylake GT2 HD 530 iGPU @$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_cur_freq_mhz) MHz
$color$goto 13Min. Freq:$goto 120$color green$execpi .001 (cat /sys/class/drm/card1/gt_min_freq_mhz) MHz$color$goto 210Max. Freq:$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_max_freq_mhz) MHz
$color orange$hr 1$else
#------------+
# Nvidia GPU |
#------------+
$color2$voffset 5$execpi .001 (nvidia-smi --query-gpu=gpu_name --format=csv,noheader) $color1@ $color green$execpi .001 (nvidia-smi --query-gpu=clocks.sm --format=csv,noheader) $alignr$color1Temp: $color green$execpi .001 (nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)°C
$color1$voffset 5Ver: $color green$execpi .001 (nvidia-smi --query-gpu=driver_version --format=csv,noheader) $color1 P-State: $color green$execpi .001 (nvidia-smi --query-gpu=pstate --format=csv,noheader) $alignr$color1BIOS: $color green$execpi .001 (nvidia-smi --query-gpu=vbios_version --format=csv,noheader)
$color1$voffset 5GPU:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader) $color1Ram:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.memory --format=csv,noheader) $color1Pwr:$color green$execpi .001 (nvidia-smi --query-gpu=power.draw --format=csv,noheader) $alignr$color1Freq: $color green$execpi .001 (nvidia-smi --query-gpu=clocks.mem --format=csv,noheader)
$color orange$hr 1$endif
#------------+
# Prcoesses |
#------------+
$color1$voffset 5Process Name: $goto 200PID $goto 265CPU% $alignrMem%
$color$goto 13$top name 1 $goto 190$top pid 1 $goto 270$color green$top cpu 1 $alignr$top mem 1
$color$goto 13$top name 2 $goto 190$top pid 2 $goto 270$color green$top cpu 2 $alignr$top mem 2
$color$goto 13$top name 3 $goto 190$top pid 3 $goto 270$color green$top cpu 3 $alignr$top mem 3
$color$goto 13$top name 4 $goto 190$top pid 4 $goto 270$color green$top cpu 4 $alignr$top mem 4
$color$goto 13$top name 5 $goto 190$top pid 5 $goto 270$color green$top cpu 5 $alignr$top mem 5
$color$goto 13$top name 6 $goto 190$top pid 6 $goto 270$color green$top cpu 6 $alignr$top mem 6
$color$goto 13$top name 7 $goto 190$top pid 7 $goto 270$color green$top cpu 7 $alignr$top mem 7
$color$goto 13$top name 8 $goto 190$top pid 8 $goto 270$color green$top cpu 8 $alignr$top mem 8
$color$goto 13$top name 9 $goto 190$top pid 9 $goto 270$color green$top cpu 9 $alignr$top mem 9
$color orange$voffset 2$hr 1
#------------+
# Storage |
#------------+
$color1RAM Use/Free:$goto 148$color red$mem $color red $goto 220$membar 15,100 $alignr$color$memeasyfree
$color1Linux Root:$goto 148$color red$fs_used / $color red $goto 220$fs_bar 15,100 / $alignr$color$fs_free /
$color1Ubuntu 18.04:$goto 148$if_mounted /mnt/clone$color red $fs_used /mnt/clone $color red $goto 220$fs_bar 15,100 /mnt/clone $alignr$color$fs_free /mnt/clone$else $color yellow /mnt/clone $endif
$color1$if_mounted /mnt/oldBroken 16.04:$goto 148$color red $fs_used /mnt/old $color red $goto 220$fs_bar 15,100 /mnt/old $alignr$color$fs_free /mnt/old$elseCache RAM:$goto 148$color green$cached $color1 $alignrBuffers: $color green $buffers$endif
$color1$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e $color red $goto 220$fs_bar 15,100 /mnt/e $alignr$color$fs_free /mnt/e$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
#$colorNVMe Win 10:$goto 148$if_mounted /mnt/c$color green $fs_used /mnt/c / $fs_size /mnt/c $alignr$color green$fs_used_perc /mnt/c%$else$color yellow/mnt/c$endif
#$color$if_mounted /mnt/dHGST_Win10:$goto 148$color red $fs_used /mnt/d / $fs_size /mnt/d $alignr$color green$fs_used_perc /mnt/d%$elseCache RAM:$goto 148$color green$cached $color Buffers: $color green $buffers$endif
#$color$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e / $fs_size /mnt/e $alignr$color red$fs_used_perc /mnt/e%$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
$color orange$voffset 2$hr 1
#------------+
# Network |
#------------+
#$color1Network using vnStat "-i", "-w" and "-m"
$color$goto 5Today $goto 100Yesterday $goto 225Week $goto 325Month $color green
# vnstatd updates database every five minutes
$ grep "today" $goto 110$ awk 'print $8" "substr ($9, 1, 1)' $goto 220$ grep "current week" $goto 315$ grep "`date +"%b '%y"`"
$colorDown: $color green$downspeed enp59s0/s $color$goto 220Up: $color green$upspeed enp59s0/s
$downspeedgraph enp59s0 25,190 000000 ff0000 $alignr$upspeedgraph enp59s0 25,190 000000 00ff00$color
Total: $color green$totaldown enp59s0 $color$alignrTotal: $color green$totalup enp59s0
#Bit Rate:$color $wireless_bitrate wlp60s0
#------------+
# Brightness |
#------------+
$color orange$voffset 2$hr 1
$color1$goto 5Rise: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunrise $goto 155$color1Set: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunset $alignr$color1Level: $color green$execpi 10 cat /sys/class/backlight/intel_backlight/brightness
Bottom half of conky screenshot
Just noticed the conky images above are top half only. The bottom half is included below so the code makes more sense. Also note the Intel iGPU appeared before because prime-select intel was used. Here the nVidia GPU appears because prime-select nvidia was used:

Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
add a comment |
To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check what is currently in use with this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
To change your processor to performance mode use:
$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
You will then notice CPU% utilization drop by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

I have noticed that even when set to powersave mode (as I always use) when Ubuntu first boots it runs in performance mode for 90 seconds before it eventually kicks into powersave mode.
None-the-less after manually setting the governor to performance mode using the appropriate command above. It has stayed in performance mode for 10 minutes now as confirmed by using the appropriate command above and doubly confirmed by conky display above.
I left the governor set on performance for 30 minutes and it worked just fine. It might interest some readers what the conky display looks like when switching off of performance governor back to the default powersave governor:

CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall I think powersave mode is the best for most configurations.
Conky Code
April 12, 2019 - Someone requested conky code so I'm including today's version. The refresh rate is set at 2.5 seconds today whereas in .gifs it's probably 1 second or .75 second. I've edited the code a bit here because mine is setup for three monitors and most people will have one monitor.
The storage section is a little tricky. You need to change the device names to your own and there are if tests if a partition isn't mounted shows system information like cache and buffers.
override_utf8_locale yes
use_xft yes
xftfont ubuntu:size=10.5
xftalpha 0.5
uppercase no
no_buffers yes # Subtract cached and buffered ram from memory usage.
short_units yes # Use "G" instead of "GiB"
text_buffer_size 2048
update_interval 2.5 # change to .001 for 1000 times per second stress test
own_window_class Conky
own_window yes
own_window_type dock
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 145 # semi-transparent
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
alignment top_right
draw_shades yes
# off-white
default_color ECEAE4
# blue
color1 1EB5FF
# light blue
color2 30DDFB
# dark blue
color3 0090ff
# lime
color4 98FF76
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
TEXT
#------------+
# Distro |
#------------+
$colorToday is:$color green$alignr$time %A,$alignr $time %e %B %G
$colorDistribution:$color green$alignr $execi 6300 cat /etc/issue.net $machine
$colorKernel:$alignr$color green $kernel
$color orange$voffset 2$hr 1
#------------+
# i7-6700 CPU|
#------------+
$color2$voffset 5Intel® i-7 6700HQ 3.5 GHz: $color1@ $color green$freq MHz
$color$goto 13CPU 0 $goto 81$color green$cpu cpu1% $goto 131$color3$cpubar cpu1 18
#$cpugauge cpu1 20,40
#$cpugraph 1 15,200 555555 AAAAAA -l
$color$goto 13CPU 1 $goto 81$color green$cpu cpu2% $goto 131$color3$cpubar cpu2 18
$color$goto 13CPU 2 $goto 81$color green$cpu cpu3% $goto 131$color3$cpubar cpu3 18
$color$goto 13CPU 3 $goto 81$color green$cpu cpu4% $goto 131$color3$cpubar cpu4 18
$color$goto 13CPU 4 $goto 81$color green$cpu cpu5% $goto 131$color3$cpubar cpu5 18
$color$goto 13CPU 5 $goto 81$color green$cpu cpu6% $goto 131$color3$cpubar cpu6 18
$color$goto 13CPU 6 $goto 81$color green$cpu cpu7% $goto 131$color3$cpubar cpu7 18
$color$goto 13CPU 7 $goto 81$color green$cpu cpu8% $goto 131$color3$cpubar cpu8 18
#------------+
# Temperature|
#------------+
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$ cut -c1-2°C $alignr$color1Up: $color green$uptime
# Next line is for kernel >= 4.13.0-36-generic
$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 1 temp 1°C $alignr$color1Up: $color green$uptime
# Next line is for temperature with Kerenel 4.4
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 0 temp 1°C $alignr$color1Up: $color green$uptime
$color green$running_processes $color1running of $color green$processes $color1loaded processes.
$color1Load Average 1-5-15 minutes: $alignr$color green$ bc -l $ bc -l $ bc -l
#------------+
# Intel iGPU |
#------------+
$color orange$hr 1$if_match "intel" == "$execpi 99999 prime-select query"
$color2$voffset 5Intel® Skylake GT2 HD 530 iGPU @$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_cur_freq_mhz) MHz
$color$goto 13Min. Freq:$goto 120$color green$execpi .001 (cat /sys/class/drm/card1/gt_min_freq_mhz) MHz$color$goto 210Max. Freq:$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_max_freq_mhz) MHz
$color orange$hr 1$else
#------------+
# Nvidia GPU |
#------------+
$color2$voffset 5$execpi .001 (nvidia-smi --query-gpu=gpu_name --format=csv,noheader) $color1@ $color green$execpi .001 (nvidia-smi --query-gpu=clocks.sm --format=csv,noheader) $alignr$color1Temp: $color green$execpi .001 (nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)°C
$color1$voffset 5Ver: $color green$execpi .001 (nvidia-smi --query-gpu=driver_version --format=csv,noheader) $color1 P-State: $color green$execpi .001 (nvidia-smi --query-gpu=pstate --format=csv,noheader) $alignr$color1BIOS: $color green$execpi .001 (nvidia-smi --query-gpu=vbios_version --format=csv,noheader)
$color1$voffset 5GPU:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader) $color1Ram:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.memory --format=csv,noheader) $color1Pwr:$color green$execpi .001 (nvidia-smi --query-gpu=power.draw --format=csv,noheader) $alignr$color1Freq: $color green$execpi .001 (nvidia-smi --query-gpu=clocks.mem --format=csv,noheader)
$color orange$hr 1$endif
#------------+
# Prcoesses |
#------------+
$color1$voffset 5Process Name: $goto 200PID $goto 265CPU% $alignrMem%
$color$goto 13$top name 1 $goto 190$top pid 1 $goto 270$color green$top cpu 1 $alignr$top mem 1
$color$goto 13$top name 2 $goto 190$top pid 2 $goto 270$color green$top cpu 2 $alignr$top mem 2
$color$goto 13$top name 3 $goto 190$top pid 3 $goto 270$color green$top cpu 3 $alignr$top mem 3
$color$goto 13$top name 4 $goto 190$top pid 4 $goto 270$color green$top cpu 4 $alignr$top mem 4
$color$goto 13$top name 5 $goto 190$top pid 5 $goto 270$color green$top cpu 5 $alignr$top mem 5
$color$goto 13$top name 6 $goto 190$top pid 6 $goto 270$color green$top cpu 6 $alignr$top mem 6
$color$goto 13$top name 7 $goto 190$top pid 7 $goto 270$color green$top cpu 7 $alignr$top mem 7
$color$goto 13$top name 8 $goto 190$top pid 8 $goto 270$color green$top cpu 8 $alignr$top mem 8
$color$goto 13$top name 9 $goto 190$top pid 9 $goto 270$color green$top cpu 9 $alignr$top mem 9
$color orange$voffset 2$hr 1
#------------+
# Storage |
#------------+
$color1RAM Use/Free:$goto 148$color red$mem $color red $goto 220$membar 15,100 $alignr$color$memeasyfree
$color1Linux Root:$goto 148$color red$fs_used / $color red $goto 220$fs_bar 15,100 / $alignr$color$fs_free /
$color1Ubuntu 18.04:$goto 148$if_mounted /mnt/clone$color red $fs_used /mnt/clone $color red $goto 220$fs_bar 15,100 /mnt/clone $alignr$color$fs_free /mnt/clone$else $color yellow /mnt/clone $endif
$color1$if_mounted /mnt/oldBroken 16.04:$goto 148$color red $fs_used /mnt/old $color red $goto 220$fs_bar 15,100 /mnt/old $alignr$color$fs_free /mnt/old$elseCache RAM:$goto 148$color green$cached $color1 $alignrBuffers: $color green $buffers$endif
$color1$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e $color red $goto 220$fs_bar 15,100 /mnt/e $alignr$color$fs_free /mnt/e$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
#$colorNVMe Win 10:$goto 148$if_mounted /mnt/c$color green $fs_used /mnt/c / $fs_size /mnt/c $alignr$color green$fs_used_perc /mnt/c%$else$color yellow/mnt/c$endif
#$color$if_mounted /mnt/dHGST_Win10:$goto 148$color red $fs_used /mnt/d / $fs_size /mnt/d $alignr$color green$fs_used_perc /mnt/d%$elseCache RAM:$goto 148$color green$cached $color Buffers: $color green $buffers$endif
#$color$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e / $fs_size /mnt/e $alignr$color red$fs_used_perc /mnt/e%$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
$color orange$voffset 2$hr 1
#------------+
# Network |
#------------+
#$color1Network using vnStat "-i", "-w" and "-m"
$color$goto 5Today $goto 100Yesterday $goto 225Week $goto 325Month $color green
# vnstatd updates database every five minutes
$ grep "today" $goto 110$ awk 'print $8" "substr ($9, 1, 1)' $goto 220$ grep "current week" $goto 315$ grep "`date +"%b '%y"`"
$colorDown: $color green$downspeed enp59s0/s $color$goto 220Up: $color green$upspeed enp59s0/s
$downspeedgraph enp59s0 25,190 000000 ff0000 $alignr$upspeedgraph enp59s0 25,190 000000 00ff00$color
Total: $color green$totaldown enp59s0 $color$alignrTotal: $color green$totalup enp59s0
#Bit Rate:$color $wireless_bitrate wlp60s0
#------------+
# Brightness |
#------------+
$color orange$voffset 2$hr 1
$color1$goto 5Rise: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunrise $goto 155$color1Set: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunset $alignr$color1Level: $color green$execpi 10 cat /sys/class/backlight/intel_backlight/brightness
Bottom half of conky screenshot
Just noticed the conky images above are top half only. The bottom half is included below so the code makes more sense. Also note the Intel iGPU appeared before because prime-select intel was used. Here the nVidia GPU appears because prime-select nvidia was used:

Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
add a comment |
To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check what is currently in use with this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
To change your processor to performance mode use:
$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
You will then notice CPU% utilization drop by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

I have noticed that even when set to powersave mode (as I always use) when Ubuntu first boots it runs in performance mode for 90 seconds before it eventually kicks into powersave mode.
None-the-less after manually setting the governor to performance mode using the appropriate command above. It has stayed in performance mode for 10 minutes now as confirmed by using the appropriate command above and doubly confirmed by conky display above.
I left the governor set on performance for 30 minutes and it worked just fine. It might interest some readers what the conky display looks like when switching off of performance governor back to the default powersave governor:

CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall I think powersave mode is the best for most configurations.
Conky Code
April 12, 2019 - Someone requested conky code so I'm including today's version. The refresh rate is set at 2.5 seconds today whereas in .gifs it's probably 1 second or .75 second. I've edited the code a bit here because mine is setup for three monitors and most people will have one monitor.
The storage section is a little tricky. You need to change the device names to your own and there are if tests if a partition isn't mounted shows system information like cache and buffers.
override_utf8_locale yes
use_xft yes
xftfont ubuntu:size=10.5
xftalpha 0.5
uppercase no
no_buffers yes # Subtract cached and buffered ram from memory usage.
short_units yes # Use "G" instead of "GiB"
text_buffer_size 2048
update_interval 2.5 # change to .001 for 1000 times per second stress test
own_window_class Conky
own_window yes
own_window_type dock
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 145 # semi-transparent
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
alignment top_right
draw_shades yes
# off-white
default_color ECEAE4
# blue
color1 1EB5FF
# light blue
color2 30DDFB
# dark blue
color3 0090ff
# lime
color4 98FF76
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
TEXT
#------------+
# Distro |
#------------+
$colorToday is:$color green$alignr$time %A,$alignr $time %e %B %G
$colorDistribution:$color green$alignr $execi 6300 cat /etc/issue.net $machine
$colorKernel:$alignr$color green $kernel
$color orange$voffset 2$hr 1
#------------+
# i7-6700 CPU|
#------------+
$color2$voffset 5Intel® i-7 6700HQ 3.5 GHz: $color1@ $color green$freq MHz
$color$goto 13CPU 0 $goto 81$color green$cpu cpu1% $goto 131$color3$cpubar cpu1 18
#$cpugauge cpu1 20,40
#$cpugraph 1 15,200 555555 AAAAAA -l
$color$goto 13CPU 1 $goto 81$color green$cpu cpu2% $goto 131$color3$cpubar cpu2 18
$color$goto 13CPU 2 $goto 81$color green$cpu cpu3% $goto 131$color3$cpubar cpu3 18
$color$goto 13CPU 3 $goto 81$color green$cpu cpu4% $goto 131$color3$cpubar cpu4 18
$color$goto 13CPU 4 $goto 81$color green$cpu cpu5% $goto 131$color3$cpubar cpu5 18
$color$goto 13CPU 5 $goto 81$color green$cpu cpu6% $goto 131$color3$cpubar cpu6 18
$color$goto 13CPU 6 $goto 81$color green$cpu cpu7% $goto 131$color3$cpubar cpu7 18
$color$goto 13CPU 7 $goto 81$color green$cpu cpu8% $goto 131$color3$cpubar cpu8 18
#------------+
# Temperature|
#------------+
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$ cut -c1-2°C $alignr$color1Up: $color green$uptime
# Next line is for kernel >= 4.13.0-36-generic
$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 1 temp 1°C $alignr$color1Up: $color green$uptime
# Next line is for temperature with Kerenel 4.4
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 0 temp 1°C $alignr$color1Up: $color green$uptime
$color green$running_processes $color1running of $color green$processes $color1loaded processes.
$color1Load Average 1-5-15 minutes: $alignr$color green$ bc -l $ bc -l $ bc -l
#------------+
# Intel iGPU |
#------------+
$color orange$hr 1$if_match "intel" == "$execpi 99999 prime-select query"
$color2$voffset 5Intel® Skylake GT2 HD 530 iGPU @$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_cur_freq_mhz) MHz
$color$goto 13Min. Freq:$goto 120$color green$execpi .001 (cat /sys/class/drm/card1/gt_min_freq_mhz) MHz$color$goto 210Max. Freq:$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_max_freq_mhz) MHz
$color orange$hr 1$else
#------------+
# Nvidia GPU |
#------------+
$color2$voffset 5$execpi .001 (nvidia-smi --query-gpu=gpu_name --format=csv,noheader) $color1@ $color green$execpi .001 (nvidia-smi --query-gpu=clocks.sm --format=csv,noheader) $alignr$color1Temp: $color green$execpi .001 (nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)°C
$color1$voffset 5Ver: $color green$execpi .001 (nvidia-smi --query-gpu=driver_version --format=csv,noheader) $color1 P-State: $color green$execpi .001 (nvidia-smi --query-gpu=pstate --format=csv,noheader) $alignr$color1BIOS: $color green$execpi .001 (nvidia-smi --query-gpu=vbios_version --format=csv,noheader)
$color1$voffset 5GPU:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader) $color1Ram:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.memory --format=csv,noheader) $color1Pwr:$color green$execpi .001 (nvidia-smi --query-gpu=power.draw --format=csv,noheader) $alignr$color1Freq: $color green$execpi .001 (nvidia-smi --query-gpu=clocks.mem --format=csv,noheader)
$color orange$hr 1$endif
#------------+
# Prcoesses |
#------------+
$color1$voffset 5Process Name: $goto 200PID $goto 265CPU% $alignrMem%
$color$goto 13$top name 1 $goto 190$top pid 1 $goto 270$color green$top cpu 1 $alignr$top mem 1
$color$goto 13$top name 2 $goto 190$top pid 2 $goto 270$color green$top cpu 2 $alignr$top mem 2
$color$goto 13$top name 3 $goto 190$top pid 3 $goto 270$color green$top cpu 3 $alignr$top mem 3
$color$goto 13$top name 4 $goto 190$top pid 4 $goto 270$color green$top cpu 4 $alignr$top mem 4
$color$goto 13$top name 5 $goto 190$top pid 5 $goto 270$color green$top cpu 5 $alignr$top mem 5
$color$goto 13$top name 6 $goto 190$top pid 6 $goto 270$color green$top cpu 6 $alignr$top mem 6
$color$goto 13$top name 7 $goto 190$top pid 7 $goto 270$color green$top cpu 7 $alignr$top mem 7
$color$goto 13$top name 8 $goto 190$top pid 8 $goto 270$color green$top cpu 8 $alignr$top mem 8
$color$goto 13$top name 9 $goto 190$top pid 9 $goto 270$color green$top cpu 9 $alignr$top mem 9
$color orange$voffset 2$hr 1
#------------+
# Storage |
#------------+
$color1RAM Use/Free:$goto 148$color red$mem $color red $goto 220$membar 15,100 $alignr$color$memeasyfree
$color1Linux Root:$goto 148$color red$fs_used / $color red $goto 220$fs_bar 15,100 / $alignr$color$fs_free /
$color1Ubuntu 18.04:$goto 148$if_mounted /mnt/clone$color red $fs_used /mnt/clone $color red $goto 220$fs_bar 15,100 /mnt/clone $alignr$color$fs_free /mnt/clone$else $color yellow /mnt/clone $endif
$color1$if_mounted /mnt/oldBroken 16.04:$goto 148$color red $fs_used /mnt/old $color red $goto 220$fs_bar 15,100 /mnt/old $alignr$color$fs_free /mnt/old$elseCache RAM:$goto 148$color green$cached $color1 $alignrBuffers: $color green $buffers$endif
$color1$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e $color red $goto 220$fs_bar 15,100 /mnt/e $alignr$color$fs_free /mnt/e$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
#$colorNVMe Win 10:$goto 148$if_mounted /mnt/c$color green $fs_used /mnt/c / $fs_size /mnt/c $alignr$color green$fs_used_perc /mnt/c%$else$color yellow/mnt/c$endif
#$color$if_mounted /mnt/dHGST_Win10:$goto 148$color red $fs_used /mnt/d / $fs_size /mnt/d $alignr$color green$fs_used_perc /mnt/d%$elseCache RAM:$goto 148$color green$cached $color Buffers: $color green $buffers$endif
#$color$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e / $fs_size /mnt/e $alignr$color red$fs_used_perc /mnt/e%$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
$color orange$voffset 2$hr 1
#------------+
# Network |
#------------+
#$color1Network using vnStat "-i", "-w" and "-m"
$color$goto 5Today $goto 100Yesterday $goto 225Week $goto 325Month $color green
# vnstatd updates database every five minutes
$ grep "today" $goto 110$ awk 'print $8" "substr ($9, 1, 1)' $goto 220$ grep "current week" $goto 315$ grep "`date +"%b '%y"`"
$colorDown: $color green$downspeed enp59s0/s $color$goto 220Up: $color green$upspeed enp59s0/s
$downspeedgraph enp59s0 25,190 000000 ff0000 $alignr$upspeedgraph enp59s0 25,190 000000 00ff00$color
Total: $color green$totaldown enp59s0 $color$alignrTotal: $color green$totalup enp59s0
#Bit Rate:$color $wireless_bitrate wlp60s0
#------------+
# Brightness |
#------------+
$color orange$voffset 2$hr 1
$color1$goto 5Rise: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunrise $goto 155$color1Set: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunset $alignr$color1Level: $color green$execpi 10 cat /sys/class/backlight/intel_backlight/brightness
Bottom half of conky screenshot
Just noticed the conky images above are top half only. The bottom half is included below so the code makes more sense. Also note the Intel iGPU appeared before because prime-select intel was used. Here the nVidia GPU appears because prime-select nvidia was used:

To view available speed governors use this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave
If you do have more than one governor you can check what is currently in use with this command:
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
To change your processor to performance mode use:
$ echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
You will then notice CPU% utilization drop by about 5% but also notice speed will increase from about 1000 MHz to 3000 MHz and temperatures will spike by ~10 degree, depending on your processor:

I have noticed that even when set to powersave mode (as I always use) when Ubuntu first boots it runs in performance mode for 90 seconds before it eventually kicks into powersave mode.
None-the-less after manually setting the governor to performance mode using the appropriate command above. It has stayed in performance mode for 10 minutes now as confirmed by using the appropriate command above and doubly confirmed by conky display above.
I left the governor set on performance for 30 minutes and it worked just fine. It might interest some readers what the conky display looks like when switching off of performance governor back to the default powersave governor:

CPU% utilization has spiked by 5%, but CPU frequency has dropped by 1500 MHz and temperature has decreased by about 10 degrees. Overall I think powersave mode is the best for most configurations.
Conky Code
April 12, 2019 - Someone requested conky code so I'm including today's version. The refresh rate is set at 2.5 seconds today whereas in .gifs it's probably 1 second or .75 second. I've edited the code a bit here because mine is setup for three monitors and most people will have one monitor.
The storage section is a little tricky. You need to change the device names to your own and there are if tests if a partition isn't mounted shows system information like cache and buffers.
override_utf8_locale yes
use_xft yes
xftfont ubuntu:size=10.5
xftalpha 0.5
uppercase no
no_buffers yes # Subtract cached and buffered ram from memory usage.
short_units yes # Use "G" instead of "GiB"
text_buffer_size 2048
update_interval 2.5 # change to .001 for 1000 times per second stress test
own_window_class Conky
own_window yes
own_window_type dock
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 145 # semi-transparent
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 400
maximum_width 400
alignment top_right
draw_shades yes
# off-white
default_color ECEAE4
# blue
color1 1EB5FF
# light blue
color2 30DDFB
# dark blue
color3 0090ff
# lime
color4 98FF76
default_shade_color 000000
draw_outline no
draw_borders no
stippled_borders 0
TEXT
#------------+
# Distro |
#------------+
$colorToday is:$color green$alignr$time %A,$alignr $time %e %B %G
$colorDistribution:$color green$alignr $execi 6300 cat /etc/issue.net $machine
$colorKernel:$alignr$color green $kernel
$color orange$voffset 2$hr 1
#------------+
# i7-6700 CPU|
#------------+
$color2$voffset 5Intel® i-7 6700HQ 3.5 GHz: $color1@ $color green$freq MHz
$color$goto 13CPU 0 $goto 81$color green$cpu cpu1% $goto 131$color3$cpubar cpu1 18
#$cpugauge cpu1 20,40
#$cpugraph 1 15,200 555555 AAAAAA -l
$color$goto 13CPU 1 $goto 81$color green$cpu cpu2% $goto 131$color3$cpubar cpu2 18
$color$goto 13CPU 2 $goto 81$color green$cpu cpu3% $goto 131$color3$cpubar cpu3 18
$color$goto 13CPU 3 $goto 81$color green$cpu cpu4% $goto 131$color3$cpubar cpu4 18
$color$goto 13CPU 4 $goto 81$color green$cpu cpu5% $goto 131$color3$cpubar cpu5 18
$color$goto 13CPU 5 $goto 81$color green$cpu cpu6% $goto 131$color3$cpubar cpu6 18
$color$goto 13CPU 6 $goto 81$color green$cpu cpu7% $goto 131$color3$cpubar cpu7 18
$color$goto 13CPU 7 $goto 81$color green$cpu cpu8% $goto 131$color3$cpubar cpu8 18
#------------+
# Temperature|
#------------+
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$ cut -c1-2°C $alignr$color1Up: $color green$uptime
# Next line is for kernel >= 4.13.0-36-generic
$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 1 temp 1°C $alignr$color1Up: $color green$uptime
# Next line is for temperature with Kerenel 4.4
#$color1All CPUs $color green$cpu% $goto 131$color1Temp: $color green$hwmon 0 temp 1°C $alignr$color1Up: $color green$uptime
$color green$running_processes $color1running of $color green$processes $color1loaded processes.
$color1Load Average 1-5-15 minutes: $alignr$color green$ bc -l $ bc -l $ bc -l
#------------+
# Intel iGPU |
#------------+
$color orange$hr 1$if_match "intel" == "$execpi 99999 prime-select query"
$color2$voffset 5Intel® Skylake GT2 HD 530 iGPU @$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_cur_freq_mhz) MHz
$color$goto 13Min. Freq:$goto 120$color green$execpi .001 (cat /sys/class/drm/card1/gt_min_freq_mhz) MHz$color$goto 210Max. Freq:$alignr$color green$execpi .001 (cat /sys/class/drm/card1/gt_max_freq_mhz) MHz
$color orange$hr 1$else
#------------+
# Nvidia GPU |
#------------+
$color2$voffset 5$execpi .001 (nvidia-smi --query-gpu=gpu_name --format=csv,noheader) $color1@ $color green$execpi .001 (nvidia-smi --query-gpu=clocks.sm --format=csv,noheader) $alignr$color1Temp: $color green$execpi .001 (nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)°C
$color1$voffset 5Ver: $color green$execpi .001 (nvidia-smi --query-gpu=driver_version --format=csv,noheader) $color1 P-State: $color green$execpi .001 (nvidia-smi --query-gpu=pstate --format=csv,noheader) $alignr$color1BIOS: $color green$execpi .001 (nvidia-smi --query-gpu=vbios_version --format=csv,noheader)
$color1$voffset 5GPU:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader) $color1Ram:$color green$execpi .001 (nvidia-smi --query-gpu=utilization.memory --format=csv,noheader) $color1Pwr:$color green$execpi .001 (nvidia-smi --query-gpu=power.draw --format=csv,noheader) $alignr$color1Freq: $color green$execpi .001 (nvidia-smi --query-gpu=clocks.mem --format=csv,noheader)
$color orange$hr 1$endif
#------------+
# Prcoesses |
#------------+
$color1$voffset 5Process Name: $goto 200PID $goto 265CPU% $alignrMem%
$color$goto 13$top name 1 $goto 190$top pid 1 $goto 270$color green$top cpu 1 $alignr$top mem 1
$color$goto 13$top name 2 $goto 190$top pid 2 $goto 270$color green$top cpu 2 $alignr$top mem 2
$color$goto 13$top name 3 $goto 190$top pid 3 $goto 270$color green$top cpu 3 $alignr$top mem 3
$color$goto 13$top name 4 $goto 190$top pid 4 $goto 270$color green$top cpu 4 $alignr$top mem 4
$color$goto 13$top name 5 $goto 190$top pid 5 $goto 270$color green$top cpu 5 $alignr$top mem 5
$color$goto 13$top name 6 $goto 190$top pid 6 $goto 270$color green$top cpu 6 $alignr$top mem 6
$color$goto 13$top name 7 $goto 190$top pid 7 $goto 270$color green$top cpu 7 $alignr$top mem 7
$color$goto 13$top name 8 $goto 190$top pid 8 $goto 270$color green$top cpu 8 $alignr$top mem 8
$color$goto 13$top name 9 $goto 190$top pid 9 $goto 270$color green$top cpu 9 $alignr$top mem 9
$color orange$voffset 2$hr 1
#------------+
# Storage |
#------------+
$color1RAM Use/Free:$goto 148$color red$mem $color red $goto 220$membar 15,100 $alignr$color$memeasyfree
$color1Linux Root:$goto 148$color red$fs_used / $color red $goto 220$fs_bar 15,100 / $alignr$color$fs_free /
$color1Ubuntu 18.04:$goto 148$if_mounted /mnt/clone$color red $fs_used /mnt/clone $color red $goto 220$fs_bar 15,100 /mnt/clone $alignr$color$fs_free /mnt/clone$else $color yellow /mnt/clone $endif
$color1$if_mounted /mnt/oldBroken 16.04:$goto 148$color red $fs_used /mnt/old $color red $goto 220$fs_bar 15,100 /mnt/old $alignr$color$fs_free /mnt/old$elseCache RAM:$goto 148$color green$cached $color1 $alignrBuffers: $color green $buffers$endif
$color1$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e $color red $goto 220$fs_bar 15,100 /mnt/e $alignr$color$fs_free /mnt/e$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
#$colorNVMe Win 10:$goto 148$if_mounted /mnt/c$color green $fs_used /mnt/c / $fs_size /mnt/c $alignr$color green$fs_used_perc /mnt/c%$else$color yellow/mnt/c$endif
#$color$if_mounted /mnt/dHGST_Win10:$goto 148$color red $fs_used /mnt/d / $fs_size /mnt/d $alignr$color green$fs_used_perc /mnt/d%$elseCache RAM:$goto 148$color green$cached $color Buffers: $color green $buffers$endif
#$color$if_mounted /mnt/eWSL+Linux:$goto 148$color red$fs_used /mnt/e / $fs_size /mnt/e $alignr$color red$fs_used_perc /mnt/e%$elseSwap:$goto 148$color green$swap / $swapmax $alignr$color green$swapperc%$endif
$color orange$voffset 2$hr 1
#------------+
# Network |
#------------+
#$color1Network using vnStat "-i", "-w" and "-m"
$color$goto 5Today $goto 100Yesterday $goto 225Week $goto 325Month $color green
# vnstatd updates database every five minutes
$ grep "today" $goto 110$ awk 'print $8" "substr ($9, 1, 1)' $goto 220$ grep "current week" $goto 315$ grep "`date +"%b '%y"`"
$colorDown: $color green$downspeed enp59s0/s $color$goto 220Up: $color green$upspeed enp59s0/s
$downspeedgraph enp59s0 25,190 000000 ff0000 $alignr$upspeedgraph enp59s0 25,190 000000 00ff00$color
Total: $color green$totaldown enp59s0 $color$alignrTotal: $color green$totalup enp59s0
#Bit Rate:$color $wireless_bitrate wlp60s0
#------------+
# Brightness |
#------------+
$color orange$voffset 2$hr 1
$color1$goto 5Rise: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunrise $goto 155$color1Set: $color green$execpi 300 cat /usr/local/bin/.eyesome-sunset $alignr$color1Level: $color green$execpi 10 cat /sys/class/backlight/intel_backlight/brightness
Bottom half of conky screenshot
Just noticed the conky images above are top half only. The bottom half is included below so the code makes more sense. Also note the Intel iGPU appeared before because prime-select intel was used. Here the nVidia GPU appears because prime-select nvidia was used:

edited 1 min ago
answered Jun 19 '18 at 2:14
WinEunuuchs2UnixWinEunuuchs2Unix
47.8k1192185
47.8k1192185
Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
add a comment |
Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
Interesting options
– Sergiy Kolodyazhnyy
Jun 19 '18 at 2:29
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
This worked like a charm, I was getting terrible performance otherwise on an i5-8250u
– Michael Gabay
Jul 28 '18 at 18:59
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
would you be so kind as to share your conky.config?
– Reb.Cabin
6 hours ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
@Reb.Cabin Done
– WinEunuuchs2Unix
10 mins ago
add a comment |
You can install a CPU frequence controller with this command:
sudo apt-get install indicator-cpufreq
Then reboot, go to the notification area (the right side of the top panel), click on the cpu frequence indicator and then select Performance.
add a comment |
You can install a CPU frequence controller with this command:
sudo apt-get install indicator-cpufreq
Then reboot, go to the notification area (the right side of the top panel), click on the cpu frequence indicator and then select Performance.
add a comment |
You can install a CPU frequence controller with this command:
sudo apt-get install indicator-cpufreq
Then reboot, go to the notification area (the right side of the top panel), click on the cpu frequence indicator and then select Performance.
You can install a CPU frequence controller with this command:
sudo apt-get install indicator-cpufreq
Then reboot, go to the notification area (the right side of the top panel), click on the cpu frequence indicator and then select Performance.
answered Apr 3 '15 at 13:50
HelioHelio
5,48432950
5,48432950
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f604720%2fsetting-to-high-performance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown