Re: [RFC] VM: I have a dream...

From: Nikita Danilov
Date: Mon Jan 23 2006 - 17:40:46 EST


Michael Loftis writes:
>
>
> --On January 23, 2006 9:05:41 AM -0600 Ram Gupta <ram.gupta5@xxxxxxxxx>
> wrote:
>
> >
> > Linux also supports multiple swap files . But these are more
> > beneficial if there are more than one disk in the system so that i/o
> > can be done in parallel. These swap files may be activated at run time
> > based on some criteria.
>
> You missed the point. The kernel in OS X maintains creation and use of
> these files automatically. The point wasn't oh wow multiple files' it was
> that it creates them on the fly. I just posted back with the apparent new

This can be done in Linux from user-space: write a script that monitors
free swap space (grep SwapFree /proc/meminfo), and adds/removes new swap
files err... on-the-fly, or --even better-- just-in-time.

The unique feature that Mac OS X VM does have, on the other hand, is
that it keeps profiles of access patterns of applications, and stores
then in files, associated with executables. This allows to quickly
pre-fault necessary pages during application startup (and this makes OSX
boot so fast).

Nikita.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/