machdep.c (52199) | machdep.c (52452) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 |
38 * $FreeBSD: head/sys/amd64/amd64/machdep.c 52199 1999-10-13 08:45:12Z marcel $ | 38 * $FreeBSD: head/sys/amd64/amd64/machdep.c 52452 1999-10-24 03:27:28Z dillon $ |
39 */ 40 41#include "apm.h" 42#include "ether.h" 43#include "npx.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" --- 295 unchanged lines hidden (view full) --- 342#ifdef SYSVMSG 343 valloc(msgpool, char, msginfo.msgmax); 344 valloc(msgmaps, struct msgmap, msginfo.msgseg); 345 valloc(msghdrs, struct msg, msginfo.msgtql); 346 valloc(msqids, struct msqid_ds, msginfo.msgmni); 347#endif 348 349 if (nbuf == 0) { | 39 */ 40 41#include "apm.h" 42#include "ether.h" 43#include "npx.h" 44#include "opt_atalk.h" 45#include "opt_compat.h" 46#include "opt_cpu.h" --- 295 unchanged lines hidden (view full) --- 342#ifdef SYSVMSG 343 valloc(msgpool, char, msginfo.msgmax); 344 valloc(msgmaps, struct msgmap, msginfo.msgseg); 345 valloc(msghdrs, struct msg, msginfo.msgtql); 346 valloc(msqids, struct msqid_ds, msginfo.msgmni); 347#endif 348 349 if (nbuf == 0) { |
350 nbuf = 30; | 350 nbuf = 50; |
351 if (physmem > 1024) 352 nbuf += min((physmem - 1024) / 8, 2048); 353 if (physmem > 16384) 354 nbuf += (physmem - 16384) / 20; 355 } 356 nswbuf = max(min(nbuf/4, 256), 16); 357 358 valloc(swbuf, struct buf, nswbuf); --- 1991 unchanged lines hidden --- | 351 if (physmem > 1024) 352 nbuf += min((physmem - 1024) / 8, 2048); 353 if (physmem > 16384) 354 nbuf += (physmem - 16384) / 20; 355 } 356 nswbuf = max(min(nbuf/4, 256), 16); 357 358 valloc(swbuf, struct buf, nswbuf); --- 1991 unchanged lines hidden --- |