Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 15318 ideas, 95907 comments, 1969679 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #12403: copy all files from liveCD to RAM if it is big enough

Written by trylik the 21 Aug 08 at 08:22. Related project: Live CD. Status: New
Rationale
if i have 1GB or 2GB of ram, it would be really nice, if i could choose an option at the beginning of liveCD - "load all files to RAM" - this way i wouldnt have to listen to loud CD, also system should work much more better and faster

is it possible to implement?
Tags: livecd

268
votes
closed
Solution #1: Auto-generated solution of idea #12403
Written by trylik the 21 Aug 08 at 08:22.
Ubuntu Brainstorm was updated in January 2009. Since the idea #12403 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

Propose your solution

Attachments
No attachments.


Duplicates


Comments
MaleqAlhaq wrote on the 21 Aug 08 at 11:46
I believe there is a command line switch to accomplish that ...
something like -toram, but I'm not sure. Look at the help the Live CD gives you on bot up (when selecting what you want to do)...

trylik wrote on the 21 Aug 08 at 13:03
if so - it should be easier to access, i didnt know about it since 5.04


loonyphoenix wrote on the 21 Aug 08 at 13:55
It should almost be default for boxes with like 2 GB and more RAM.

loonyphoenix wrote on the 21 Aug 08 at 13:59
Maybe not the whole thing, but most commonly used applications for sure.

trylik wrote on the 21 Aug 08 at 14:06
question for developers - will 700MB liveCD fit into 1, 2 or more GB of RAM?

jonaskoelker wrote on the 21 Aug 08 at 14:22
trylik: IANA Ubuntu Dev, but 2G should be more than enough; it all depends on how much RAM the liveCD needs to use just to run. You need that amount, plus 700M for storing the CD image.

I would think (and certainly hope) than 1G is enough. Try running the liveCD; open a terminal and type free -m. Do you use more than 300M (not counting cache nor buffers)? There's your answer, more or less.

Try (if possible) running the liveCD with maxmem=300M (or whatever the parameter is called, the one that limits how much memory the kernel allows itself to "see"). See if it runs acceptably.

yzarc wrote on the 21 Aug 08 at 15:26
the question is, how much time it would take? CD reads are very slow and if you start to copy everything to ram it will take some time. now think, would you prefer to wait till the system is all copied to ram (1 or 2 min) or you prefer to wait 10 seconds to load the specific application you want to use at the first time and then it will be in the cache.

I'm not voting down cuz you suggested it as an option :) very clever

arkara wrote on the 21 Aug 08 at 15:37
It could take a while, but scientific linux can do it,
and it is quite good! very very very fast system and an ejectable live cd

trylik wrote on the 21 Aug 08 at 15:53
@yzarc

definately i would rather wait 2 minutes

another plus for this is no noise from drive :)

zooounds wrote on the 21 Aug 08 at 18:58
The file system will use the RAM as disk bugger anyways, so no time is saved problably but you get the load reading first instead of always.

andruk (Idea reviewer) wrote on the 21 Aug 08 at 21:16
This would make it possible to burn CDs when the LiveCD is completely loaded into RAM and you only have one drive. A good option to have.

+1

maybeway36 wrote on the 21 Aug 08 at 22:23
DSL, Slax, Knoppix, etc. all have it. For Puppy Linux it's the default. Ubuntu should have it too, I don't see why not.

Darvon wrote on the 21 Aug 08 at 22:34
I think that the lack of noise is a minor advandage; The ability to burn CDs and DVDs is way better (I think). I have a Notebook, and it's quite annoying that I can't burn from the live system; just for fun, or for backup, or anything...
So, thumbs up! ;)

amdlintuxos wrote on the 24 Aug 08 at 12:30
+1
1) system will be running faster
2) we can possibility to burn blank DVD (for example in rescue purpouse)

yzarc wrote on the 24 Aug 08 at 17:02
let the dvd device free is a clear advantage, but thinking you will save time is wrong. Instead you will waste time loading lot of stuff you will not use.
I'm tryng to be clear but my poor English does not permit me more than this.

which is better, caching all the programs or caching only what you will use? the answer: only what you will use. but how to know in advanced what you will use, you can guess but not give the exact answer. so a more efficient way to cache than just cache all is cache on demand and it's what is already done.

Abra_Kadabra wrote on the 27 Aug 08 at 17:49
WONDERFULL IDEA !!!

Ubun2ideas wrote on the 28 Aug 08 at 06:17
Definately good. +1

kahping wrote on the 29 Aug 08 at 13:23
AUSTRUMI does this too. It tries to load the CD into RAM and ejects the CD once loaded. If there's not enough RAM then it runs off the CD so you can't remove the CD. At least, that was how it worked last time I tried it.

Maybe Ubuntu could do it that way too. Logically, it shouldn't slow down LiveCD boot (at least not by much) I think. Booting the LiveCD it and of itself already loads files onto memory. AUSTRUMI loads the same whether there's enough RAM to store the entire CD or not. Of course, it's only 50MB compared to 700MB for Ubuntu, so I could be assuming too much.

eudoxos wrote on the 30 Aug 08 at 14:54
And one would be able to burn another ubuntu live CD from the running live session ;-)

Wouter.de.Groot wrote on the 31 Aug 08 at 11:39
yzarc: cache on demand is incredibly slow, because the disc spins down after, I don't know, ten seconds? So if you then need something else, you have to wait for the disc to spin up _and_ for the stuff to get pulled from CD.

Fedora's liveCD claims 1GB of RAM is needed for this feature, but it then complains (or at least, that one time I tried, and it was an older release) that it cannot install because it wasn't a proper live environment. Provided this can/has been dealt with, I am all for such an option.

yzarc wrote on the 1 Sep 08 at 14:25
spin down, that`s something that I didn't take in to account :) right now I believe this can speed up the system, anyway I must see it working to be sure :)


Post your comment