LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-13-2014, 04:51 PM   #1
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Rep: Reputation: 9
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?
 
Old 03-13-2014, 07:09 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
This might be a memory problem. How much memory do you have? Do you have a swap partition?

--------------------
Steve Stites
 
Old 03-14-2014, 12:50 PM   #3
CamTheSaxMan
Member
 
Registered: Nov 2013
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Posts: 161

Original Poster
Rep: Reputation: 9
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.
 
Old 03-15-2014, 12:30 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by CamTheSaxMan View Post
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.

----------------------
Steve Stites

Last edited by jailbait; 03-15-2014 at 12:31 PM.
 
  


Reply

Tags
console, login, slow



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Console does not wrap long lines z-vet Linux - Software 11 10-10-2013 04:05 AM
unable to login any user through the console but users can login in GUI p kumar Linux - Server 1 04-19-2012 06:09 AM
Text console too long DaRkBoDoM Linux - Software 3 12-11-2011 10:11 AM
Console too long DaRkBoDoM Ubuntu 2 11-11-2011 09:11 AM
Long console output Loke Linux - Newbie 1 02-26-2003 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration