lkml.org 
[lkml]   [2000]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: out of swap
On Mon, Nov 27, 2000 at 09:36:33PM -0600, Kevin Krieser wrote:
>
> > What would I like it to do? Warn me maybe before my swap goes to
> > zero. Kill the
> > program that is doing this possibly. Allow me to set a per
> > process memory / swap
> > limit so that no one process can suck up my system resources.
> >
>
> There are several programs available with the typical Linux installation
> that allows you to monitor swap space. For example, xosview.

Yep

>
> There are also settings you can make in Netscape that supposedly limit disk
> space usage and memory usage.

But this doesn't help this particular problem, I think. The problem is probably
not the in-memory cache, but the resource consumption caused by netscape
loading the pictures.

You can use ulimit (or pam) to set memory consumption limits for each process,
and that would usually do the trick (see /etc/pam.d/ and
/etc/security/limits.conf at least on RedHat).

Unfortunately, Netscape sends the images to the X server, so usually you will
see that Netscape's memory consumption stays fairly constant, while your X
server will start consuming lots of memory. If you set the resource limits,
your X server will be the obvious choice for the OOM killer (I guess -
comments, Riel or Andrea ?). I don't know of any good solution to this problem
other than just having enough swap space - after all, seriously, with today's
disks, who can't spare an extra few hundred megs (which would usually be more
than enough).

--
................................................................
: jakob@unthought.net : And I see the elder races, :
:.........................: putrid forms of man :
: Jakob Østergaard : See him rise and claim the earth, :
: OZ9ABN : his downfall is at hand. :
:.........................:............{Konkhra}...............:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.062 / U:5.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site