Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Posted Jun 24, 2010 1:24 UTC (Thu) by cesarb (subscriber, #6266)In reply to: SELF: Anatomy of an (alleged) failure by dlang
Parent article: SELF: Anatomy of an (alleged) failure
And some are very small indeed. One of my machines has only a 4 gigabyte "hard disk" (gigabyte, not terabyte). It is a EeePC 701 4G. (And it is in fact a small SSD, thus the quotes.)
There is also the Live CDs/DVDs, which are limited to a fixed size. Fedora is moving to use LZMA to cram even more stuff into its live images (https://fedoraproject.org/wiki/Features/LZMA_for_Live_Images). Note also that installing from a live image, at least on Fedora and IIRC on Ubuntu, is done by simply copying the whole live image to the target disk, so the size limitations of live images directly influence what is installed by default.
Posted Jun 24, 2010 9:06 UTC (Thu)
by ncm (guest, #165)
[Link] (2 responses)
Posted Jun 24, 2010 20:56 UTC (Thu)
by speedster1 (guest, #8143)
[Link] (1 responses)
Posted Jun 26, 2010 9:56 UTC (Sat)
by ncm (guest, #165)
[Link]
While we're way, way off topic, you might also want to go to desktop/gnome/interface and change gtk_key_theme to "Emacs" so that the text edit box keybindings (except in Epiphany, grr) are Emacs-style.
Contempt, thy name is Gnome.
Getting back on topic, fat binaries makes perfect sense for shared libraries, so they can all go in /lib and /usr/lib. However, there's no reason to think anybody would force them on you for an EEE install.
Posted Jun 24, 2010 12:30 UTC (Thu)
by Cato (guest, #7643)
[Link]
Posted Jun 24, 2010 17:03 UTC (Thu)
by chad.netzer (subscriber, #4257)
[Link] (9 responses)
Posted Jun 24, 2010 19:40 UTC (Thu)
by dlang (guest, #313)
[Link] (8 responses)
do you have a SSD?
are you memory constrained (decompressing requires that you have more space than the uncompressed image)
do you page out parts of the code and want to read in just that page later (if so, you would have to uncompress the entire binary to find the appropriate page)
what compression algorithm do you use? many binaries don't actually compress that well, and some decompression algorithms (bzip2 for example) are significantly slower than just reading the raw data.
I actually test this fairly frequently in dealing with processing log data. in some condititions having the data compressed and uncompressing it when you access it is a win, in other cases it isn't.
Posted Jun 25, 2010 0:14 UTC (Fri)
by chad.netzer (subscriber, #4257)
[Link] (7 responses)
Still, why the heck must my /bin/true executable take 30K on disk? And /bin/false is a separate executable that takes *another* 30K, even though they are both dynamically linked to libc??? Time to move to busybox on the desktop...
Posted Jun 25, 2010 0:38 UTC (Fri)
by dlang (guest, #313)
[Link] (4 responses)
http://www.muppetlabs.com/~breadbox/software/tiny/teensy....
A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux
Posted Jun 25, 2010 2:41 UTC (Fri)
by chad.netzer (subscriber, #4257)
[Link] (3 responses)
To be fair getting your executable much smaller than the minimal disk block size is just a fun exercise. Whereas coreutils /bin/true may actually benefit from an extent based filesystem. :) Anyway, it's just a silly complaint I'm making, though it has always annoyed me a tiny bit.
Posted Jun 25, 2010 12:25 UTC (Fri)
by dark (guest, #8483)
[Link] (2 responses)
Posted Jun 25, 2010 15:38 UTC (Fri)
by intgr (subscriber, #39733)
[Link] (1 responses)
PS: Shells like zsh actually ship builtin "true" and "false" commands
Posted Jun 29, 2010 23:03 UTC (Tue)
by peter-b (guest, #66996)
[Link]
:
The following command is equivalent to false:
! :
I regularly use both when writing shell scripts.
Posted Jun 27, 2010 16:42 UTC (Sun)
by nix (subscriber, #2304)
[Link]
(I think this rule makes more sense on non-GNU platforms, where it is common to rename *everything* via --program-prefix=g or something similar, to prevent conflicts with the native tools. But why should those of us using the GNU toolchain everywhere be penalized for this?)
Posted Jun 27, 2010 16:46 UTC (Sun)
by nix (subscriber, #2304)
[Link]
And gnulib, because it has no stable API or ABI, is always statically linked to its users.
26Kb for a printf implementation isn't bad.
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disconnecting nautilus from gnome session
Disconnecting nautilus from gnome session
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Yes, but GNU true does so much more! It supports --version, which tells you all about who wrote it and about the GPL and the FSF. It also supports --help, which explains true's command-line options (--version and --help). Then there is the i18n support, so that people from all over the world can learn about --help and --version. You just don't get all that with a minimalist ELF binary.
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)
Disk space (was: SELF: Anatomy of an (alleged) failure)