Page 1 of 1

Tweak Your Buntu

PostPosted: Wed Sep 30, 2015 4:41 pm
by Micro
Just a few changes to get the most from your Ubuntu OS:

cpu governor - Who the heck cares about Power Saving over Performance? :lol: (Quad Core CPU example)
Code: Select all
apt-get install cpufrequtils
- run this cmd then add to make persistent in /etc/rc.local, or name a file in /etc/rc.d/ called whatever and add
Code: Select all
for each in 0 1 2 3; do echo performance > /sys/devices/system/cpu/cpu$each/cpufreq/scaling_governor; done

For above, there is a nice little cpu freq panel applet in Mate and I believe Gnome for quick adjustment.

noop scheduler - If running ssd's you will gain performance and your drive's will last longer. That's only true if you enable trim support in /etc/fstab with discard option and disable swap, or run swap on hdd. 8-)
Code: Select all
echo noop > /sys/block/sda/queue/scheduler
- but you will need to modify grub to make persistent.
Code: Select all
vi /etc/default/grub
Code: Select all
GRUB_CMDLINE_LINUX="find_preseed=/preseed.cfg auto noprompt priority=critical locale=en_US elevator=noop"

vm.swappiness - one of my personal old favorites when i used spinning disks. And usually set to 60 as default :x
Code: Select all
sysctl -a | grep vm.swappiness
Will show current setting and most people will tell you to set it to 10. Well if you don't run any VM's on your machine, set it to 1. This will tell your OS not to use swap unless it's absolutely necessary.
Code: Select all
vi /etc/sysctl.conf
to change value then, Esc : x to quit (Yeah no more old school directions to Esc :wq, its 2015) :lol:
Code: Select all
sysctl -p
to load configuration.

Re: Tweak Your Buntu

PostPosted: Sun Oct 04, 2015 12:00 am
by pam
Very good for laptops running off the wall. 'Performance' makes the desktop more responsive.