Puppy again, but wait... there's more!

Talk about other linux distributions, or even other OSes.

Re: Puppy again, but wait... there's more!

Postby GJones » 27. Mar 2012, 23:24

Yeah, I don't have any machines with more than 1.5 GB of RAM. :) The Thinkpad in question has only 192 MB, and probably maxes out at 384.

I wonder if there's any way to tell Linux what to cache, e.g. tell it to prefer keeping Firefox libs in RAM instead of other random stuff? I'm thinking sort of along the lines of Windows XP's adaptive prefetching, only simpler and dumber.

(I have tried the preload daemon on a couple occasions, but it doesn't seem to do much, if it does anything.)
GJones
 
Posts: 257
Joined: 22. Jul 2011, 23:27

Re: Puppy again, but wait... there's more!

Postby Shador » 28. Mar 2012, 00:03

GJones wrote:I wonder if there's any way to tell Linux what to cache, e.g. tell it to prefer keeping Firefox libs in RAM instead of other random stuff? I'm thinking sort of along the lines of Windows XP's adaptive prefetching, only simpler and dumber.

No, I don't think that's possible.
Whenever data is accessed which is not yet cached that data is read from disk and some algorithm decides which data to drop if there's no free space anymore. Usually little used, old pages are preferably dropped. So unless you're low on memory the stuff you currently need like firefox libs should stay in memory. If you're getting out of memory those cached pages might get dropped or swapped. This is especially bad if you have even less memory and the system starts swapping application data (no chance to drop those pages as they might contain the mail you're currently writing or ....), which means lots of swapping and disk accesses start to happen. That last scenario can quickly create the impression of an unresponsive system. Your CPU then feels like a giant factory running out of its supplies brought in by a small, tiny road.

Apart prefetching is a different technique, that aims at caching data before it's actually needed. So only a first time start may benefit. It especially offers little benefit on low-memory systems as on those the almost inexistent caches are filled up quickly anyway.
Image
Shador
Salix Warrior
 
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Puppy again, but wait... there's more!

Postby GJones » 28. Mar 2012, 00:18

Thanks... Too bad, that. It would be nice to run a non-toy OS on the Thinkpad, but I guess that's unfeasible these days. :(
GJones
 
Posts: 257
Joined: 22. Jul 2011, 23:27

Previous

Return to Other distributions