From owner-freebsd-bugs@FreeBSD.ORG Mon Nov 22 05:50:32 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E71DE16A4CE for ; Mon, 22 Nov 2004 05:50:32 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A431643D55 for ; Mon, 22 Nov 2004 05:50:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iAM5oWRn032309 for ; Mon, 22 Nov 2004 05:50:32 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAM5oWFV032308; Mon, 22 Nov 2004 05:50:32 GMT (envelope-from gnats) Resent-Date: Mon, 22 Nov 2004 05:50:32 GMT Resent-Message-Id: <200411220550.iAM5oWFV032308@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jorge Mario G. Mazo" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B6D16A4CE for ; Mon, 22 Nov 2004 05:43:15 +0000 (GMT) Received: from escargot.epm.net.co (escargot.epm.net.co [200.13.224.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DA4143D5F for ; Mon, 22 Nov 2004 05:43:14 +0000 (GMT) (envelope-from jgutie11@eafit.edu.co) Received: from uma (uma.epm.net.co [200.13.224.10]) by escargot.epm.net.co (Postfix) with ESMTP id F2051BCD4 for ; Mon, 22 Nov 2004 00:43:12 -0500 (COT) Received: from _HOSTNAME_ ([200.116.30.165]) by smtpmed.epm.net.co (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0I7K00C9FFVVAC@smtpmed.epm.net.co> for FreeBSD-gnats-submit@freebsd.org; Mon, 22 Nov 2004 00:43:12 -0500 (COT) Received: by _HOSTNAME_ (sSMTP sendmail emulation); Mon, 22 Nov 2004 00:43:04 -0500 Message-Id: <0I7K00CB4FW0AC@smtpmed.epm.net.co> Date: Mon, 22 Nov 2004 00:43:04 -0500 From: "Jorge Mario G. Mazo" Sender: teresitamp@epm.net.co To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/74227: renice odd behavior X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Jorge Mario G. Mazo" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2004 05:50:33 -0000 >Number: 74227 >Category: bin >Synopsis: renice odd behavior >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 22 05:50:31 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jorge Mario G. Mazo >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD mosca.linopryne.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Nov 10 13:25:53 UTC 2004 root@mosca.linopryne.com:/usr/obj/usr/src/sys/SALMONELA i386 >Description: When you renice a proces to 20 and the you renice it to -20 it wont jump from 20 to -20. it'll jump from 20 to 0 so you have to renice it again to actually get the -20 value *Same thing happens backwards (-20 to 20) >How-To-Repeat: "I started from a -20 value" CASE1: -su-2.05b# renice -n 20 -p 426 426: old priority -20, new priority 0 -su-2.05b# renice -n 20 -p 426 426: old priority 0, new priority 20 -su-2.05b# CASE2: -su-2.05b# renice -n -20 -p 426 426: old priority 20, new priority 0 -su-2.05b# renice -n -20 -p 426 426: old priority 0, new priority -20 -su-2.05b# >Fix: >Release-Note: >Audit-Trail: >Unformatted: