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: linux-kernel@vger.kernel.org
Subject: cgroup: rmdir() does not complete
Date: Thu, 26 Aug 2010 16:51:55 +0100 (BST)	[thread overview]
Message-ID: <alpine.NEB.2.01.1008261415240.8857@jrf.vwaro.pbz> (raw)

I am experiencing hung tasks when trying to rmdir() on a cgroup. One task 
spins, others queue up behind it with the following:

  INFO: task soaked-cgroup:27257 blocked for more than 120 seconds.
  "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  soaked-cgrou D ffff8800058157c0     0 27257  29411 0x00000000
  ffff88004ffffdd8 0000000000000086 ffff88004ffffda8 ffff88004ffffeb8
  0000000000000010 ffff880119813780 ffff88004ffffd48 ffff88004fffffd8
  ffff88004fffffd8 000000000000f9b0 00000000000157c0 ffff880137693268
  Call Trace:
  [<ffffffff81115edb>] ? mntput_no_expire+0x24/0xe7
  [<ffffffff81427acd>] __mutex_lock_common+0x14d/0x1b4
  [<ffffffff81108a7c>] ? path_put+0x1d/0x22
  [<ffffffff81427b48>] __mutex_lock_slowpath+0x14/0x16
  [<ffffffff81427c4f>] mutex_lock+0x31/0x4b
  [<ffffffff8110bdf8>] do_rmdir+0x74/0x102
  [<ffffffff8110bebd>] sys_rmdir+0x11/0x13
  [<ffffffff81009b02>] system_call_fastpath+0x16/0x1b

Kernel is from Fedora, 2.6.33.6. In all cases the cgroup contains no 
tasks.

Commit ec64f5 ("fix frequent -EBUSY at rmdir") adds a busy wait loop to 
the rmdir. It looks like what I am seeing here and indicates that some 
cgroup subsystem is busy, indefinitely.

I have not worked out how to reproduce it quickly. My only way is to 
complete a 'dd' command in the cgroup, but then the problem is so rare it 
is slow progress.

Documentation/cgroup.memory.txt describes how force_empty can be required 
in some cases. Does this mean that with the patch above, these cases will 
now spin on rmdir(), instead of returning -EBUSY? How can produce a 
reliable test case requiring memory.force_empty to be used, to test this?

Or is it likely to be some other cause, and how best to find it?

Thanks

-- 
Mark

             reply	other threads:[~2010-08-26 16:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 15:51 Mark Hills [this message]
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
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.1008261415240.8857@jrf.vwaro.pbz \
    --to=mark@pogo.org.uk \
    --cc=kamezawa.hiroyu@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

all inboxes | Powered by JetHome®