mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Hills <mark@pogo.org.uk>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Balbir Singh <balbir@linux.vnet.ibm.com>,
	Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>,
	linux-kernel@vger.kernel.org
Subject: Re: cgroup: rmdir() does not complete
Date: Fri, 10 Sep 2010 08:51:51 +0100 (BST)	[thread overview]
Message-ID: <alpine.NEB.2.01.1009100845090.28193@jrf.vwaro.pbz> (raw)
In-Reply-To: <20100910163354.1f719c0d.kamezawa.hiroyu@jp.fujitsu.com>

On Fri, 10 Sep 2010, KAMEZAWA Hiroyuki wrote:

> On Fri, 10 Sep 2010 08:28:00 +0100 (BST)
> Mark Hills <mark@pogo.org.uk> wrote:
> 
> > On Fri, 10 Sep 2010, KAMEZAWA Hiroyuki wrote:
> > 
> > > On Fri, 10 Sep 2010 00:04:31 +0100 (BST)
> > > Mark Hills <mark@pogo.org.uk> wrote:
> > > > The report on the spinning process (23586) is dominated by calls from 
> > > > mem_cgroup_force_empty.
> > > > 
> > > > It seems to show lru_add_drain_all and drain_all_stock_sync are causing 
> > > > the load (I assume drain_all_stock_sync has been optimised out). But I 
> > > > don't think this is as important as what causes the spin.
> > > > 
> > > 
> > > I noticed you use FUSE and it seems there is a problem in FUSE v.s. memcg.
> > > I wrote a patch (onto 2.6.36 but can be applied..)
> > > 
> > > Could you try this ? I'm sorry I don't use FUSE system and can't test
> > > right now.
> > 
> > What makes you conclude that FUSE is in use? I do not think this is the 
> > case. Or do you mean that it is a problem that the kernel is built with 
> > FUSE support?
> > 
> You wrote 
> > The test case I was running is similar to the above. With the Lustre 
> > filesystem the problem takes 4 hours or more to show itself. Recently I 
> > ran 4 threads for over 24 hours without it being seen -- I suspect some 
> > external factor is involved.
> 
> I think Lustre FS is using FUSE. I'm wrong ?

Lustre does not use FUSE. But the client is a set of kernel modules, so 
these could do anything.

> > I _can_ test the patch, but I still cannot reliably reproduce the problem 
> > so it will be hard to conclude whether the patch works or not. Is there a 
> > way to build a test case for this?
> > 
> 
> I'm sorry I'm not sure yet. But from your report, you have 6 pages of charge
> which cannot be found by force_empty(). And I found FUSE's pipe copy code
> inserts a page cache into radix-tree but not move them onto LRU.
> 
> So,
>   - There are remaining pages which is out-of-LRU
>   - FUSE's "move" code does something curious, add_to_page_cache() but not LRU.
>   - You reporeted you use Lustre FS.
> 
> Then, I ask you. To test this, I have to study FUSE to write test module...
> Maybe adding printk() to where I added gfp_mask modification of fuse/dev.c
> can show something but...
> 
> We may have something other problem, but it seems this is one of them.

Okay, it sounds like perhaps I need to investigate Lustre, I will do this 
next week. But I think FUSE can be ruled out.

Thanks again

-- 
Mark

  reply	other threads:[~2010-09-10  7:51 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 15:51 Mark Hills
2010-08-27  0:56 ` Daisuke Nishimura
2010-08-27  1:20   ` Balbir Singh
2010-08-27  2:35   ` KAMEZAWA Hiroyuki
2010-08-27  3:39     ` Daisuke Nishimura
2010-08-27  5:42       ` KAMEZAWA Hiroyuki
2010-08-27  6:29         ` KAMEZAWA Hiroyuki
2010-08-30  7:32           ` Balbir Singh
2010-08-30  9:13         ` Mark Hills
2010-09-01 11:10         ` Mark Hills
2010-09-01 23:42           ` KAMEZAWA Hiroyuki
2010-09-02  9:45             ` Mark Hills
2010-09-09 10:01             ` Mark Hills
2010-09-09 10:09               ` Balbir Singh
2010-09-09 11:36                 ` Mark Hills
2010-09-09 11:50                   ` Peter Zijlstra
2010-09-09 23:04                     ` Mark Hills
2010-09-09 23:43                       ` KAMEZAWA Hiroyuki
2010-09-10  2:16                       ` KAMEZAWA Hiroyuki
2010-09-10  4:05                         ` Daisuke Nishimura
2010-09-10  4:11                           ` KAMEZAWA Hiroyuki
2010-09-10  7:28                         ` Mark Hills
2010-09-10  7:33                           ` KAMEZAWA Hiroyuki
2010-09-10  7:51                             ` Mark Hills [this message]
2010-08-27  1:25 ` KAMEZAWA Hiroyuki
2010-08-30  9:25   ` Mark Hills

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=alpine.NEB.2.01.1009100845090.28193@jrf.vwaro.pbz \
    --to=mark@pogo.org.uk \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nishimura@mxp.nes.nec.co.jp \
    --cc=peterz@infradead.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

all inboxes | Powered by JetHome®