Re: Memory Management - BSD vs Linux

James Mastros (root@jennifer-unix.dyn.ml.org)
Mon, 11 Aug 1997 14:12:51 -0400 (EDT)


On Mon, 11 Aug 1997, Darren Reed wrote:

> In some mail I received from Theodore Y. Ts'o, sie wrote
> >
> > [3] Can any of these systems have
> > a) swap files rather than partitions
> > b) dynamically growing swap space?
> > As far as I can make out, the answeris no!
> >
> > Linux can swap to files (multiple files if necessary), and there is a
> > user-mode daemon that can allow you to dyanmically grow swap space (by
> > allocating a new file).
>
> NetBSD has swapfiles and does not require a daemon to be running for more
> to be added. NetBSD has also since moved on from just swap(2) to having
> swapctl(2) which supports things like swap files/partitions with different
> priorities and a replacement program for swapon - swapctl(8).
>
> Darren
>

Umm... Sounds like "me too", but "us too"... Swapon supports priorities,
and you can add/remove swap partitions/files to your heart's content without
any daemon. The daemon simply calls mkswap/swapon when memory gets low, and
swapoff/rm when it frees up again. I don't really see what you mean by
"mov[ing] on from just swap(2) to having swapctl(2)"... Why not just
enhance swap(2)?

-=- James Mastros