lolwut???!!!11 This led me into a major WTF discovery, linux uses for login an archaic protocol known as 'baud rate'. And default linux inittab uses 38400 baud rate, and to make matters worse the max baud rate agetty IS HARD CODED TO 115200 baud rate!!!! Googling around to convert stupid baud rate to mb/s was nearly impossible due to the fact that baud rate depends on some extremely low clocks speeds that range from 1mhz to 50mhz (if you're lucky) on top of that baud rate can be either in ASCII, BYTE or BINARY. Digging in google results I was able to get an estimate that's equivalent to 1.5MB/sec for 115200.

wow, just wow. This is nuts, I am running a computer with phenom x4, 64bit OS and DDR2 RAM with a transfer rate of 12.8 GB/s and I am FORCED to login at 1.5MB/sec??? It's almost like a bad dream.

The funny thing is that serial stuff is used in things like BAR CODE scanning in supermarkets. Even on this front industry is already moving towards ethernet/usb3/thunderbolt interfaces. Modern RAID controllers use ethernet interfaces, to name one example.

Anyways, after intensive inquiry I was told to get rid off agetty and use mingetty instead which doesn't have HARD CODED baud rate limits, in fact it doesn't use baud rate to login. My new /etc/inittab looks like this with some ttys turned off:

The change to mingetty still gave me the 10s boot time. I deleted a lot of stuff from runlevels, I booted the VM with a combination of if=virtio/ide/scsi and cache=none/writeback, but no improvement. And during my first tries I got ONCE to boot in 5 SECONDS. Then I changed some stuff and never again reached 5 seconds boot time .

Also since one the two late starting process is login I try commenting in /etc/rc.conf this:

Code:

#rc_shell=/sbin/sulogin

Or trying /bin/bash:

Code:

rc_shell=/sbin/bash

But nothing ALWAYS 10 SECONDS!!

The interesting thing in the picture is that everything IS ABLE to get started before 5 seconds. The issue lies squarely in login and mingetty that somehow are NOT PARALLELIZED.

Can someone help me understand whether this is a /etc/rc.conf bug, a problem with login and mingetty or a way to start them in parallel with everything else? Is there way to start those at second ONE?