Reduce default UBC_NWINS to save precious KVM.
This commit is contained in:
parent
be487a2752
commit
9307dc5373
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: param.h,v 1.3 2000/08/22 21:27:22 bjh21 Exp $ */
|
||||
/* $NetBSD: param.h,v 1.4 2000/11/30 20:59:36 bjh21 Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994,1995 Mark Brinicombe.
|
||||
|
@ -110,6 +110,13 @@
|
|||
#define NKMEMPAGES_MIN_DEFAULT 0
|
||||
#define NKMEMPAGES_MAX_DEFAULT 32
|
||||
|
||||
/*
|
||||
* Reduce UBC KVM usage from its default (8Mb when I looked).
|
||||
*/
|
||||
#ifndef UBC_NWINS
|
||||
#define UBC_NWINS 128
|
||||
#endif
|
||||
|
||||
/* pages ("clicks") to disk blocks */
|
||||
#define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT))
|
||||
#define dtoc(x) ((x) >> (PGSHIFT - DEV_BSHIFT))
|
||||
|
|
Loading…
Reference in New Issue