Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754181AbZGWMCS (ORCPT ); Thu, 23 Jul 2009 08:02:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754156AbZGWMCS (ORCPT ); Thu, 23 Jul 2009 08:02:18 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:46407 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754006AbZGWMCR (ORCPT ); Thu, 23 Jul 2009 08:02:17 -0400 Message-ID: <5971c26b399a97f51dd10ea497617733.squirrel@webmail-b.css.fujitsu.com> In-Reply-To: <20090723.190253.226783703.ryov@valinux.co.jp> References: <20090723091841.81ff2432.kamezawa.hiroyu@jp.fujitsu.com> <20090723.153843.193704010.ryov@valinux.co.jp> <20090723164935.e97a3ccf.kamezawa.hiroyu@jp.fujitsu.com> <20090723.190253.226783703.ryov@valinux.co.jp> Date: Thu, 23 Jul 2009 21:02:13 +0900 (JST) Subject: Re: [Xen-devel] Re: [PATCH 7/9] blkio-cgroup-v9: Page tracking hooks From: "KAMEZAWA Hiroyuki" To: "Ryo Tsuruta" Cc: kamezawa.hiroyu@jp.fujitsu.com, xen-devel@lists.xensource.com, containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, dm-devel@redhat.com, agk@redhat.com User-Agent: SquirrelMail/1.4.16 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1943 Lines: 52 Ryo Tsuruta wrote: > KAMEZAWA Hiroyuki wrote: >> > dm-ioband gives high priority to I/O for swap-out by checking whether >> > PG_swapcache flag is set on the I/O page, regardless of the assigned >> > I/O bandwidth, and the bandwidth consumed for swap-out is charged to >> > the owner of the pages as a debt. >> > How about this approach? >> >> I don't think it's reasonable. Why I/O device, scheduler should know >> about >> such mm-related information ? I think layering is wrong. > > I think that urgent I/O requests such as swap-out should be notified > by setting a special flag in the struct bio, but there is no such > mechanism at this time. That is why dm-ioband uses this approach. > >> And your approatch cannot be a workaround. >> >> In follwing _typical_ case, >> >> - A process does small logging to /var/log/mylog, once in a sec. >> but it uses some amount of cold memory or shmem. >> >> This process's logging will be delayed _unexpectedly_ by some buggy >> process >> which does memory leak. > > Do you mean that the delay in logging is caused since the small process > is swapped out unexpectedly by the buggy processes? I don't write "small process", "small logging". Buggy process does swap-out and cosumes someone else's bandwidth, then, loggind will be delayed. Important here is throttle bandwidth consumed by buggy prorcess, not other's. > How about using memory cgroup to prevent the small process from swap-out? It never be help if memcg is not configured. My point is "don't allow anyone to use bandwidth of others." Considering job isolation, a thread who requests swap-out should be charged against bandwidth. Thanks, -Kame -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/