[lkml]   [1998]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: swap cache

> Linux supports such easily enough; create a ramdisk, create a swapfile
> on the ramdisk, and then activate it.
> I do not understand the utility of this design.

Yes, there is indeed no utility of this design if you consign a part of yr
RAM for swapping and this is not what Solaris does. And this doesnt have
anything to do with the memory file system. It is actually the other way
round. Memory file system is implemented on swap.

Solaris has a pseudo file system called swapfs which takes into account
the RAM. The argument given is, there are instances where you may run out
of swap but not RAM!! ( Extreme case being that a malloc() would fail on a
system with 0 swap on disk and 1Gig of RAM :) ). So it takes into account
the avilable memory before telling the user that it has run out of swap.
It doesnt actually swap to RAM.

For full details on this implementation refer to following articles:

"If seven maids with seven mops, Swept it for half a
Prasun Kapoor year, do you suppose" the Walrus said, "That they
Wipro Infotech Ltd. could get it clear"."I doubt it" said the Carpenter,
Ph. 2241730 Extn. 3312 and shed a bitter tear

"Through the looking glass and what alice found
there" - Alice in Wonderland -

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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