Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2000 03:30:04 -0800 (PST)
From:      Harald Hanche-Olsen <hanche@math.ntnu.no>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/22826: Memory limits have no effect in linux compatibility
Message-ID:  <200011141130.DAA18010@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/22826; it has been noted by GNATS.

From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: bde@zeta.org.au
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/22826: Memory limits have no effect in linux compatibility
Date: Tue, 14 Nov 2000 12:24:32 +0100

 + Bruce Evans <bde@zeta.org.au>:
 
 | On Mon, 13 Nov 2000 hanche@math.ntnu.no wrote:
 | 
 | > Set a low memory limit.  Soft or hard, it doesn't matter:
 | > $ ulimit -H -m 8192
 | 
 | I think you want to use -d (data segment size) and maybe -s (stack
 | size) instead of -m (max memory size) (better described as max
 | resident set in setrlimit(2)).  -m limits use of real memory but
 | doesn't limit use of virtual memory.
 
 Oh, I didn't know that.  (In fact, it's a bit tricky to correlate the
 limits described in setrlimit(1) with those handled by the (u)limit
 command in various shells.
 
 More to the point, however, in my experiment I used both -d and -s as
 well as -m, and still the process grew without bound.  I'm sorry, I
 should have mentioned that.
 
 - Harald
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011141130.DAA18010>