Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 13:27:11 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        Terry Lambert <tlambert2@mindspring.com>, current@FreeBSD.ORG
Subject:   Re: "A"utodefaults in disklabel on 5.0dp2 install
Message-ID:  <200301262127.h0QLRBMJ068783@apollo.backplane.com>
References:  <p05200f01ba04e268e97b@[128.113.24.47]> <3DDF5106.7469FBA@mindspring.com> <p05200f02ba050a193724@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
    I recently changed the swap backoff algorithm in -current and the
    MFC is slated for -stable.

    Try this change and see if it produces better results.

						-Matt

Index: label.c
===================================================================
RCS file: /home/ncvs/src/release/sysinstall/Attic/label.c,v
retrieving revision 1.98.2.12
diff -u -r1.98.2.12 label.c
--- label.c	3 Jul 2002 00:01:08 -0000	1.98.2.12
+++ label.c	4 Jul 2002 04:39:03 -0000
@@ -1228,7 +1228,7 @@
 		def = SWAP_MIN_SIZE * ONE_MEG;
 	    if (def > SWAP_AUTO_LIMIT_SIZE * ONE_MEG)
 		def = SWAP_AUTO_LIMIT_SIZE * ONE_MEG;
-	    nom = (int)(physmem / 512) / 2;
+	    nom = (int)(physmem / 512) / 8;
 	    sz = nom + (def - nom) * perc / 100;
 	}
 	swap_chunk = Create_Chunk_DWIM(label_chunk_info[here].c->disk, 

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




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