Re: Is bin ever written to?
- From: Sarunas Burdulis <sarunas@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Dec 2008 17:39:33 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Knapp wrote:
On Tue, Dec 23, 2008 at 10:09 PM, Loïc Grenié <loic.grenie@xxxxxxxxx> wrote:Well, maybe 'cause it's "damn small"?
2008/12/23 Knapp <magick.crow@xxxxxxxxx>:
On Tue, Dec 23, 2008 at 8:22 PM, Smoot Carl-Mitchell <smoot@xxxxxxx> wrote:The kernel writers usually says that it's much better to NOT use a ramdisk
On Tue, 2008-12-23 at 20:05 +0100, Knapp wrote:Any other ideas of what might best be on a ram disk?
I was wondering if anything in a set up system ever needs to write toYou are correct. The only time the "bin" directories are written is
/bin or /sbin or /usr/bin or /usr/sbin?
I was thinking of putting them in a ram disk with SquashFS to speed up
the system but it can only read and not write.
As far as I know the only time writing is needed is with a system update.
during system updates.
I am not sure how much improvement you will see by putting the common
system commands in a ram disk. The demand paging system keeps
frequently accessed pages in memory anyway. The only way to know is to
try it and see what kind of improvement you see.
--
Smoot Carl-Mitchell
All the hidden home files was suggested because programs like FF might
be speeded up and then at shutdown the ramdisk could be written to the
home dir. This posses a risk, if there is a power outage but other
than that should be safe.
and let the kernel do the cache (it's also much safer in case of power
outage). You lose the first time you read a file, but the rest of the time it
remains in memory (in you read it often). Except if you have a very
specific use, you'd better not put anything on your ramdisk and not do
any ramdisk.
The first time you read a file, the kernel copies it into memory.
It remains
there unless there is not enough memory for the rest of the system. In that
case the least used files are canceled from memory. This means that the
kernel will create a "virtual ramdisk" in the cache where all the
files that you
use often will remain. Each of those "usual" files will be read only
once during
each normal session. If you use all your memory for some memory intensive
program, the cache will be canceled, but your memory will be available for
your program (which will not, or less, swap) instead of being locked for a
ramdisk.
Loïc
OK, then how do you explain the increadible speed of distros like Damn
Small Linux with a ram boot? Even big programs like FF run in a blink
on my 386 laptop.
On my amd 64 bit machine stating FF takes time evenYou can use strace and compare number of files opened in both cases. All
if I do it 2 times in a row. I want that sort of speed on my much
faster desktop!
the files in your FF profile, add-ons/plugins, libraries etc. It's not
just /usr/bin/firefox. Do you want all that in RAM disk?...
You may also experiment with the swappiness setting in sysfs, i.e.
balance in RAM usage (see, for ex., here:
http://www.linux.com/feature/146599).
In practice however a faster hard disk or RAID setup will most likely
make the biggest difference.
Sarunas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklRaJwACgkQejaFVltl6E8qhACfamjA2mGueY4PQM+oqJGirF/O
iAwAnAiLxCUwSufWFknGKBCjMaUMg1BL
=UA3k
-----END PGP SIGNATURE-----
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: Is bin ever written to?
- From: Knapp
- Re: Is bin ever written to?
- References:
- Is bin ever written to?
- From: Knapp
- Re: Is bin ever written to?
- From: Smoot Carl-Mitchell
- Re: Is bin ever written to?
- From: Knapp
- Re: Is bin ever written to?
- From: Loïc Grenié
- Re: Is bin ever written to?
- From: Knapp
- Is bin ever written to?
- Prev by Date: Re: limiting users to their home directory
- Next by Date: Re: Ubuntu live cd display question
- Previous by thread: Re: Is bin ever written to?
- Next by thread: Re: Is bin ever written to?
- Index(es):
Relevant Pages
|