Skip to content

Instantly share code, notes, and snippets.

@marloncabrera
Last active August 29, 2015 14:06
Show Gist options
  • Save marloncabrera/d5bd4f251cbdb5a52860 to your computer and use it in GitHub Desktop.
Save marloncabrera/d5bd4f251cbdb5a52860 to your computer and use it in GitHub Desktop.
Tweak Elementary Luna

References:

eOS snippets

Fix Plymouth after install NVIDIA driver:

 
sudo nano /etc/default/grub

Look for the line :
#GRUB_GFXMODE=640x480

Just underneath write the line :
GRUB_GFXPAYLOAD_LINUX=auto

close & save

sudo update-grub

Mount options

UUID=xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx /               ext4     defaults,noatime,discard   0       1

I/O Scheduler HDD/SSD mixed environment

Create a UDEV rule to setup the I/O scheduler:

/etc/udev/rules.d/60-schedulers.rules

# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"

Swap Space on SSDs

The following is a recommended tweak for SSDs using a swap partition that will reduce the "swappiness" of the system thus avoiding writes to swap:

/etc/sysctl.d/99-sysctl.conf

vm.swappiness=1
vm.vfs_cache_pressure=50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment