From owner-freebsd-current Sun Jan 12 22:15:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id WAA21635 for current-outgoing; Sun, 12 Jan 1997 22:15:41 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id WAA21630 for ; Sun, 12 Jan 1997 22:15:37 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id RAA07295 for current@freebsd.org; Mon, 13 Jan 1997 17:13:57 +1100 Date: Mon, 13 Jan 1997 17:13:57 +1100 From: Bruce Evans Message-Id: <199701130613.RAA07295@godzilla.zeta.org.au> To: current@freebsd.org Subject: limits in login.conf Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Some of the default limits in login.conf are much smaller than the kernel defaults: kernel login.conf ------ ---------- datasize 16M 16M maxproc 40 64 memorylocked 10M infinity stacksize 2M 8M Some are larger and broken: memoryuse 30M machine-dependent The kernel sets this to the maximum amount of real memory available, which is about 6MB on an 8MB machine, so forcing it to a larger value is wrong. I think the kernel defaults should be increased to the maximum or infinity and setclassresources() should never reduce them. Bruce