lkml.org 
[lkml]   [1998]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPriority Caching available in Linux?
Maybe this is already implemented in the kernel, but it would
be nice to add a "cost-to-access" for each partition mounted.

This would be used add weight to data currently cached in RAM.
For example, if I had a local hard drive that is a fast UW
SCSI drive, I might give it a "cost" of 1. If I had a partition
mounted from a NFS server, I might give it a "cost" of 5. In
other words, it is 5 times more costly to reload the data
from the NFS server than the local hard drive. If the NFS
server had 100 clients, you might make the cost even higher.

Now, when the kernel needs to throw away cached data, it will
throw away local data way more often than the NFS data.

You could even set a "cost" for swap partitions. If the cost
of accessing some NFS partition is set to a higher cost than
the swap partition, cached data from the NFS server would actually
be swapped to disk over getting dumped...

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Kirk Bauer -- Georgia Tech -- kirk@kaybee.org <== Finger for PGP
http://www.kaybee.org/~kirk ResNet RTA Computer Engineering
GT Sport Parachuting Club! http://cyberbuzz.gatech.edu/skydive



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.026 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site