Virtualization can have an impact on running the regular Ubuntu desktop (Unity) or Ubuntu Gnome but is more unnoticeable when using Xubuntu, Lubuntu, or Ubuntustudio. One key thing is you must enable 3D acceleration when running regular Ubuntu or Ubuntu Gnome. Of course, there is almost always an impact when running virt. compared to the real thing but Ubuntu/Linux runs much better than say OSX does in Virtualbox.
Here is a good link to a tutorial for SSD optimization.
Notably, they show how to change options to noatime and how to set the scheduler to noop as well as removing an unnecessary cron job, all to reduce SSD wear and tear.
Also, I also suggest using zram swap to reduce SSD use from swapiness. Basically, after installation, open a terminal and run the following command to create a new file:
sudo nano /etc/init.d/zram
then, copy and paste the following into the terminal:
### BEGIN INIT INFO
# Provides: zram
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 1 6
# Short-Description: Use compressed RAM as in-memory swap
# Description: Use compressed RAM as in-memory swap
### END INIT INFO
# Author: Antonio Galea <antonio.galea@gmail.com>
# Thanks to Przemysław Tomczyk for suggesting swapoff parallelization
FRACTION=75
MEMORY=`perl -ne'/^MemTotal:\s+(\d+)/ && print $1*1024;' < /proc/meminfo`
CPUS=`grep -c processor /proc/cpuinfo`
SIZE=$(( MEMORY * FRACTION / 100 / CPUS ))
case "$1" in
"start")
param=`modinfo zram|grep num_devices|cut -f2 -d:|tr -d ' '`
modprobe zram $param=$CPUS
for n in `seq $CPUS`; do
i=$((n - 1))
echo $SIZE > /sys/block/zram$i/disksize
mkswap /dev/zram$i
swapon /dev/zram$i -p 10
done
;;
"stop")
for n in `seq $CPUS`; do
i=$((n - 1))
swapoff /dev/zram$i && echo "disabled disk $n of $CPUS" &
done
wait
sleep .5
modprobe -r zram
;;
*)
echo "Usage: `basename $0` (start | stop)"
exit 1
;;
esac
When you are done, press CTRL + O and press Enter to save the file and then press CTRL + X to exit the file.
Finally, run the following three commands in an open terminal to apply zram swap compression:
First, make the file executable:
sudo chmod +x /etc/init.d/zram
Then, start zram swap compression:
sudo /etc/init.d/zram start
Finally, the following command will make it start automatically at boot time.
sudo update-rc.d zram defaults
sources:
http://command-line-computer-virus.tumblr.com/tagged/swappiness
https://wiki.debian.org/ZRam