All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Wu Fengguang <fengguang.wu@intel.com>,
	lkml <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [RFC PATCH] mm: let the bdi_writeout fraction respond more  quickly
Date: Thu, 17 Jun 2010 13:41:19 +0200	[thread overview]
Message-ID: <4C1A09DF.9070809@kernel.dk> (raw)
In-Reply-To: <1276774796.1978.11.camel@castor.rsk>

On 2010-06-17 13:39, Richard Kennedy wrote:
> On Wed, 2010-06-16 at 20:54 +0200, Peter Zijlstra wrote:
>> On Mon, 2010-06-14 at 15:44 +0100, Richard Kennedy wrote:
>>>> diff --git a/mm/page-writeback.c b/mm/page-writeback.c
>>>> index 2fdda90..315dd04 100644
>>>> --- a/mm/page-writeback.c
>>>> +++ b/mm/page-writeback.c
>>>> @@ -144,7 +144,7 @@ static int calc_period_shift(void)
>>>>       else
>>>>               dirty_total = (vm_dirty_ratio * determine_dirtyable_memory()) /
>>>>                               100;
>>>> -     return 2 + ilog2(dirty_total - 1);
>>>> +     return ilog2(dirty_total - 1) - 4;
>>>>  } 
>>
>> IIRC I suggested similar things in the past and all we needed to do was
>> find people doing the measurements on different bits of hardware or so..
>>
>> I don't have any problems with the approach, all we need to make sure is
>> that we never return 0 or a negative number (possibly ensure a minimum
>> positive shift value).
> 
> Yep that sounds reasonable. would minimum shift of 4 be ok ?
> 
> something like
> 
> 	max ( (ilog2(dirty_total - 1)- 4) , 4);
> 
> Unfortunately volunteers don't seem to be leaping out of the woodwork,
> maybe Andrew could be persuaded to try this in his tree for a while and
> see if any one squeaks ?

I'm pretty sure that most volunteers are curious what to actually test,
so they shy away from it. If you added a good explanation of an easy way
to test the before and after, then it would be more approachable.

I'll give it a spin here.

-- 
Jens Axboe


WARNING: multiple messages have this Message-ID (diff)
From: Jens Axboe <axboe@kernel.dk>
To: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Wu Fengguang <fengguang.wu@intel.com>,
	lkml <linux-kernel@vger.kernel.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: [RFC PATCH] mm: let the bdi_writeout fraction respond more  quickly
Date: Thu, 17 Jun 2010 13:41:19 +0200	[thread overview]
Message-ID: <4C1A09DF.9070809@kernel.dk> (raw)
In-Reply-To: <1276774796.1978.11.camel@castor.rsk>

On 2010-06-17 13:39, Richard Kennedy wrote:
> On Wed, 2010-06-16 at 20:54 +0200, Peter Zijlstra wrote:
>> On Mon, 2010-06-14 at 15:44 +0100, Richard Kennedy wrote:
>>>> diff --git a/mm/page-writeback.c b/mm/page-writeback.c
>>>> index 2fdda90..315dd04 100644
>>>> --- a/mm/page-writeback.c
>>>> +++ b/mm/page-writeback.c
>>>> @@ -144,7 +144,7 @@ static int calc_period_shift(void)
>>>>       else
>>>>               dirty_total = (vm_dirty_ratio * determine_dirtyable_memory()) /
>>>>                               100;
>>>> -     return 2 + ilog2(dirty_total - 1);
>>>> +     return ilog2(dirty_total - 1) - 4;
>>>>  } 
>>
>> IIRC I suggested similar things in the past and all we needed to do was
>> find people doing the measurements on different bits of hardware or so..
>>
>> I don't have any problems with the approach, all we need to make sure is
>> that we never return 0 or a negative number (possibly ensure a minimum
>> positive shift value).
> 
> Yep that sounds reasonable. would minimum shift of 4 be ok ?
> 
> something like
> 
> 	max ( (ilog2(dirty_total - 1)- 4) , 4);
> 
> Unfortunately volunteers don't seem to be leaping out of the woodwork,
> maybe Andrew could be persuaded to try this in his tree for a while and
> see if any one squeaks ?

I'm pretty sure that most volunteers are curious what to actually test,
so they shy away from it. If you added a good explanation of an easy way
to test the before and after, then it would be more approachable.

I'll give it a spin here.

-- 
Jens Axboe

--
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:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2010-06-17 11:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-14 13:58 [RFC PATCH] mm: let the bdi_writeout fraction respond more quickly Richard Kennedy
2010-06-14 14:44 ` Richard Kennedy
2010-06-14 14:44   ` Richard Kennedy
2010-06-16 18:54   ` Peter Zijlstra
2010-06-16 18:54     ` Peter Zijlstra
2010-06-17 11:39     ` Richard Kennedy
2010-06-17 11:39       ` Richard Kennedy
2010-06-17 11:41       ` Jens Axboe [this message]
2010-06-17 11:41         ` Jens Axboe
2010-06-17 18:45         ` Richard Kennedy
2010-06-17 18:45           ` Richard Kennedy

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=4C1A09DF.9070809@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterz@infradead.org \
    --cc=richard@rsk.demon.co.uk \
    /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.