From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 22:29:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02F4F37B401 for ; Tue, 22 Apr 2003 22:29:56 -0700 (PDT) Received: from wabakimi.chat.carleton.ca (wabakimi.chat.carleton.ca [134.117.1.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3082943F75 for ; Tue, 22 Apr 2003 22:29:55 -0700 (PDT) (envelope-from creyenga@connectmail.carleton.ca) Received: from fireball (resnet-93-187.cavern.carleton.ca [134.117.93.187]) h3N5TqC7026871 for ; Wed, 23 Apr 2003 01:29:53 -0400 (EDT) Message-ID: <001b01c30959$57a694a0$0200000a@fireball> From: "Craig Reyenga" To: Date: Wed, 23 Apr 2003 01:29:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Renice idle process to -20 causes hang. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 05:29:56 -0000 While running a samba benchmark, I tried 'renice -n -20 10' (pid 10 is idle thread) to see what would happen. Turns out that this operation isn't illegal, and the system hung accordingly. The benchmark timed out soon after, and the console started displaying this message: swap_pager: indefinite wait buffer: device: ad0s1b, blkno: 776, size: 4096 over and over, although not rapidly. I'm not sure what to blame; perhaps setpriority() should return [EINVAL] or something. I can provide more info, upon request. -Craig