>Memory is to hard to measure
>Inspired from the comment "It saves zero memory" from here
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/501241
I've been trying to keep my eye on Ubuntu's memory usage for some time now, but there has never been a great way to measure memory usage. Here is an alternate memory tracking idea.. Don't bother trying to observe it directly. These are the steps I followed to prove that removing tty2-tty6 will save us more than zero memory.
- Figure out how much your computer (when booting off of a liveUSB in my case) needs to boot, open a terminal, and run free -m with using almost no swap.
[make sure the computer has a swap partition, or else this won't work]
Do this by booting the kernel with different mem=???M options. And try getting swap close to zero (see it with free -m), but still in positive territory by a few. Mine was mem=450M, and swap used was 3 M
- Then make your changes, in my case rm /etc/init/tty[2-6]
- Reboot with the same kernel option (mem=450M), run the terminal, run free -m and rejoice in the lack of swap used.
It gets around the memory measuring difficulties and says, "If we don't do X, will the system decide it doesn't need to activate swap?"