Linked by Thom Holwerda on Mon 25th Feb 2008 20:11 UTC, submitted by Nemilar
Linux Preload is a Linux daemon that stores commonly-used libraries and binaries in memory to speed up access times; similar to Windows Vista's SuperFetch function. This article looks at Preload and gives some insight into how much performance is gained for its total resource cost.
Thread beginning with comment 302345
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: I thought...
by losethos8 on Tue 26th Feb 2008 09:36 UTC in reply to "I thought..."
losethos8
Member since:
2008-02-24

Prefetch doesn't "waste disk cache". Disk cache starts empty and provides no boost until it gets content and begins to eliminate the need to physically read disk blocks. As you read-in blocks, it attempts to get rid of useless disk cache blocks based on a algorithm like "get rid of least recently used." The only way prefetch could hurt would be if the algorithm mistakenly thought there was a higher likelyhood the prefetched blocks would be used than some other recently read blocks. That is unlikely.

Reply Parent Bookmark Score: 2

RE[2]: I thought...
by losethos8 on Tue 26th Feb 2008 12:59 in reply to "RE: I thought..."
losethos8 Member since:
2008-02-24

I guess a highly aggressive prefetch might cause problems. It's one thing to fill disk cache with potentially useful blocks just after booting--that's pretty harmless-- and another thing to start reading-in files for one application while another application is running because you expect the user to do it next. I think it all depends on how aggressive the prefetch is.

Reply Parent Bookmark Score: 1

RE[3]: I thought...
by Zerix01 on Wed 27th Feb 2008 14:32 in reply to "RE[2]: I thought..."
Zerix01 Member since:
2007-07-26

You all seem to be confused. Preload uses RAM to cache recently used programs. Nothing I know of at the moment uses the hard drive to do this as it would be just as fast loading the program as you normally would. You guys may be thinking of swap space which is only used when you run out of available physical memory. If you run in to this situation while preload is running than I'm sure you will see a greater performance hit, but if this happens at any time than you will still be seeing a performance hit and preload running or not would be the least of your worries. RAM is cheap right now so stock up if this happens a lot.

Reply Parent Bookmark Score: 1