Red Hat Developing Early Login with gdm 92
hey writes "Red Hat has been working on
early login because, among other reasons, 'If we start GDM sooner, the system will "feel" faster because the user
will see a login screen sooner.' Very cool."
Good idea. I hope Red Hat patents it.... (Score:3, Funny)
Re:Good idea. I hope Red Hat patents it.... (Score:2)
Re:Good idea. I hope Red Hat patents it.... (Score:2)
awesome (Score:4, Funny)
Not very cool (Score:5, Insightful)
Yeah, let's all take a page out of the Windows book and fool our users... bleh.
Why don't we try to make the system really boot faster instead?
Re:Not very cool (Score:5, Insightful)
Three points:
First, the people who are doing this don't necessarily have the technical knowledge to make the system boot faster. Everyone has their specialties and interests. This is what would make them happy and they in turn are interested in sharing it with you. Don't like it? Don't use it. Why are you posting on slashdot when you could be making the system boot faster? See how that works? It doesn't sound like such a good argument now, does it?
Second, users take time to enter in information like logins and passwords. While they are doing this, the system can be processing other stuff and making the system come up. When the user and the system are working in parallel, things actually do get done faster.
Lastly, there is the fairness principle. It doesn't really matter which half of the candy bar is 'bigger' when sharing it so long as one person breaks and the other chooses. Each person feels that they haven't been ripped off without regard to actual physical realities. To this end, if the system feels faster, then why should I complain? It is the user experience that is being made to improve. What else really matters?
Re:Not very cool (Score:2)
2) Try Windows XP and tell me how much faster things get done when your system is completely unresponsive.
3) See #2.
Re:Not very cool (Score:3)
I work for and with a Linux distribution day-in and day-out.
I also run a Windows XP SP2 partition on the same type of box.
The boxes are dual Opteron, less than 6 months old and with a modern 3D video card.
I run into at least as many problems with Linux (let me rephrase
Window 95 through Me? Crap.
Windows NT4? Yes, had a LOT of bugginess but was more stable than previous windows.
Windows 2000? Pretty damned stable until you trie
Re:Not very cool (Score:1)
I guess I could have made that point more explicit, but since it was the topic of a) the post to which I responded, b) the parent to that post and c) the article itself, I hadn't thought it necessary.
Re:Not very cool (Score:1)
Additionally, on said dual Opteron boxes, both with 2GB of memory, when booting Linux (RH9, Fedora Core 3, SuSE 9.1 and especially Ubuntu HH) I am out of the Windows "sluggish" period after login 30% faster than it takes me to get a full GNOME boot. Just tested it.
Re:Not very cool (Score:2)
Pssh. Back in college I used to play Quake3 running on a Celeron 300a booted in Redhat 5.2 (Original 3dfx voodoo card, too.) And let me tell you, it ran great.
Re:Not very cool (Score:2)
Re:Not very cool (Score:2)
The scripts also set them to low priority, so you can start getting things done as soon as possible (still some "lag" time when logging in, but a lot less than before).
To "sleep" without a sleep.exe, a neat trick I saw a few months ago is this: ping yourself for N+1 times (where N is the number of seconds you want to sleep). So to sleep 60 seconds, do a "ping -n 6
Re:Not very cool (Score:2)
That would only be true if you had some reason to ever want to disable this. I surely can't think of anything bad about it.
2) Try Windows XP and tell me how much faster things get done when your system is completely unresponsive.
There are few systems less responsive than Red Hat Linux as it's still loading 10 different network servers, some of which block on DHCP and D
Re:Not very cool (Score:1)
Re:Not very cool (Score:2)
I turn on the computer. I go to the bathroom. I get up and go get a drink, and when I come back it's ready to use. You can't remove both delays, and you're just hiding one in the other. It's pointless.
An anyway, doesn't ubuntu already do this, somewhat? I've
Re:Not very cool (Score:2, Funny)
Kid, you don't know what waiting is until you've flicked the 3-inch long toggle switch of your 80286-16MHz Workstation to "ON", gone to the bathroom, gotten your coffee, talked to a few people in the break room, returned to your desk, and waited another few minutes for your application to finish loading befo
Re:Not very cool (Score:2)
That will rarely be true.
The extra time is probably unmeasurable, since it's primarily from IO-bound processes, which would have no contention with what you're doing.
When booting Red Hat Linux, it's not abnormal for individual network service processes to halt for more than TWO MINUTES if the network is down and they can't find their domain servers. This improvement will allow the user to l
Re:Not very cool (Score:2)
"I turn on the computer. I go to the bathroom. I come back, login, I get up and go get a drink, then when I come back it's ready to use."
PEBKAC made it so half of that was lost. I blame the K.
Re:Not very cool (Score:1)
Other people can work on make a Linux distro boot faster (and this is a distro issue more than a kernel issue, meaning all distros will need to agree to make use of the new speedups
In oth
Re:Not very cool (Score:2, Insightful)
Of course you are welcome to make whatever improvements you like, and we would all appreciate it i
Re:Not very cool (Score:2)
- If we start GDM sooner, we don't have to start rhgb. starting 2 X
servers at boot up doesn't play nice with some hardware and rhgb doesn't
really offer much anyway.
rhgb is *very slow* (IIRC, it loads up X and then rhgb on top, which is a little wasteful when it gets killed before gdm runs). Swapping this for gdm will probably shave off in the region of 5 seconds of boot time.
Point 2:
- If we start GDM sooner, the user can type in his or her username and
password sooner (as long as we don't actual
Put off what you don't need (Score:2)
I've actually gone even more extreme on my computer, by starting apache, sendmail, my ftp and ssh servers 10, 15, 20 and 25 seconds after I've finished logging in. By that time all of the various background services have started, and loading them at that point is not noticable at all.
Of course, my
let's see... (Score:2)
Re:Not very cool (Score:1)
Re:Not very cool (Score:2)
They are. Both the init processes and the device configuration routines are being replaced and profiled...and Red Hat is helping (leading?) these efforts.
Is this progress? (Score:3, Insightful)
Re:Is this progress? (Score:1)
Re:Is this progress? (Score:2)
uhhhhh??????????
Re:Is this progress? (Score:1)
This is why the network guys are always talking abou
Re:Is this progress? (Score:2)
Re:Is this progress? (Score:1)
Namely, to start other services, which will be required to use the system. If the system is trying to start Firefox and sshd and samba and crond, at the same time as it's loading all 500MB of X into memory, you're going to experience a bit of churning, to put it mildly.
It's not like SysV runs at nice -19 or anything.
Re:Is this progress? (Score:2)
Re:Is this progress? (Score:1)
When I return and login I expect a working desktop within three seconds. IceWM with iDesk icons will do this. The "Other Two" take so F'ing long to load that the programmers decided to create a bootsplash with progress bars to make the wait feel less painful.
I feel into that trap for a little while. I even created a KDE bootsplash and uploaded it to kde-look.org. It all seems kinda silly now.
Boot times... (Score:2, Insightful)
Re:Boot times... (Score:2)
Re:Boot times... (Score:2)
Re:Boot times... (Score:1, Informative)
Re:Boot times... (Score:1)
Re:Boot times... (Score:4, Insightful)
I really can't see anything wrong with this.
And this is needed for what reason exactly? (Score:1, Insightful)
Re:And this is needed for what reason exactly? (Score:2)
Why? Kudzu. (Score:3, Informative)
Kudzu is also, however, integral to RedHat's "Stateless Linux" system, which reduces maintenance and increases security by booting from centralized disk images. This process is aided by Kudzu's "on-the-fly" hardware detection.
So it's a tradeoff that RedHat seems willing to make: ease of hardware support for slightly longer boot times. I'm willing to bet many
This is good if.... (Score:1)
Re:This is good if.... (Score:2)
1. ~/.login
2. c:\Users and Computers\myname\Start Menu\Startup
Um...yeah. So let me get this straight. Before we're done loading all of the system daemons, we're going to start processing the individual user's startup items.
Right...that will speed things right up.
graphics? (Score:3, Interesting)
I do it out of habit. But if you want to make it into a "go faster" feature, then pretend away!
Just so long as... (Score:1, Redundant)
If you show me a login prompt, you'd damn well better be ready for me to log in.
I don't like the statement "We can allow the user to input their name and password, so long as we don't process it until the system is stable."
BZZZT! WRONG ANSWER!
I don't mind bringing up X, and showing the boot process info, but do NOT give me a prompt for my username until you are ready for me to log in.
Personally, I think the whole way init works needs to be revist
Re:Just so long as... (Score:2)
Good idea, but the only thing you'd get is close to 100% CPU usage upon startup and a startup that is at most that much faster (i.e. by the
Parallelizing service startups at boot time (Score:1)
By launching them concurrently (subject to dependency constraints) the startup time can be shortened to a small fraction of the current time needed.
There are articles on how to do this and
SMF on Solaris 10 Parallelizes SVC Startups (Score:1, Troll)
I am still getting used to SMF, and luckily they also keep backwards compatability with the rc.d init scripts.
Provided SMF isn't under 100 patents, maybe LINUX can pickup a few of Sun's good ideas once OpenSolaris comes out later this year.
Re:SMF on Solaris 10 Parallelizes SVC Startups (Score:2)
SMF is one of the unsung heros lurking within Solaris 10, while Containers and DTrace get all the press.
Re:Parallelizing service startups at boot time (Score:2)
Of course, there are so many parameters that go into this dependent on what daemon is being started, so it may be a good idea for the boot process to attempt to be a
Re:Parallelizing service startups at boot time (Score:1)
If you are a Linux user, the correct wording for that phrase is:
Not that I care much; how often do I boot in a Year?
Re:Parallelizing service startups at boot time (Score:2)
(Although I will leave it on when I go elsewhere so that I can shell in)
Gentoo init. (Score:2)
Me, I improve my boot time by using suspend2 instead of shutting down. If I limit the amount of stuff copied to disk, I can avoid thrashing on boot but still have a wicked quick startup, especially with the lzo compression.
Three words: (Score:5, Insightful)
Starting up a Linux system requires satisfying some dependencies. You don't want to try mounting nfs disks until after bringing up the network. You don't want to start the X server until after the X font server is running.
But why, exactly, must gpm not start until sendmail is finished? Just because some Red Hat employee decided that sendmail should be numbered 80 and gpm numbered 85? It's not his fault, anyway, since starting them the other way around would be just as bad.
The underlying speed problem isn't what order Linux services are started in, it's the fact that they're only allowed to start one at a time. There's a reason why you're recommended to compile with "make -j 2" even on uniprocessor machines: even when an individual program is running as fast as it can, odds are it's I/O bound often enough that the CPU can profitably do something else at the same time. Even multiple programs waiting for the hard drive can start faster if they're started simultaneously: the drive controller can pick up whichever data is closest to the read head first, instead of being forced to data in some arbitrarily chosen order.
I know I'm not the first person to realize this; although I can't find a web page at the moment I recall reading about someone doing this long ago. What I don't recall reading is any reason not to make your distribution start up this way. Backwards compatibility could be easily satisfied by adding phony dependencies for S01 through S99 (which in turn would depend on all the services which were listed earlier). Bloat is a concern, but even GNU make is a fraction of the size of the initscripts package on my system. If you start background and interactive services concurrently you have to worry about responsiveness, but that's what the "nice" command is for.
Gentoo does this. (Score:2)
For instance, to add sshd to the default runlevel, I just do:
rc-update add sshd default
The scripts will most likely place it towards the end, but they make sure it goes after networking, because sshd obviously depends on networking. Should the network fail to come up, sshd won't be attempted.
Also, if I want to start sshd manually:
will automatically start ne
Hmmm... (Score:1, Interesting)
some 20 days ago...
20:33:27 up 20 days, 23:41, 2 users, load average: 0.31, 0.35, 0.29
when was the last time I botted my other system???
20:34:40 up 293 days, 7:25, 7 users, load average: 0.25, 0.17, 0.10
why the F would I ever need an early logon to GDM???
Re:Hmmm... (Score:1)
I'm not sure why you couldn't figure that out by yourself.
Re:Hmmm... (Score:2)
As far as I'm concerned, anyone who has to
Re:Hmmm... (Score:2)
Or someone who can't stand the noise of the damn computer when not using it. Hell, I even made a watercooling setup for the CPUs, that's how much it bothers me. I still have that power supply fan though, and when it's on, I HEAR IT. Silence is golden.
Re:Hmmm... (Score:4, Insightful)
Re:Hmmm... (Score:3, Insightful)
I would. I last booted 25 minutes ago. Power usage and fire risk are concerns for me.
improve overall startup performance using 'make' (Score:4, Informative)
Do you boot at all? (Score:2)
The wife's and daughters' MS-Windows boxes go through regular b0rk-and-reboot cycles, so boot time means something to them - but not to me.
I wonder how many people with DSL households shut down their machines between uses?
Re:Do you boot at all? (Score:2)
Re:Do you boot at all? (Score:2)
(If you carry one around! One of our OBSD boxes is a beater Compaq Armada, which serves as the household firewall. It never gets turned off, or moved from it's spot on the bookshelf, or even hardly ever touched.)
Does hibernation work yet? Or is that one of those maddening model-dependent things in Linux?
Fooling the user the right way (Score:3, Interesting)
But from TFA, it doesn't sound like the redhat guys are going to do it the right way, which means the users will figure out they've been fooled and you've just gone through all that trouble to piss them off.
But I have saw it already (Score:2)
One point to them is that they were the first trying such things, IIRC.
Re:But I have saw it already (Score:2)
I don't want to bash RedHat on it, but I already have it: Ubuntu Hoary starts GDM before some stuff (I could see the startup of ACPId after the "starting GDM" message and before the GDM really appeared).
SuSE does this already as well... at least in 9.2, I think in 9.1 as well but I can't tell for sure. Heck, even Windows does this for years now !
There's still a lot of room for improvement. I once saw a nice demo implementation of a boot process controlled by make. The idea was that you specify the boot
die init die (Score:3, Informative)
http://www.osnews.com/story.php?news_id=4711 [osnews.com]
http://www.gnome.org/~seth/blog/2003/Sep [gnome.org]
This could easily be backwards compatible such that there are services defined which are simply one-to-one mappings to scripts. Once it's dependency based, you don't have to worry about assigning hardcoded priorities manually and then writing dock gadgets that tell the user when the services are done "starting". As a user I couldn't care less that the services are done starting. Programmers have a futuristic technology called semaphores that can be used to block until a required dependency is fulfilled. If you want to print, and the print spooler hasn't started, instead of blowing chunks, you just implicitly start it. Magic! Ideally, ALL services would be lazy by default unless specifically told by the user to start up automatically (i.e. ssh server, web server, etc.)
LinuxBIOS (Score:2)
It do speed up boot (Score:2, Informative)
Bad Idea (Score:2)
This is one of the features I detest in Windows XP. The login screen appears early but the desktop crawls and splutters while loading, due to all the background activity as services start. The taskbar noticeably renders itself; green bar first, then the outline of some buttons, then the systray slowly loads a few icons. Argh. Click on the Start button and the gigantic Start Menu appears, but it randomly DISAPPEARS before I get the chance to pick a program. Even worse is when you're 3 levels deep in the Prog
Solaris 10... (Score:2)
http://www.sun.com/bigadmin/content/selfheal/sd
I can login to my JDS 3 Desktop and have everything up *much* faster than I ever can with RedHat Enterprise Linux 3.0 WS (which I also have installed).
Nice to see RedHat catching up finally
Re:Solaris 10... (Score:1, Interesting)
The NIH syndrome runs so thick, here, that they'll try to reinvent SMF with makefiles and bash scripts. Bleh.
Saw that coming... (Score:2)
Personally, I use GDM to make it easier for my girlfriend to log onto my computer and use X (plus man, its always nice to turn on your computer and see a sweet looking picture of a Portugal Beach warming your screen).