All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: "Martin J. Bligh" <mbligh@aracnet.com>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
	Levent Serinol <lserinol@gmail.com>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [RFC][PATCH] tunable zone watermarks
Date: Tue, 29 Mar 2005 12:27:09 +1000	[thread overview]
Message-ID: <4248BCFD.80909@yahoo.com.au> (raw)
In-Reply-To: <183780000.1112057143@flay>

Martin J. Bligh wrote:

>>On Mon, Mar 28, 2005 at 11:30:32AM -0800, Martin J. Bligh wrote:
>>
>>>What situations do you want to tune them in? Would be nicer to do this
>>>automagically ...
>>>
>>We do it automagically right now. What do you mean?
>>
>>It is useful for testing purpose - but then you need an understanding of
>>MM internals to make good use of it.
>>
>>The only tweak available now is lowmem_reserve.
>>
>>

min_free_kbytes is closer to what you want (sorry if it has already
been mentioned).

>>I'm sure there are loads where the default watermark values are 
>>not optimal.
>>
>
>Yeah, I'm just not at all convinced that the solution to these problems
>is to make everything tunable up the wazoo ... all that seems to do is
>
>1) Encourage customers to break their systems in new and interesting ways
>2) Line the pockets of "tuning consultants".
>
>If there are loads where the default watermark values are not optimal
>(and I agree there probably are) then what we really need is to auto
>recognise those, and fix them in the OS ... rather than provide a tweakable.
>
>I see that being able to poke those is useful in diagnosing the above ...
>just not sure we want those in mainline. Perhaps we should have 
>CONFIG_TWEAK_EVERYTHING_UP_THE_WAZOO and not enable it in distros,
>or by default. But as an IBM employee, I can assure you IBM would 
>whine mercilessly at the distros until they turned it on, so I'm not 
>sure it helps ;-)
>
>I've been in customer situations dealing with 10 billion tunables before,
>it makes life impossible ;-(
>
>

I agree, FWIW. The *first* barrier to make something tunable in the 
kernel.org
kernel should be a real world(ish) case where current heuristics fall 
down (if
I do this, then setting "blah" to X gives a 200% improvement, wheras if 
I do that,
then X is bad and Y gives a 200% improvement).

The second condition should be that attempts to make the heuristic 
automatically
handle those cases fails or results in too intrusive / complex code.

And I guess thirdly, it should be documented and understandable to 
(usable by)
non kernel hackers.


--
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-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2005-03-29  2:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-28  6:43 [RFC][PATCH] tunable zone watermarks Levent Serinol
2005-03-28 19:30 ` Martin J. Bligh
2005-03-28 19:51   ` Marcelo Tosatti
2005-03-29  0:45     ` Martin J. Bligh
2005-03-29  2:27       ` Nick Piggin [this message]
2005-03-29  9:10         ` Levent Serinol

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=4248BCFD.80909@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=linux-mm@kvack.org \
    --cc=lserinol@gmail.com \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=mbligh@aracnet.com \
    /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 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.