Live data from Hacker News

Booting Linux in One Second [pdf]

elinux.org

21–30 of 110 posts

Re: Booting Linux in One Second [pdf]

#23
post #17
post #4

Earlier quoted context omitted.

Also known as "suspend to disk"?

After which you'd have to load 8Gb from disk/SSD in under 1 second...

I wonder if there are any disk suspend systems that are smart enough to tie into the VM system... instead of a specific monolithic RAM-sized suspend file, just flush everything to virtual memory on suspend, and on awake only restore the minimum needed for the OS and accounting, then start swapping everything else in lazily as the user needs it (or in advance in the background if the user is idle)

Re: Booting Linux in One Second [pdf]

#24
post #18

Why isn't any phone doing it? (either smart or feature variety)

Probably because phones are rebooted so rarely - it only happens on an OS update or if your battery runs out.

With my Nexus 4, rebooting every other day is a pretty good idea. Usually fixes my Wi-Fi, 3G, and all sorts of weird bugs for the moment. Don't know how representative this is for Android phones in general, but most Nexus 4 owners I know tell me this is normal.

Oh, usually once a week, sometimes twice a day, the phone will do the rebooting for me. Sometimes when it's in my pocket, sometimes when I try to watch a video that's just too long. Maybe some kind kind of memory error?

Re: Booting Linux in One Second [pdf]

#25

Earlier quoted context omitted.

Probably because phones are rebooted so rarely - it only happens on an OS update or if your battery runs out.

With my Nexus 4, rebooting every other day is a pretty good idea. Usually fixes my Wi-Fi, 3G, and all sorts of weird bugs for the moment. Don't know how representative this is for Android phones in general, but most Nexus 4 owners I know tell me this is normal. Oh, usually once a week, sometimes twice a day, the phone will do the rebooting for me. Sometimes when it's in my pocket, sometimes when I try to watch a vide…

I used to have a Nexus 4 and had the same problem. I now have a Samsung Galaxy S3 and still have the same kinds of issues, just not as frequently. From what I've heard from other people I think it's fair to say it's a general problem with Android-based smart phones.

Re: Booting Linux in One Second [pdf]

#27
post #17
post #4

Earlier quoted context omitted.

Also known as "suspend to disk"?

After which you'd have to load 8Gb from disk/SSD in under 1 second...

No, you don't. You need to load kernel space, and then demand page in the rest as it's being accessed.

Re: Booting Linux in One Second [pdf]

#28
post #17

Earlier quoted context omitted.

After which you'd have to load 8Gb from disk/SSD in under 1 second...

I wonder if there are any disk suspend systems that are smart enough to tie into the VM system... instead of a specific monolithic RAM-sized suspend file, just flush everything to virtual memory on suspend, and on awake only restore the minimum needed for the OS and accounting, then start swapping everything else in lazily as the user needs it (or in advance in the background if the user is idle)

Given that the disk is several orders of magnitude slower that the RAM, lazily re-loading pages from the disk to the memory can induce very visible and annoying loading delays everywhere (e.g. change tab in browser takes 3 sec).

I'd rather wait 10 extra second than having a slow computer for the next 10 minutes.

Re: Booting Linux in One Second [pdf]

#29
post #8

Linux can be so amazing when configured especially for some tasks. For example, Jack on linux can deliver audio latencies under 2ms! The problem is that configuring Linux like this almost requires a CS degree.

I once had a brief conversation (via Reddit) with a guy using JACK for a commercial (embedded Linux) networked audio system. I wasn't aware of the exact specifics but I understand it was Sonos-style, embedded boards inside speakers. He wasn't particularly interested in talking about the work his team had done :P I think that proves your point.

This is a quite paradoxal phenomen that happens to some open source projects. The code is open and free, but some of the experts hold their knowledge very close to their chest. It's totally understandable since they of course need to make a living somehow, but it kind of defeats some of the benefits with open source.

Re: Booting Linux in One Second [pdf]

#30

1 seconds seems a rather arbitrary measure. In HCI 100ms seems to be the value that's generally taken under which an action seems to be happening instantaneously [1] It's quite sad to see how we hardly use the computing power offered by our modern computers to actually speed up common tasks, but instead bloat it up with all kinds of stuff. [1] http://cogsci.stackexchange.com/questions/1664/what-is-the-t...

But 1s is sufficiently small so that you don't notice that the system is loading between the time you switch on the engine of a car and the time you start using it.
Post reply on HN