Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161
Rep:
Why does it take so long to login to a console?
I use Linux Mint 16 Xfce on my Asus Eee PC netbook. Whenever I switch to a console (Ctrl + Alt + F[something]) and login, it takes forever for the bash prompt to appear. Entering my user name and password is pretty quick, but then it hangs at that "Last login: whatever" line for about 30 seconds, then the bash prompt finally appears. How can I speed this up?
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161
Original Poster
Rep:
I've got 1 GB memory and a 1 GB swap partition. I had changed the swappiness from 60 to 20 to improve performance a bit. According to the Xfce Task Manager, I usually only have about 8 KB in swap, so I don't really think swapping is an issue.
One thing I've noticed is that once I log in to one text console, logging in to other consoles happens instantaneously. This problem only happens on the first console login after a reboot.
Last edited by CamTheSaxMan; 03-14-2014 at 12:52 PM.
One thing I've noticed is that once I log in to one text console, logging in to other consoles happens instantaneously. This problem only happens on the first console login after a reboot.
The console programs are re-entrant. That means that the code can be used by several threads simultaneously. When you start the first console the console code has to be loaded into memory. When you start subsequent consoles the code is already loaded and available. The question is why does it take so long to load the console code. If you have changed swappiness and/or fixed the memory size allocated to cache you may have left a very small amount of free memory. In that case Linux may have to page out some programs in order to get the room to load the console program. Just a guess.
You have enough memory that you should not have a problem with loading programs. I suggest that you set all parameters affecting memory usage back to the defaults and see if you still have the problem.
You also might try loading other large programs as the first thing loaded after boot and see if they also have the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.