All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Looking for better VM
@ 2000-11-06  9:05 Szabolcs Szakacsits
  2000-11-06 18:56 ` Rik van Riel
  0 siblings, 1 reply; 22+ messages in thread
From: Szabolcs Szakacsits @ 2000-11-06  9:05 UTC (permalink / raw)
  To: linux-kernel


On Wed, 1 Nov 2000, Rik van Riel wrote:

> I'm definately looking forward to an "OOM killer showdown" 
> where we can compare how the different OOM tactics work.

Since people must live with Linux's overcommiting feature the winner
would be the one that could be tuned runtime. The best general purpuse
killer could be set as default. OOM-Killer-API-Patch is a really long
waited promising 1st step.

Please also consider to give Linux application developers a chance to
be able to write reliable software and not to kill the app with the
same possibility as the apps that ask for more memory constantly in
the long run (i.e. they don't touch the mem they requested, don't have
own mem handling, etc). 

> Not because I think it matters all that much on most systems 
> (good admins put in enough memory&swap), 

Good admins can not put in enough memory&swap because Linux overcommit
memory, they can put extra memory&swap to a non-overcommiting system
(Solaris, Tru64, Irix, NetBSD, etc - usually they also support
non-overcommit) at an average additional 5-10% cost to achive the same
workload as Linux and they can login in and kill the offending
processes if system is out of user memory [falling back to process
killing if memory reserved for root is also out -- but this basically
never happens compared to the frequent crash complaints in case of
Linux]. A Linux admin can setup mem quotas that's in average more
expensive [see, (almost?) all Linux distribution comes with a default
config that can be easily crashed by any user] than buying cheap extra
disk/RAM and using non-overcommit VM handling (at least the default
setup can't be crashed by a user) or the Linux admin can pray or hope
some black magic that seems to be a very often case and in the end
result disappointment and anger.

> but simply because 
> it appears there has been amazingly little research on this 
> subject and it's completely unknown which approach will work 

There has been lot of research, this is the reason most Unices support
both non-overcommit and overcommit memory handling default to
non-overcommit [think of reliability and high availability].

	Szaka

-
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/

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Looking for better VM
@ 2000-11-08 14:53 ` Jesse Pollard
  0 siblings, 0 replies; 22+ messages in thread
From: Jesse Pollard @ 2000-11-08 14:53 UTC (permalink / raw)
  To: riel, Szabolcs Szakacsits
  Cc: linux-kernel, linux-mm, Linus Torvalds, Ingo Molnar

------
> On Wed, 8 Nov 2000, Szabolcs Szakacsits wrote:
> > On Mon, 6 Nov 2000, Rik van Riel wrote:
[snip]
> > You could ask, so what's the point for non-overcommit if we use
> > process killing in the end? And the answer, in *practise* this almost
> > never happens, root can always clean up and no processes are lost
> > [just as when disk is "full" except the reserved area for root]. See?
> > Human get a chance against hard-wired AI.
> > 
> > I also didn't say non-overcommit should be used as default and a
> > patch http://www.cs.helsinki.fi/linux/linux-kernel/2000-13/1208.html,
> > developed for 2.3.99-pre3 by Eduardo Horvath and unfortunately was
> > ignored completely, implemented it this way. 
> 
> OK. This is a lot more reasonable. I'm actually looking
> into putting non-overcommit as a configurable option in
> the kernel.
> 
> However, this does not save you from the fact that the
> system is essentially deadlocked when nothing can get
> more memory and nothing goes away. Non-overcommit won't
> give you any extra reliability unless your applications
> are very well behaved ... in which case you don't need
> non-overcommit.

Applications are not usually the problem, users are. If a user starts
one "well behaved" process, and then starts another, and another....
The system WILL go OOM, and with unpredictable results (as far as the user
is concerned).

The Eduardo Horvath patch works exactly as he designed. It allowed overcommit
by root, disallowed user generating overcommit. or it could disallow
overcommit by all, or operate the same as without the patch (but it did
accumulate some statistics).

The problem is that unless user memory resource controls are available to
the administrator to establish some policy, system deadlock will always
occur, OR you have random shutdowns, or random process aborts. The resource
controls should allow an administrator defined policy, established in user
space, and enforced by the kernel. The kernel should be able to enforce any
policy from no memory restriction (current, and reasonable for single user
workstations), to fully disabled overcommit (dedicated multi-user batch
processing in clustered environments).

I know the patch was an early prototype. It did provide some identification
of the locations that resource controls could/should be done (this should be a
2.5 developement item).

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.
-
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/

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2000-11-13 23:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-06  9:05 Looking for better VM Szabolcs Szakacsits
2000-11-06 18:56 ` Rik van Riel
2000-11-08 11:34   ` Szabolcs Szakacsits
2000-11-08 11:34     ` Szabolcs Szakacsits
2000-11-08 13:53     ` Rik van Riel
2000-11-08 13:53       ` Rik van Riel
2000-11-08 16:36       ` Mikulas Patocka
2000-11-08 16:36         ` Mikulas Patocka
2000-11-08 17:03         ` Christoph Rohland
2000-11-08 17:03           ` Christoph Rohland
2000-11-08 20:52         ` Ingo Oeser
2000-11-08 20:52           ` Ingo Oeser
2000-11-09  0:08         ` Rik van Riel
2000-11-09  0:08           ` Rik van Riel
2000-11-09 17:30       ` [PATCH] Reserve VM for root (was: Re: Looking for better VM) Szabolcs Szakacsits
2000-11-09 17:30         ` Szabolcs Szakacsits
2000-11-10 10:38         ` Andrey Savochkin
2000-11-10 10:38           ` Andrey Savochkin
2000-11-13 23:44           ` user beancounter (was: Reserve VM for root) Szabolcs Szakacsits
2000-11-13 23:44             ` Szabolcs Szakacsits
  -- strict thread matches above, loose matches on Subject: below --
2000-11-08 14:53 Looking for better VM Jesse Pollard
2000-11-08 14:53 ` Jesse Pollard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.