* Re: Looking for better VM
@ 2000-11-08 14:53 Jesse Pollard
0 siblings, 0 replies; 9+ 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] 9+ messages in thread
* Re: Looking for better VM
@ 2000-11-06 9:05 Szabolcs Szakacsits
2000-11-06 18:56 ` Rik van Riel
0 siblings, 1 reply; 9+ 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] 9+ messages in thread
* Re: Looking for better VM
2000-11-06 9:05 Szabolcs Szakacsits
@ 2000-11-06 18:56 ` Rik van Riel
2000-11-08 11:34 ` Szabolcs Szakacsits
0 siblings, 1 reply; 9+ messages in thread
From: Rik van Riel @ 2000-11-06 18:56 UTC (permalink / raw)
To: Szabolcs Szakacsits; +Cc: linux-kernel
On Mon, 6 Nov 2000, Szabolcs Szakacsits wrote:
> On Wed, 1 Nov 2000, Rik van Riel wrote:
>
> > 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].
It's a shame you didn't take the trouble to actually
go out and see that non-overcommit doesn't solve the
"out of memory" deadlock problem.
[if you want an explanation, look in the archives,
we've explained this a dozen times now]
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
http://www.conectiva.com/ http://www.surriel.com/
-
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] 9+ messages in thread
* Re: Looking for better VM
2000-11-06 18:56 ` Rik van Riel
@ 2000-11-08 11:34 ` Szabolcs Szakacsits
2000-11-08 13:53 ` Rik van Riel
0 siblings, 1 reply; 9+ messages in thread
From: Szabolcs Szakacsits @ 2000-11-08 11:34 UTC (permalink / raw)
To: Rik van Riel; +Cc: linux-kernel, linux-mm, Linus Torvalds, Ingo Molnar
On Mon, 6 Nov 2000, Rik van Riel wrote:
> On Mon, 6 Nov 2000, Szabolcs Szakacsits wrote:
> > On Wed, 1 Nov 2000, Rik van Riel wrote:
> > > 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].
> It's a shame you didn't take the trouble to actually
> go out and see that non-overcommit doesn't solve the
> "out of memory" deadlock problem.
Read my *entire* email again and please try to understand. No deadlock
at all since kernel *falls back* to process killing if memory reserved
for *root* is also out.
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.
And with a runtime tunable OOM killer, Linux really would beat the
competitors [where it is quite behind at present] in this area. See?
Human get a chance against hard-wired AI again.
Believe me, there are people [don't read only kernel lists] who wants
a reliable and controllable system and where the kernel doesn't play
Russan rulet.
[who missed my first email: forget about mem quotas and the the
non-scalable "add GB's of swap" in this discussion].
> [if you want an explanation, look in the archives,
> we've explained this a dozen times now]
I've been reading the list much longer than you and really pissed of
that after so many years of discussions, this problem and user
requirements^Wwishes are still not understood. You think black and
white but the world is colorful.
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] 9+ messages in thread
* Re: Looking for better VM
2000-11-08 11:34 ` Szabolcs Szakacsits
@ 2000-11-08 13:53 ` Rik van Riel
2000-11-08 16:36 ` Mikulas Patocka
0 siblings, 1 reply; 9+ messages in thread
From: Rik van Riel @ 2000-11-08 13:53 UTC (permalink / raw)
To: 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:
> > On Mon, 6 Nov 2000, Szabolcs Szakacsits wrote:
> > > On Wed, 1 Nov 2000, Rik van Riel wrote:
> > > > 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].
> > It's a shame you didn't take the trouble to actually
> > go out and see that non-overcommit doesn't solve the
> > "out of memory" deadlock problem.
>
> Read my *entire* email again and please try to understand. No deadlock
> at all since kernel *falls back* to process killing if memory reserved
> for *root* is also out.
>
> 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.
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
http://www.conectiva.com/ http://www.surriel.com/
-
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] 9+ messages in thread
* Re: Looking for better VM
2000-11-08 13:53 ` Rik van Riel
@ 2000-11-08 16:36 ` Mikulas Patocka
2000-11-08 17:03 ` Christoph Rohland
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mikulas Patocka @ 2000-11-08 16:36 UTC (permalink / raw)
To: Rik van Riel
Cc: Szabolcs Szakacsits, linux-kernel, linux-mm, Linus Torvalds, Ingo Molnar
Hi.
> > 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.
BTW. Why does your OOM killer in 2.4 try to kill process that mmaped most
memory? mmap is hamrless. mmap on files can't eat memory and swap.
Imagine a case: you have database server that mmaps the whole 2G file but
doesn't have too much anonymous memory. You have an offending process that
does while (1) malloc(1000) and fills up 512M swap. Your OOM killer would
kill the server first...
Mikulas
-
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] 9+ messages in thread* Re: Looking for better VM
2000-11-08 16:36 ` Mikulas Patocka
@ 2000-11-08 17:03 ` Christoph Rohland
2000-11-08 20:52 ` Ingo Oeser
2000-11-09 0:08 ` Rik van Riel
2 siblings, 0 replies; 9+ messages in thread
From: Christoph Rohland @ 2000-11-08 17:03 UTC (permalink / raw)
To: Mikulas Patocka
Cc: Rik van Riel, Szabolcs Szakacsits, linux-kernel, linux-mm,
Linus Torvalds, Ingo Molnar
Hi Mikulas,
On Wed, 8 Nov 2000, Mikulas Patocka wrote:
> BTW. Why does your OOM killer in 2.4 try to kill process that mmaped
> most memory? mmap is hamrless. mmap on files can't eat memory and
> swap.
Be careful: They may have shm segments mmaped!
Greetings
Christoph
-
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] 9+ messages in thread
* Re: Looking for better VM
2000-11-08 16:36 ` Mikulas Patocka
2000-11-08 17:03 ` Christoph Rohland
@ 2000-11-08 20:52 ` Ingo Oeser
2000-11-09 0:08 ` Rik van Riel
2 siblings, 0 replies; 9+ messages in thread
From: Ingo Oeser @ 2000-11-08 20:52 UTC (permalink / raw)
To: Mikulas Patocka
Cc: Rik van Riel, Szabolcs Szakacsits, linux-kernel, linux-mm,
Linus Torvalds, Ingo Molnar
On Wed, Nov 08, 2000 at 05:36:40PM +0100, Mikulas Patocka wrote:
> BTW. Why does your OOM killer in 2.4 try to kill process that mmaped most
> memory? mmap is hamrless. mmap on files can't eat memory and swap.
Don't complain, build your own and test it ;-)
Apply my patch
http://www.tu-chemnitz.de/~ioe/oom_kill_api.patch
and install your own OOM handler using install_oom_killer()
from <linux/swap.h>. It has all the needed documentation inline
that will be build along the kernel-api-book.
Have fun researching in this area.
PS: Applies cleanly since oom_kill.c exists and also against
2.4.0-test11-pre1.
Regards
Ingo Oeser
--
To the systems programmer, users and applications
serve only to provide a test load.
<esc>:x
-
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] 9+ messages in thread
* Re: Looking for better VM
2000-11-08 16:36 ` Mikulas Patocka
2000-11-08 17:03 ` Christoph Rohland
2000-11-08 20:52 ` Ingo Oeser
@ 2000-11-09 0:08 ` Rik van Riel
2 siblings, 0 replies; 9+ messages in thread
From: Rik van Riel @ 2000-11-09 0:08 UTC (permalink / raw)
To: Mikulas Patocka
Cc: Szabolcs Szakacsits, linux-kernel, linux-mm, Linus Torvalds, Ingo Molnar
On Wed, 8 Nov 2000, Mikulas Patocka wrote:
> BTW. Why does your OOM killer in 2.4 try to kill process that mmaped
> most memory? mmap is hamrless. mmap on files can't eat memory and
> swap.
Because the thing is too stupid to take that into
consideration? :)
Btw, if your mmap()ed file still takes 1GB of memory,
you have 1GB of freeable memory left and you shouldn't
be out of memory ... or should you??
regards,
Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.
http://www.conectiva.com/ http://www.surriel.com/
-
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] 9+ messages in thread
end of thread, other threads:[~2000-11-09 0:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-08 14:53 Looking for better VM Jesse Pollard
-- strict thread matches above, loose matches on Subject: below --
2000-11-06 9:05 Szabolcs Szakacsits
2000-11-06 18:56 ` Rik van Riel
2000-11-08 11:34 ` Szabolcs Szakacsits
2000-11-08 13:53 ` Rik van Riel
2000-11-08 16:36 ` Mikulas Patocka
2000-11-08 17:03 ` Christoph Rohland
2000-11-08 20:52 ` Ingo Oeser
2000-11-09 0:08 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®