public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Keika Kobayashi <kobayashi.kk@ncos.nec.co.jp>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [PATCH 1/4] per-task-delay-accounting: add memory reclaim delay
Date: Thu, 05 Jun 2008 11:56:39 -0700	[thread overview]
Message-ID: <484836E7.2060003@ct.jp.nec.com> (raw)
In-Reply-To: <20080605092451.9C1D.KOSAKI.MOTOHIRO@jp.fujitsu.com>

KOSAKI Motohiro wrote:
>>>> +	delayacct_freepages_start();
>>>>  	did_some_progress = try_to_free_pages(zonelist, order, gfp_mask);
>>>> +	delayacct_freepages_end();
>>> Shouldn't we consider memcgroup reclaim?
>> thanks for pointing this.
>> Unfortunately, we're not so familiar to memcgroup.
>> Will look into this.
>> Could you tell us pointers to memcgroup?
> 
> Documentation/controllers/memory.txt is good guide :)

thanks, and playing with this is good too.
I see it's easy to use this feature :)

> 
> <abstract>
> try_to_free_pages():	         global reclaim entry point
> try_to_free_mem_cgroup_pages():  memcgroup reclaim entry point
> do_try_to_free_pages():	         common layer

I see the point that, on memcgroup enabled system, there are
memcgroup memory reclaim points and try_to_free_mem_cgroup_pages()
is called when the page charge reach the limit.
So if we want to account delay for memory reclaim, we should
account at both of try_to_free_pages() and try_to_free_mem_cgroup_pages().
Accounting at do_try_to_free_pages() covers this case.

> Unfortunately, I don't know your requirement and
> memcgroup reclaim shold be mesured.
> I hope you explain your purpose and benefit more.

Ah, sure.
We have an issue that a process which accesses a DB sometime slows down.
We want to know what causes it, without the reproducer.
We have only the report of the problem, memory usage, vmstat...
And, I don't know the memory reclaim really causes the problem.

If we can see what kind of delay is the matter in the test bed, it will
help us to take a next action.

Thanks,
Hiroshi Shimamoto


  reply	other threads:[~2008-06-05 18:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04  2:38 [PATCH 1/4] per-task-delay-accounting: add memory reclaim delay Keika Kobayashi
2008-06-04  2:42 ` [PATCH 2/4] per-task-delay-accounting: update taskstats for memory Keika Kobayashi
2008-06-04  2:59   ` KOSAKI Motohiro
2008-06-04  3:20     ` [PATCH 2/4] per-task-delay-accounting: update taskstats for memory reclaim delay Keika Kobayashi
2008-06-04  2:44 ` [PATCH 3/4] per-task-delay-accounting: update document and getdelays.c for memory reclaim Keika Kobayashi
2008-06-04  2:46 ` [PATCH 4/4] per-task-delay-accounting: /proc export for memory reclaim delay Keika Kobayashi
2008-06-04  3:07   ` KOSAKI Motohiro
2008-06-04  4:11     ` Keika Kobayashi
2008-06-04  4:26       ` KOSAKI Motohiro
2008-06-04 17:47     ` Hiroshi Shimamoto
2008-06-04 22:41     ` Andrew Morton
2008-06-05  2:30       ` Keika Kobayashi
2008-06-04  3:00 ` [PATCH 1/4] per-task-delay-accounting: add " KOSAKI Motohiro
2008-06-04 17:51   ` Hiroshi Shimamoto
2008-06-05  0:50     ` KOSAKI Motohiro
2008-06-05 18:56       ` Hiroshi Shimamoto [this message]
2008-06-04  3:15 ` KOSAKI Motohiro
2008-06-04  3:40   ` Keika Kobayashi
2008-06-04  6:00 ` KAMEZAWA Hiroyuki

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=484836E7.2060003@ct.jp.nec.com \
    --to=h-shimamoto@ct.jp.nec.com \
    --cc=akpm@linux-foundation.org \
    --cc=kobayashi.kk@ncos.nec.co.jp \
    --cc=kosaki.motohiro@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.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