Tuesday, November 11, 2008

Boot Ubuntu Linux faster by reducing TTY (virtual consoles)

Most of us never use all the virtual consoles(TTY) that is provided with most Linux distribution. Why leave it there and let it eat memory. You can decrease startup time by removing unwanted virtual console or TTY.

Removing some virtual consoles or reducing TTY is very easy.

Just follow the procedure below:

  • sudo -s
  • vi /etc/default/console-setup
  • change ACTIVE_CONSOLES=”/dev/tty[1-6]” to your choice. Lets say if you want only two TTY or virtual console then change to ACTIVE_CONSOLES=”/dev/tty[1-2]”
  • cd /etc/event.d
  • Comment on all the lines in ttyx file that you don't need. In this example tty3-tty6

Reboot to see the change.

4 comments:

  1. While this would save the tiniest amount of memory and remove clutter from process lists, it is too insignificant to noticeably effect boot time (and we're talking milliseconds here at most).

    ReplyDelete
  2. the problem is that there are no more event.d directory in karmic

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete