mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Partially revert revision 1.66, which contained a change that did not
correspond to the commit log. It changed the maxswzone and maxbcache parameters from int to long, without changing the extern definitions in <sys/buf.h>. In fact it's a good thing it did not, because other parts of the system are not yet ready for this, and on large-memory sparc machines it causes severe filesystem damage if you try. The worst effect of the change was that the tunables controlling the above variables stopped working. These were necessary to allow such large sparc64 machines (with >12GB RAM) to boot, since sparc64 did not set a hard-coded upper limit on these parameters and they ended up overflowing an int, causing an infinite loop at boot in bufinit(). Reviewed by: mlaier
This commit is contained in:
parent
26390635de
commit
f098dcded5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151342
@ -75,8 +75,8 @@ int maxfilesperproc; /* per-proc open files limit */
|
||||
int ncallout; /* maximum # of timer events */
|
||||
int nbuf;
|
||||
int nswbuf;
|
||||
long maxswzone; /* max swmeta KVA storage */
|
||||
long maxbcache; /* max buffer cache KVA storage */
|
||||
int maxswzone; /* max swmeta KVA storage */
|
||||
int maxbcache; /* max buffer cache KVA storage */
|
||||
int maxpipekva; /* Limit on pipe KVA */
|
||||
u_long maxtsiz; /* max text size */
|
||||
u_long dfldsiz; /* initial data size limit */
|
||||
@ -106,11 +106,11 @@ init_param1(void)
|
||||
#ifdef VM_SWZONE_SIZE_MAX
|
||||
maxswzone = VM_SWZONE_SIZE_MAX;
|
||||
#endif
|
||||
TUNABLE_LONG_FETCH("kern.maxswzone", &maxswzone);
|
||||
TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone);
|
||||
#ifdef VM_BCACHE_SIZE_MAX
|
||||
maxbcache = VM_BCACHE_SIZE_MAX;
|
||||
#endif
|
||||
TUNABLE_LONG_FETCH("kern.maxbcache", &maxbcache);
|
||||
TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache);
|
||||
|
||||
maxtsiz = MAXTSIZ;
|
||||
TUNABLE_ULONG_FETCH("kern.maxtsiz", &maxtsiz);
|
||||
|
Loading…
Reference in New Issue
Block a user