Related,
I've always wondered how I could limit the amount of Memory (or VM)
for a process. E.g. give netscape 80MB max.
I have tried ulimit -m N and similar flags in a wrapper script
for netscape. But it doesn't work as I want: netscape will grow
until it reaches the limit and then die due to lack of memory.
I want the kernel to somehow masquerade to the process that the machine
has less VM than it really does, thereby hopefully inducing netscape to
free(3) more often...
Thanks,
Karl Runge
On Sat, 22 Jul 2000, Benjamin Scott <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I was just wondering if anyone here knew of a program (likely a daemon) that
> would automatically warn me when the system is about to run out of memory?
>
> You see, I was just composing something on the web in Netscape when a Pine
> window I had open abruptly disappeared. Then my swap disk started running
> like crazy. I looked at the system monitor in my GNOME panel, and saw to my
> dismay that both the "RAM used" and "Swap used" gauges were completely filled.
> Damn Netscape and its memory leaks! Fortunately, I was able to save what I
> was working on and shut down the browser before the kernel OOM-killed Netscape
> like it had Pine.
>
> However, it was a serious interruption, and next time I might not be so
> lucky. So, what I'm looking for is a program to warm me *before* it happens
> next time, so I can close out of things gracefully to fix the memory problem.
> At first, I was thinking of a program to pop up a window in X11, but that
> might fail if memory is being consumed quickly. On second thought, something
> that simply started beeping the system speaker would be better.
>
> Any suggestions, before I whip up a quick C program?
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************