cacheing swapping

Randy Chapman (
Sat, 29 Jul 1995 23:01:29 -0700 (PDT)

Ok, I know this is a bit twisted to use ram to cache swapping, but...

THe situation is that I have a 2meg 8bit EMS card. I've written a driver
for it (not modularized it yet.. wrote it in 0.99 days).

Using it as a block device for swapping is hardly effective, as my
thrashing point is at different places at different times (if I put the
fast swap area first, it fills up and thrashes to the hd, etc).

So I see a few options.. I could attempt to add cacheing into the swap
code (strange..), I could try to just use it as a buffer cache for normal
disk useage (this might actually be very effective), or I could low-level
add it to the IDE driver.

Any suggestions? Hints of places it would be easiest to add? Or is
there an easier wayt to do this? Yeah, yeah, I really should just get
anew system, but this looks like a fun project anyways ;)