From: "John Fremlin" <vii@penguinpowered.com>
To: linux-mm@kvack.org
Subject: Re: [RFC] RSS guarantees and limits
Date: 23 Jun 2000 16:52:59 +0100 [thread overview]
Message-ID: <m2ya3wcs2s.fsf@boreas.southchinaseas> (raw)
In-Reply-To: Rik van Riel's message of "Thu, 22 Jun 2000 20:27:16 -0300 (BRST)"
Rik van Riel <riel@conectiva.com.br> writes:
[...]
> > I agree completely. It was one of the reasons I suggested that a
> > syscall like nice but giving info to the mm layer would be
> > useful. In general, small apps (xeyes,biff,gpm) don't deserve
> > any special treatment.
>
> Why not? In scheduling processes which use less CPU get
> a better response time. Why not do the same for memory
> use? The less memory you use, the less agressive we'll be
> in trying to take it away from you.
CPU != memory.
Quick reasons:
(1) Sleeping process takes memory.
(2) Take away 10% CPU from a program, it runs at about 90% of
former speed. Take away 10% mem from a program, might only run
at 5-10% of former speed due to having to wait for disk IO.
>
> Of course a small app should be removed from memory when
> it's sleeping, but there's no reason to not apply some
> degree of fairness in memory allocation and memory stealing.
[...]
You say you can't see why small processes like shells etc. shouldn't
be specially treated (your first paragraph). Folding double negative,
you say there should be positive discrimination for these processes,
i.e. fairer distribution of memory (your second paragraph).
If you think I'm not qualified to disagree, reread what Matthew Dillon
said to you while discussing VM changes in May:
Well, I have a pretty strong opinion on trying to rationalize
penalizing big processes simply because they are big. It's a bad
idea for several reasons, not the least of which being that by
making such a rationalization you are assuming a particular system
topology -- you are assuming, for example, that the system may
contain a few large less-important processes and a reasonable
number of small processes. But if the system contains hundreds of
small processes or if some of the large processes turn out to be
important, the rationalization fails.
Also if the large process in question happens to really need the
pages (is accessing them all the time), trying to page those pages
out gratuitously does nothing but create a massive paging load on
the system. Unless you have a mechanism to (such as FreeBSD has)
to impose a 20-second forced sleep under extreme memory loads, any
focus on large processes will simply result in thrashing (read:
screw up the system).
[...]
> > The only general solution I can see is to give some process
> > (groups) a higher MM priority, by analogy with nice.
>
> That you can't see anything better doesn't mean it isn't possible ;)
Indeed, I wait anxiously for someone to propose a better solution.
[...]
--
http://altern.org/vii
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-06-23 15:53 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-21 22:29 Rik van Riel
2000-06-22 18:00 ` John Fremlin
2000-06-22 19:12 ` Rik van Riel
2000-06-22 21:19 ` Stephen Tweedie
2000-06-22 21:37 ` Rik van Riel
2000-06-22 22:48 ` John Fremlin
2000-06-22 23:59 ` Stephen Tweedie
2000-06-23 16:08 ` John Fremlin
2000-06-22 22:39 ` John Fremlin
2000-06-22 23:27 ` Rik van Riel
2000-06-23 0:49 ` Ed Tomlinson
2000-06-23 13:45 ` Rik van Riel
2000-06-23 15:36 ` volodya
2000-06-23 15:52 ` John Fremlin [this message]
2000-06-24 11:22 ` Andrey Savochkin
2000-06-27 3:26 ` Stephen C. Tweedie
2000-06-22 14:41 [RFC] " frankeh
2000-06-22 15:31 ` Rik van Riel
2000-06-22 15:49 frankeh
2000-06-22 16:05 ` Rik van Riel
2000-06-22 16:22 frankeh
2000-06-22 16:38 ` Rik van Riel
2000-06-22 19:48 ` Jamie Lokier
2000-06-22 19:52 ` Rik van Riel
2000-06-22 20:00 ` Jamie Lokier
2000-06-22 20:07 ` Rik van Riel
2000-06-22 23:02 Mark_H_Johnson
2000-06-23 14:01 frankeh
2000-06-23 17:56 ` Stephen Tweedie
2000-06-23 18:07 frankeh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ya3wcs2s.fsf@boreas.southchinaseas \
--to=vii@penguinpowered.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox