One of the things I always do is to enable tmpfs on /tmp and /var/log.
I add this to /etc/fstab
$this->bbcode_second_pass_code('', '
tmpfs /var/log tmpfs defaults,noatime,nosuid,nodev,size=100M 0 0
tmpfs /tmp tmpfs noatime,nosuid,mode=1777,size=8G 0 0
')