Seldom used files in /usr

What features/apps/bugfixes needed in a future Puppy
Post Reply
Message
Author
keith
Posts: 1
Joined: Fri 02 Dec 2005, 06:16

Seldom used files in /usr

#1 Post by keith »

Puppy achieves his fantastic speed by putting /usr in compressed form in a ramdisk. But Puppy is a slow dog on boxes with less than 128M because there is not enough room for the ramdisk.

There is lots of stuff in /usr that is not used very often (eg., how often do you use ssh-keygen - why keep this in RAM?). I would guess that something like 10% is used 90% of the time and the remaining 90% is used 10% of the time.

Would it be possible to identify the most-used 10% and keep it on the ramdisk, symlinking to to the least-used 90% kept on the hard drive?
This is a block of text that can be added to posts you make. There is a 255 character limit

User avatar
bombayrockers
Posts: 427
Joined: Sat 24 Sep 2005, 16:47
Location: Mumbai, India
Contact:

#2 Post by bombayrockers »

I have 128 Mb ram and 300 Mb linux swap partition. This is the output of my free immediately after booting + X + jwm
tot used free buffers
mem 125796 118564 15232 10820
swap 305224 53624 251600

now see that most of my ram is used up and I have only 15232 free ram. Once I start some progs such as abiword free goes as low as 1500. Once this happens all progs become slow. And swapping to hd is always slower than memory.

Loading whole of the usr_cram to memory is beneficial because it allows use of cd-rom once loaded. However there should be a boot time option to load the usr_cram to memory or not. By doing this the loading time of the programs will increase but their responsiveness should increase as more memory would be available ?

Post Reply