lkml.org 
[lkml]   [1998]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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:

http://www.sunworld.com/swol-12-1997/swol-12-insidesolaris.html
http://www.sunworld.com/sunworldonline/swol-01-1998/swol-01-insidesolaris.html

prasun
_____________________________________________________________________________
"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 majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site