Messages in this thread | | | Date | Sun, 15 Mar 1998 21:07:10 -0500 (EST) | From | Kirk Bauer <> | Subject | Priority 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
| |