All configurable kernel parameters must be specified using
an integer value or a formula consisting of a valid integer expression.
All can be specified as an integer, and most can be specified using
a formula; but only a minority are usually specified using formula values.
Formula
Values |
 |
When using formulas to specify a parameter value, the formula
must be an integer expression. In other words, every element in
the expression must be an integer value as defined for the C programming
language.
Configurable parameter names are usually lowercase but the
values assigned to them are specified in formulas as the same name
in capitals. For example, the value assigned to npty (by
a C-language #define statement) is NPTY.
Thus, a typical formula for nfile is:
((16*(NPROC+16+MAXUSERS)/10)+32+2*NPTY)
where NPROC represents the defined
value of nproc, MAXUSERS represents
the defined value of maxusers, and NPTY represents
the defined value for npty. There are a
few isolated exceptions to the uppercase/lowercase rule on certain
systems, but they are few.
Whitespace (spaces and tabs) are not allowed.