Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 1999 11:32:31 -0700
From:      Jason Thorpe <thorpej@nas.nasa.gov>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        "Brian F. Feldman" <green@FreeBSD.ORG>, Noriyuki Soda <soda@sra.co.jp>, bright@rush.net, dcs@newsguy.com, freebsd-hackers@FreeBSD.ORG, jon@oaktree.co.uk, tech-userlevel@netbsd.org
Subject:   Re: Replacement for grep(1) (part 2) 
Message-ID:  <199907131832.LAA22555@lestat.nas.nasa.gov>

next in thread | raw e-mail | index | archive | help
On Tue, 13 Jul 1999 11:13:49 -0700 (PDT) 
 Matthew Dillon <dillon@apollo.backplane.com> wrote:

 >     SysV was totally and utterly broken in regards to swap allocation.  The
 >     only major operating system that used it as a base was IRIX and SGI
 >     found out very quickly that pre-reserving swap is a stupid idea - and
 >     so they implemented 'virtual swap' to get around it in 5.3, and moved the
 >     whole thing to an overcommit model in 6.4.  Doh!  Even solaris doesn't
 >     overcommit - you think it actually reserves data blocks for its file-backed
 >     swap?  Bzzt!  It uses an overcommit model too.

You don't have to reserve the actual swap blocks.  you merely have to
know how many blocks total there are, and how many swap backed pages
you have.  you can certainly dynamically assign the actual swap blocks,
for e.g. swap clustering, etc.  it's really not that hard.

In the case of swapping to files, NetBSD, at least, doesn't allow swapping
to sparse files.  The data blocks in the swap file must exist and be
allocated to that file.

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907131832.LAA22555>