Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1717821

Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state

Path csiph.com!goblin1!goblin2!goblin.stu.neva.ru!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state
Date Tue, 22 Aug 2017 22:40:02 +0200
Message-ID <uho7U-7sy-33@gated-at.bofh.it> (permalink)
References <ugS81-3aB-11@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xh4uKuG9GHERZGnMkQStRigq2iqefflP2pGFx3HnXuo=; b=Avu8uUenJmybDunYW+AG9wQaQ ekOVTFJX/s2grjJyGjQv1YT+gkGN8jK1SNAV/8viJMFo3u/Co9RdHZZ0crKomioMSWJN80nfLUFHr VCQZ4mGXyvkrrEuUbIKYiFpwQMQ9UCF/j9jhGKLRuIYF1JJevYBbvN6X9LVjvnYMJVI8bzP8NH7us Bzd4KXwZYJTvnKKinIXli5gz4N6Wp/bTiHRoH+hoAeqyyck4wo63gginK0d+WYU8M92PvArVBTalM ljKoqmYjTJdv6XtgzBxBDE9x7ucmkDRMmBbYe6NG8509H/U+he5YlImrEYPm9w4AaIUTyDJozHiSy u+S4gNgcA==;
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.22.1 (2013-10-16)
X-MIME-Error demime acl condition: uuencoded line length does not match advertised number of bytes
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc mingo@kernel.org, imrank140517@gmail.com, "Luis R. Rodriguez" <mcgrof@kernel.org>, Kees Cook <keescook@chromium.org>, Shile Zhang <shile.zhang@nokia.com>, Matt Fleming <matt@codeblueprint.co.uk>, Andrew Morton <akpm@linux-foundation.org>, Vegard Nossum <vegard.nossum@oracle.com>, Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>, John Siddle <jsiddle@redhat.com>, open list <linux-kernel@vger.kernel.org>, "open list:PROC SYSCTL" <linux-fsdevel@vger.kernel.org>
X-Original-Date Tue, 22 Aug 2017 22:36:32 +0200
X-Original-Message-ID <20170822203632.GQ32112@worktop.programming.kicks-ass.net>
X-Original-References <1503311156-16919-1-git-send-email-kimran@codeaurora.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1717821

Show key headers only | View raw


On Mon, Aug 21, 2017 at 03:55:53PM +0530, Imran Khan wrote:
> khungtask by default monitors either all tasks or no tasks at all
> for long unterruptible sleeps.
> For Android like environments this arrangement is not optimal because
> on one hand it may be permissible to have some background(bg) task
> in uninterruptible sleep state for long duration while on the other
> hand it may not be permissible to have some foreground(fg) task like
> surfaceflinger in uninterruptible sleep state for long duration.

How are you getting tasks in UNINTERRUPTIBLE state for a long time to
begin with? That's not a good thing, background or not.

> So it would be good to have some arrangement so that few specified tasks
> can be monitored by khungtaskd, on a need basis.
> This change introduces a sysctl option, /proc/sys/kernel/
> hung_task_check_selected, to enable monitoring of selected tasks using
> khungtask daemon. If this sysctl option is enabled then only the tasks
> specified in /proc/hung_task_monitor_list are monitored otherwise all
> tasks are monitored, just like the default case.

That's horrible. Why not a file in /proc/$PID/ that excludes it from
things?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] RFC: hung task: Check specific tasks for long uninterruptible sleep state Imran Khan <kimran@codeaurora.org> - 2017-08-21 12:30 +0200
  RE: [PATCH] RFC: hung task: Check specific tasks for long  uninterruptible sleep state "Zhang, Shile (NSB - CN/Hangzhou)" <shile.zhang@nokia-sbell.com> - 2017-08-22 04:00 +0200
    Re: [PATCH] RFC: hung task: Check specific tasks for long  uninterruptible sleep state Imran Khan <kimran@codeaurora.org> - 2017-08-22 08:10 +0200
      RE: [PATCH] RFC: hung task: Check specific tasks for long  uninterruptible sleep state "Zhang, Shile (NSB - CN/Hangzhou)" <shile.zhang@nokia-sbell.com> - 2017-08-22 08:50 +0200
  Re: [PATCH] RFC: hung task: Check specific tasks for long  uninterruptible sleep state Peter Zijlstra <peterz@infradead.org> - 2017-08-22 22:40 +0200
    Re: [PATCH] RFC: hung task: Check specific tasks for long  uninterruptible sleep state Imran Khan <kimran@codeaurora.org> - 2017-08-23 14:30 +0200

csiph-web