NetBSD Problem Report #38547
From martin@duskware.de Wed Apr 30 07:46:43 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id D391563B293
for <gnats-bugs@gnats.netbsd.org>; Wed, 30 Apr 2008 07:46:43 +0000 (UTC)
Message-Id: <20080430014512.0857F63B293@narn.NetBSD.org>
Date: Wed, 30 Apr 2008 01:45:12 +0000 (UTC)
From: ad@netbsd.org
Reply-To: ad@netbsd.org
To: netbsd-bugs-owner@NetBSD.org
Subject: select/poll do not set l_kpriority
X-Send-Pr-Version: www-1.0
>Number: 38547
>Category: kern
>Synopsis: select/poll do not set l_kpriority
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 30 07:50:00 +0000 2008
>Closed-Date: Wed Apr 30 12:49:26 +0000 2008
>Last-Modified: Wed Apr 30 12:50:02 +0000 2008
>Originator: Andrew Doran
>Release: 4.99.62
>Organization:
The NetBSD Project
>Environment:
n/a
>Description:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
344 root 42 0 1832K 79M RUN/0 1:41 2.29% 2.29% Xorg
1137 ad 43 0 2784K 71M select/0 0:52 0.05% 0.05% firefox-bin
678 ad 43 0 2784K 26M select/1 0:03 0.00% 0.00% gnome-termin
383 ad 43 0 2784K 14M select/0 0:03 0.00% 0.00% mixer_applet
311 root 43 0 748K 1932K select/1 0:02 0.00% 0.00% famd
144 ad 43 0 3808K 19M select/1 0:01 0.00% 0.00% nautilus
345 ad 43 0 2784K 14M select/0 0:01 0.00% 0.00% wnck-applet
562 ad 43 0 2784K 10M select/0 0:01 0.00% 0.00% multiload-ap
552 ad 43 0 2784K 10M select/1 0:01 0.00% 0.00% metacity
824 ad 43 0 752K 1304K CPU/0 0:00 0.00% 0.00% top
0 root 125 0 0K 21M schedu/0 0:00 0.00% 0.00% [system]
138 root 85 0 2784K 19M sigwai/1 0:00 0.00% 0.00% named
271 root 85 0 1780K 5524K pause/0 0:00 0.00% 0.00% ntpd
532 ad 85 0 748K 1280K pause/1 0:00 0.00% 0.00% screen-4.0.3
548 ad 85 0 748K 1152K netio/1 0:00 0.00% 0.00% gnome-pty-he
313 root 85 0 748K 1140K kqueue/1 0:00 0.00% 0.00% inetd
Many of the sleeping processes have a user priority listed against
them (under 64). They're sleeping on kernel resources so should
have a kernel priority level (at or above 64). Maybe select/poll
are not setting l_kpriority=true.
>How-To-Repeat:
Run top, notice strange priority levels.
>Fix:
Check that select/poll do: l->l_kpriority = true.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: ad@NetBSD.org
State-Changed-When: Wed, 30 Apr 2008 12:49:26 +0000
State-Changed-Why:
fixed
From: Andrew Doran <ad@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/38547 CVS commit: src/sys/kern
Date: Wed, 30 Apr 2008 12:45:21 +0000 (UTC)
Module Name: src
Committed By: ad
Date: Wed Apr 30 12:45:21 UTC 2008
Modified Files:
src/sys/kern: sys_select.c
Log Message:
PR kern/38547 select/poll do not set l_kpriority
Among other things this could have made X11 seem sluggish.
To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/sys/kern/sys_select.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.