Browse Source

Fix 'double by a factor of two' and make cache options a bit more

descriptive while at it, input and okay jmc@
OPENBSD_4_0
pedro 18 years ago
parent
commit
244553b30f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/lib/libc/stdlib/malloc.3

+ 4
- 4
src/lib/libc/stdlib/malloc.3 View File

@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: malloc.3,v 1.44 2006/04/02 18:22:14 otto Exp $
.\" $OpenBSD: malloc.3,v 1.45 2006/06/06 14:49:26 pedro Exp $
.\" .\"
.Dd August 27, 1996 .Dd August 27, 1996
.Dt MALLOC 3 .Dt MALLOC 3
@ -285,10 +285,10 @@ Fill some junk into the area allocated (see
except for the exact length the user asked for, which is zeroed. except for the exact length the user asked for, which is zeroed.
.It Cm < .It Cm <
.Dq Half the cache size . .Dq Half the cache size .
Reduce the size of the cache by a factor of two.
Decrease the size of the free page cache by a factor of two.
.It Cm > .It Cm >
.Dq Double the cache size . .Dq Double the cache size .
Double the size of the cache by a factor of two.
Increase the size of the free page cache by a factor of two.
.El .El
.Pp .Pp
So to set a systemwide reduction of cache size and coredumps on problems: So to set a systemwide reduction of cache size and coredumps on problems:
@ -302,7 +302,7 @@ flags are mostly for testing and debugging.
If a program changes behavior if either of these options are used, If a program changes behavior if either of these options are used,
it is buggy. it is buggy.
.Pp .Pp
The default cache size is 16 pages.
The default number of free pages cached is 16.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Fn malloc .Fn malloc


Loading…
Cancel
Save