Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2000 13:48:20 -0800 (PST)
From:      hanche@math.ntnu.no
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/22826: Memory limits have no effect in linux compatibility
Message-ID:  <20001113214820.109C437B479@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22826
>Category:       kern
>Synopsis:       Memory limits have no effect in linux compatibility
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 13 13:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Harald Hanche-Olsen
>Release:        4.1-RELEASE
>Organization:
Norwegian University of Science and Technology
>Environment:
FreeBSD fiinbeck.math.ntnu.no 4.1-RELEASE FreeBSD 4.1-RELEASE #2: Fri Sep i386 unknown

>Description:
Memory limits, soft or hard, appear to have no effect on programs
running under Linux emulation, allowing them to allocate memory until
the machine runs out of virtual memory.
>How-To-Repeat:
Set a low memory limit.  Soft or hard, it doesn't matter:
$ ulimit -H -m 8192
Run a linux program which likes to allocate lots of memory,
and watch it grow, and grow, and grow.
I discovered this using acroread 4.05, which has
a marvelous memory leak - when the display covers most of the screen,
it grows by several MB each time you move to a different page.
I had it grow to over 100 MB with a memory limit of just 8 MB.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


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?20001113214820.109C437B479>