mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Balbir Singh <balbir@linux.vnet.ibm.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hirokazu Takahashi <taka@valinux.co.jp>,
	righi.andrea@gmail.com, dm-devel@redhat.com,
	xen-devel@lists.xensource.com,
	containers@lists.linux-foundation.org, agk@sourceware.org,
	linux-kernel@vger.kernel.org,
	virtualization@lists.linux-foundation.org, jens.axboe@oracle.com,
	fernando@oss.ntt.co.jp, xemul@openvz.org
Subject: Re: [dm-devel] Re: dm-ioband + bio-cgroup benchmarks
Date: Fri, 19 Sep 2008 22:18:01 -0700	[thread overview]
Message-ID: <48D48789.8000606@linux.vnet.ibm.com> (raw)
In-Reply-To: <20080920132703.e74c8f89.kamezawa.hiroyu@jp.fujitsu.com>

KAMEZAWA Hiroyuki wrote:
> On Fri, 19 Sep 2008 12:34:05 +0900 (JST)
> Hirokazu Takahashi <taka@valinux.co.jp> wrote:
> 
>> I've decided to get Ryo to post the accurate dirty-page tracking patch
>> for bio-cgroup, which isn't perfect yet though. The memory controller
>> never wants to support this tracking because migrating a page between
>> memory cgroups is really heavy.
>>
>> I also thought enhancing the memory controller would be good enough,
>> but a lot of people said they wanted to control memory resource and
>> block I/O resource separately.
>> So you can create several bio-cgroup in one memory-cgroup,
>> or you can use bio-cgroup without memory-cgroup.
>>
>> I also have a plan to implement more acurate tracking mechanism
>> on bio-cgroup after the memory cgroup team re-implement the infrastructure,
>> which won't be supported by memory-cgroup.
>> When a process are moved into another memory cgroup,
>> the pages belonging to the process don't move to the new cgroup
>> because migrating pages is so heavy. It's hard to find the pages
>> from the process and migrating pages may cause some memory pressure.
>> I'll implement this feature only on bio-cgroup with minimum overhead
>>
> I really would like to move page_cgroup to new cgroup when the process moves...
> But it's just in my plan and I'm not sure I can do it or not.
> 

Kamezawa-San, I am not dead against it, but I would provide a knob/control point
for system administrator to decide if movement is important for applications,
then let them do so (like force_empty).

> Anyway what's next for me is
>  1. fix current discussion to remove page->page_cgroup pointer.
>  2. reduce locks.

Are you planning on reposting these. I've been trying other approaches at my end

1. Use radix tree per-node per-zone
2. Use radix trees only for 32 bit systems
3. Depend on CONFIG_HAVE_MEMORY_PRESENT and build a sparse data structure and
use pre-allocation

I've posted (1) and I'll take a look at your patches as well

>  3. support swap and swap-cache.
> 
> I think algorithm for (1), (2) is now getting smart.
> 

Yes, it is getting better

> Thanks,
> -Kame
> 


-- 
	Balbir

  reply	other threads:[~2008-09-20  5:20 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 12:04 Ryo Tsuruta
2008-09-18 13:15 ` Vivek Goyal
2008-09-18 14:37   ` Andrea Righi
2008-09-18 15:06     ` Vivek Goyal
2008-09-18 15:18       ` Andrea Righi
2008-09-18 16:20         ` Vivek Goyal
2008-09-18 19:54           ` Andrea Righi
2008-09-19  3:34         ` [dm-devel] " Hirokazu Takahashi
2008-09-20  4:27           ` KAMEZAWA Hiroyuki
2008-09-20  5:18             ` Balbir Singh [this message]
2008-09-20  9:25               ` KAMEZAWA Hiroyuki
     [not found]           ` <661de9470809240404i62300942o15337ecec335fe22@mail.gmail.com>
2008-09-24 11:07             ` [Xen-devel] " Balbir Singh
2008-09-26 10:54               ` Hirokazu Takahashi
2008-09-19  6:12   ` Hirokazu Takahashi
2008-09-19 13:12     ` Vivek Goyal
2008-09-19 11:20   ` Hirokazu Takahashi
2008-09-19 13:10     ` Vivek Goyal
2008-09-19 20:28       ` Andrea Righi
2008-09-22  9:45         ` Hirokazu Takahashi
2008-09-22  9:36       ` Hirokazu Takahashi
2008-09-22 14:30         ` Vivek Goyal
2008-09-24  8:29           ` Hirokazu Takahashi
2008-09-24 14:03             ` Vivek Goyal
2008-09-26 16:11               ` Andrea Righi
2008-09-26 17:11                 ` Andrea Righi
2008-09-26 17:30                   ` Andrea Righi
2008-09-29 12:07                   ` Hirokazu Takahashi
2008-09-29 12:13                     ` Pavel Emelyanov
2008-09-24 10:18           ` Hirokazu Takahashi
2008-09-24 14:52             ` Vivek Goyal
2008-09-26 12:42               ` Hirokazu Takahashi
2008-09-24 10:34           ` Hirokazu Takahashi
2008-09-24 12:38             ` Balbir Singh
2008-09-24 14:53             ` Vivek Goyal
2008-09-26 13:04               ` Hirokazu Takahashi
2008-09-26 15:56                 ` Andrea Righi
2008-09-29 10:40                   ` Hirokazu Takahashi
2008-09-19  8:49 ` Takuya Yoshikawa
2008-09-19 11:31   ` Ryo Tsuruta

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=48D48789.8000606@linux.vnet.ibm.com \
    --to=balbir@linux.vnet.ibm.com \
    --cc=agk@sourceware.org \
    --cc=containers@lists.linux-foundation.org \
    --cc=dm-devel@redhat.com \
    --cc=fernando@oss.ntt.co.jp \
    --cc=jens.axboe@oracle.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=righi.andrea@gmail.com \
    --cc=taka@valinux.co.jp \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=xemul@openvz.org \
    --cc=xen-devel@lists.xensource.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome