Your message dated Mon, 12 Dec 2005 16:01:36 +0100
with message-id <[EMAIL PROTECTED]>
and subject line closed
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 23 May 2005 11:42:45 +0000
>From [EMAIL PROTECTED] Mon May 23 04:42:45 2005
Return-path: <[EMAIL PROTECTED]>
Received: from master.debian.org [146.82.138.7]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DaAwX-0002CO-00; Mon, 23 May 2005 04:17:57 -0700
Received: from smtp06.wanadoo.nl [194.134.35.146]
by master.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DaAwW-0004Qb-00; Mon, 23 May 2005 06:17:56 -0500
Received: from c3eea29e7.cable.wanadoo.nl (c3eea29e7.cable.wanadoo.nl
[62.234.41.231])
by smtp6.wanadoo.nl (Postfix) with ESMTP id 616416916
for <[EMAIL PROTECTED]>; Mon, 23 May 2005 13:17:55 +0200 (CEST)
From: Siward de Groot <[EMAIL PROTECTED]>
Organization: org
To: "B. Bunny" <[EMAIL PROTECTED]>
Subject: getpriority disagrees with sched_getparams
Date: Mon, 23 May 2005 13:16:33 +0200
User-Agent: KMail/1.7.2
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
boundary="Boundary-00=_RubkC61NsQdkJ24"
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
--Boundary-00=_RubkC61NsQdkJ24
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: manpages-dev
Version: 1.70-1
Hello, manpages-dev maintainers,
I've been trying out sched_setscheduler &co ,
and found that when i set a new scheduler policy with a new priority,
then getpriority does not report new priority,
while sched_getparams does,
I attach a test program that exhibits this behaviour.
have fun !
Siward
(home.wanadoo.nl/siward)
--Boundary-00=_RubkC61NsQdkJ24
Content-Type: text/x-csrc;
charset="us-ascii";
name="scheduler.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="scheduler.c"
/* scheduler.c : experiment with setting a different scheduling policy */
/* compile with : cc -g -W -Wall scheduler.c -o scheduler */
#include <stdio.h> /* printf() */
#include <sched.h>
#include <errno.h> /* errno, for getpriority() */
#include <sys/resource.h> /* getpriority() */
int main( void ){
int priority ;
int policy ;
int ck ;
struct sched_param ssp ;
printf("scheduling policy number %d is SCHED_OTHER\n", SCHED_OTHER );
printf("scheduling policy number %d is SCHED_FIFO \n", SCHED_FIFO );
printf("scheduling policy number %d is SCHED_RR \n", SCHED_RR );
policy = sched_getscheduler(0);
printf("initial policy is %d\n", policy );
if( policy < 0 ){ return(0); }
errno = 0 ; priority = getpriority( PRIO_PROCESS, 0 );
if( errno != 0 ){ printf("failed getpriority()\n"); return(0); }
printf("initial priority is %d\n", priority );
printf("max priority for SCHED_OTHER is %d\n",
sched_get_priority_max(SCHED_OTHER) );
printf("min priority for SCHED_OTHER is %d\n",
sched_get_priority_min(SCHED_OTHER) );
printf("max priority for SCHED_FIFO is %d\n",
sched_get_priority_max(SCHED_FIFO ) );
printf("min priority for SCHED_FIFO is %d\n",
sched_get_priority_min(SCHED_FIFO ) );
printf("max priority for SCHED_RR is %d\n",
sched_get_priority_max(SCHED_RR ) );
printf("min priority for SCHED_RR is %d\n",
sched_get_priority_min(SCHED_RR ) );
ssp.sched_priority = 1 ;
ck = sched_setscheduler( 0, SCHED_FIFO, &ssp );
policy = sched_getscheduler(0);
printf("new policy is %d\n", policy );
if( policy < 0 ){ return(0); }
errno = 0 ; priority = getpriority( PRIO_PROCESS, 0 );
if( errno != 0 ){ printf("failed getpriority()\n"); return(0); }
printf("according to getpriority(), new priority is %d\n", priority );
ssp.sched_priority = 0 ;
ck = sched_getparam( 0, &ssp );
if( ck != 0 ){ printf("sched_getparam() failed\n"); return(0); }
printf("according to sched_getparam(), new priority is %d\n",
ssp.sched_priority );
return(0);
}
--Boundary-00=_RubkC61NsQdkJ24--
---------------------------------------
Received: (at 310397-close) by bugs.debian.org; 12 Dec 2005 15:07:12 +0000
>From [EMAIL PROTECTED] Mon Dec 12 07:07:11 2005
Return-path: <[EMAIL PROTECTED]>
Received: from luonnotar.infodrom.org ([195.124.48.78] ident=postfix)
by spohr.debian.org with esmtp (Exim 4.50)
id 1ElpGh-0005mQ-OH; Mon, 12 Dec 2005 07:07:11 -0800
Received: by luonnotar.infodrom.org (Postfix, from userid 10)
id 40028366B79; Mon, 12 Dec 2005 16:07:08 +0100 (CET)
Received: at Infodrom Oldenburg (/\##/\ Smail-3.2.0.102 1998-Aug-2 #2)
from infodrom.org by finlandia.Infodrom.North.DE
via smail from stdin
id <[EMAIL PROTECTED]>
for [EMAIL PROTECTED]; Mon, 12 Dec 2005 16:01:36 +0100 (CET)
Date: Mon, 12 Dec 2005 16:01:36 +0100
From: Martin Schulze <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: closed
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,ONEWORD autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Source: manpages
Version; 2.12-1
--
If nothing changes, everything will remain the same. -- Barne's Law
Please always Cc to me when replying to me on the lists.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]