john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Swap partition sizes boot root usr home var tmp

swap is using disk for memory instead of RAM free -m

sudo swapon -a # turn on all swap sudo swapoff -a # turn off all swap

cat /proc/sys/vm/swappiness # ubuntu default is 60, which means programs will use swap frequently

sudo sysctl vm.swappiness=10 #

sudo vi /etc/sysctl.conf vm.swappiness = 10 # rarely use swap sudo reboot

FYI kswapd is the daemon that manages swap, if top or other commands show it with high cpu usage watch out...

FYI http://community.opscode.com/cookbooks/sysctl


linux partitions (4GB hd)

/boot boot 100 MB

500MB (equal to swap since it's virtual) swap

I must measure how ubuntu server w/ LAMP uses the different areas and then repartition accordingly

/ root

/usr
/home //ftp users?

/var can fill up on mail servers (don't want to kill the os) /tmp can be "dumped" to by hackers (see above)

just w/ openssh


  • « Chef modify an existing file
  • cyrillic subtitles notepad »

Published

Sep 20, 2013

Category

linux

~136 words

Tags

  • boot 11
  • home 2
  • linux 249
  • partition 3
  • root 7
  • sizes 1
  • swap 1
  • tmp 1
  • usr 1
  • var 2