home *** CD-ROM | disk | FTP | other *** search
-
- >>>>> mtk == mw@eunet.ch (Markus Wild) wrote:
-
- > Time to pass another linux-ism by everyone, particularly
- > mtk... especially now that we will soon be having shared
- > libs.
-
- mtk> Well, if this is linux-ism, it sure shows why I don't
- mtk> like linux..
-
- > However, to make this REALLY perfect, you would want to be
- > able to run the foo.z program. This requires a change to
- > the kernel loader to load gzipped bins. The advantage of
- > this? It would allow us to gzip compress all of /usr/bin
- > all of /usr/local/bin, all of /usr/bin/X and so on. The
- > result is FAR LESS disk space requirements for the
- > binaries. That 8M rootfs partition would be half full
- > instead of too small :-)
-
- mtk> Just to give you some backgrounds on WHY I hate this
- mtk> idea..
-
- mtk> Unix fs is based on a quite interesting scheme of demand
- mtk> loading executables. This means, starting an executable
- mtk> means to tell the memory system, where IN THEORY the
- mtk> disk blocks pertaining to the executable would wind up
- mtk> in memory. However, *no* information is transferred from
- mtk> disk to memory yet. Instead, the program is started,
- mtk> causing page faults along the way, thus only loading
- mtk> what it really uses. Shared libraries work in exactly
- mtk> the same way. Now, suppose you have all the files
- mtk> compressed. Every open would then require reading (and
- mtk> uncompressing) whole files, no matter whether it's only
- mtk> the first two bytes I'm interested in, it would
- mtk> uncompress the whole 2 Megs or so. If you do this on a
- mtk> poorly powered A500, with a 68000 and the xpk
- mtk> filesystem, I can somewhat understand why you're doing
- mtk> it. However, if you do this to a fast machine that is
- mtk> able to even run a Unix system, well, then I just can't
- mtk> understand why you're running unix at all..
-
- mtk: if what I propose is implemented, ONLY the binaries
- and ONLY those binaries that you by hand run gzip on must
- be uncompressed as you describe. And even if you DID
- decompress a binary, you would do so to /tmp or someplace
- like that and do your demand loading from there.
-
- The issue is not the speed of the CPU, it is the cost of
- drive space. Some people either have only 400M drives,
- which is a nice sized bsd setup - BUT they insist on
- keeping 150M of it for amigaos. Or if you want to keep
- the sunlamp tree and kernel sources and objects - you need
- even MORE hard drive space. Other people are like me and
- simply don't want to add a hard drive to run netbsd - I've
- seen MANY people say "forget it" when they hear the disk
- requirement for netbsd. Many many amiga users are europeon
- university students who simply don't have the money to
- spend on hard drives.
-
- Keep this in mind, markus - I have 3 gig of hard disk,
- and I probably can care less to use this feature. It isn't
- for me, but for others I know can take advantage of it.
-
-
- > I am proposing is quite similar. Unlike xfh, the entire
- > netbsd filesystem is compressable/decompressable. xfh
-
- mtk> Sure.. listen. If you want to distribute such a thing,
- mtk> go ahead. Just make sure I don't have absolutely no,
- mtk> none at all, really no, relations to it...
-
- No, markus. I won't go near it if you won't. I'm not
- going to spring something on the netbsd world you've
- made for everyone. It's your football, and you can take
- it home with you so nobody else can play. I just offered
- an idea - a good idea.
-
- > comments? mtk: I already know you don't like it (too much
- > like linux :-)
-
- mtk> Bull.. I stated why I don't like it, and I wouldn't like
- mtk> it being added to any default distribution for Linux,
- mtk> either...
-
- The one for linux ONLY does gzip decompression for reading
- purposes. It does NOT do loading of gzipped binary
- executables nor does it gzip compress when writing.
- Among the linux community it is VERY VERY popular. There
- are people with 60 whole megabytes of hard disk running
- linux and X and they compress everything they can to
- make the system usable. No, netbsd is NOT linux. It
- doesn't have to have all the good things we or others
- can think of putting in. It doesn't make the ideas
- bad ones.
-
- mtk> -Markus
- mtk> --
- mtk> CHUUG/EUnet Switzerland Markus Wild
- mtk> Zweierstrasse 35 Tel: +41 1 291 45 80 mw@eunet.ch
- mtk> CH-8004 Zuerich Fax: +41 1 291 46 42
- mtk> S=mw;P=EUnet;A=EUnet;C=CH
-
-
-