PDA

View Full Version : is compression slowing knoppix ?



abs
09-26-2005, 09:34 AM
Good Day,

I think knoppix in our school is slow because it is compressed (as what I had read, it's not a real distribution).
How do I know if it is not a real distribution?

The computers has these specifications:
It has 112 mb ram
1.1 Ghz AMD Athlon

Most programs open for about 30 seconds, 1 minute or 2 minutes.
And when it opens that gui (when logging in when just booted) it takes about 7 minutes. If it was fast, it has no internet connection.

What is weird is that some (3 out of 15) are faster when opening programs.

Any experience of solutions?
Thank You

rwcitek
09-26-2005, 03:07 PM
I think knoppix in our school is slow because it is compressed (as what I had read, it's not a real distribution).
How do I know if it is not a real distribution?
Knoppix is very much a real Linux distribution. What makes it different from other Linux distributions is that it was designed to run entirely from the CD or DVD without requiring you to install anything on the hard disk. In order to fit all the software on the CD, the software has to be compressed.

So there are two factors which tend to make Knoppix run slower than a full install:
1) the CD-ROM speed. Remember everything is running off the CD, not a hard drive which is often 10+ fold faster than a CD
2) RAM. The compressed software has to be uncompressed and stored someplace. That someplace is RAM.


Any experience of solutions?
Several:

1) increase the amount of RAM in the machines
2) use faster CD-ROM drives
3) create a swapfile on the hard drive
4) install the ISO to a harddrive and boot from that instead of the CD-ROM. See the "bootfrom" cheatcode (http://www.knoppix.net/wiki/Cheat_Codes).
5) wipe the existing harddrive clean and install Knoppix to it.

Out of curiosity, what version of Knoppix are you running?

Regards,
- Robert
http://www.cwelug.org

Harry Kuhman
09-26-2005, 05:11 PM
If anything, compression speeds up Knoppix, does not slow it down.

Remember what Knoppix is intended to be, a Live CD. All of the applications are on CD, not faster hard disk. The compression allows about 3x as much software to be included on the CD as could be done without it. But it also allows the software to load about 3 times faster. That is to say, uncompressing the file is a CPU bound function and is much much faster than reading from the CD, so the CD is the limiting factor and uncompressing costs you nothing, it gains you speed because less of the CD needs to be read.

If you have "installed" Knoppix to hard disk, then I consider the advice of the great philosphers Mr. T and Nelson. It will be faster than from CD. How fast depends on which of the many preversions you used. Some unpack the compressed file and will be about as fast as normal Debian. Some leave the compressed file on the hard disk to save space (poor man's install). These may be slower than Debian because the decompression still needs to be done, but as hard disk reading is still slower than cpu decompression thay might actually be faster than Debian in some cases.

If you have enough memory you might be able to boot Knoppix with the toram option. This will store the CD into ram disk and be much faster, even faster than Debian running from hard disk.

You may also simply have problems from a high speed burn of the CD. We have seen many cases where a CD that is burned at high speed doesn't work at all or if it does work it does not work well. See this post (http://www.knoppix.net/forum/viewtopic.php?p=78583#78583) for an example of a CD that booted slow, but the user was able to burn another CD slowly and increase his boot time by over 3X.

You can, of course, choose to install Debian (http://www.debian.org/), the Linux distro that Knoppix is based on. It's free. It now installs pretty cleanly. It gives you access to all the applications that are included in Knoppix and tens of thousands more (again free). Knoppix is a great way to introcuce people to Linux, they can try it out on their own hardware without installing anything and gain a level of comfort with it. But if you want something that runs of your hard disk rather than off a CD, and includes exactly the software that you want and not the software that you don't ever use, consider Install Debian.