On Sun, May 9, 2010 at 7:40 PM, Edward Ned Harvey
<solar...@nedharvey.com> wrote:
>
> > From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
> > boun...@opensolaris.org] On Behalf Of Richard Elling
> >
> > For a storage server, swap is not needed. If you notice swap being used
> > then your storage server is undersized.
>
> Indeed, I have two solaris 10 fileservers that have uptime in the range of a
> few months.  I just checked swap usage, and they're both zero.
>
> So, Bob, rub it in if you wish.  ;-)  I was wrong.  I knew the behavior in
> Linux, which Roy seconded as "most OSes," and apparently we both assumed the
> same here, but that was wrong.  I don't know if solaris and opensolaris both
> have the same swap behavior.  I don't know if there's *ever* a situation
> where solaris/opensolaris would swap idle processes.  But there's at least
> evidence that my two servers have not, or do not.

If Solaris is under memory pressure, pages may be paged to swap.
Under severe memory pressure, entire processes may be swapped.  This
will happen after freeing up the memory used for file system buffers,
ARC, etc.  If the processes never page in the pages that have been
paged out (or the processes that have been swapped out are never
scheduled) then those pages will not consume RAM.

The best thing to do with processes that can be swapped out forever is
to not run them.

--
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to