GNU bug report logs - #32416
nice command doesn't provide requested niceness

Previous Next

Package: coreutils;

Reported by: andré <andr55 <at> laposte.net>

Date: Fri, 10 Aug 2018 18:29:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32416 in the body.
You can then email your comments to 32416 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#32416; Package coreutils. (Fri, 10 Aug 2018 18:29:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to andré <andr55 <at> laposte.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 10 Aug 2018 18:29:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: andré <andr55 <at> laposte.net>
To: bug-coreutils <at> gnu.org
Subject: nice command doesn't provide requested niceness
Date: Fri, 10 Aug 2018 14:24:57 -0400
nice -n 1 (command)
.or.
nice --adjustment=1 (command)

produces niceness of 10
on a system with default niceness of 0
coreutils version 8.25
package coreutils-8.25-3.mga6.src.rpm compiled 2017-05-02 by Mageia

expected behavior :
produce niceness of 1

-- 
André




Information forwarded to bug-coreutils <at> gnu.org:
bug#32416; Package coreutils. (Sat, 11 Aug 2018 06:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 32416 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: andré <andr55 <at> laposte.net>, 32416 <at> debbugs.gnu.org
Subject: Re: bug#32416: nice command doesn't provide requested niceness
Date: Sat, 11 Aug 2018 08:12:47 +0200
On 08/10/2018 08:24 PM, andré wrote:
> nice -n 1 (command)
> .or.
> nice --adjustment=1 (command)
> 
> produces niceness of 10

how do you check this?

> on a system with default niceness of 0
> coreutils version 8.25
> package coreutils-8.25-3.mga6.src.rpm compiled 2017-05-02 by Mageia
> 
> expected behavior :
> produce niceness of 1

I cannot reproduce here ('nice' wasn't changed to this regard since 8.25):

  $ nice --version | head -n1
  nice (GNU coreutils) 8.30
  $ nice
  0
  $ nice -n 1 nice
  1

'nice' only adds 10 if I don't specify a number:

  $ nice nice
  10

Could you please show us a reproducer?

Have a nice day,
Berny




Information forwarded to bug-coreutils <at> gnu.org:
bug#32416; Package coreutils. (Sun, 12 Aug 2018 05:42:01 GMT) Full text and rfc822 format available.

Message #11 received at 32416 <at> debbugs.gnu.org (full text, mbox):

From: andré <andr55 <at> laposte.net>
To: Bernhard Voelker <mail <at> bernhard-voelker.de>, 32416 <at> debbugs.gnu.org
Subject: Re: bug#32416: nice command doesn't provide requested niceness
Date: Sun, 12 Aug 2018 01:12:15 -0400
Le 2018-08-11 à 02:12, Bernhard Voelker a écrit :
> On 08/10/2018 08:24 PM, andré wrote:
>> nice -n 1 (command)
>> .or.
>> nice --adjustment=1 (command)
>>
>> produces niceness of 10
> 
> how do you check this?
> 
>> on a system with default niceness of 0
>> coreutils version 8.25
>> package coreutils-8.25-3.mga6.src.rpm compiled 2017-05-02 by Mageia
>>
>> expected behavior :
>> produce niceness of 1
> 
> I cannot reproduce here ('nice' wasn't changed to this regard since 8.25):
> 
>    $ nice --version | head -n1
>    nice (GNU coreutils) 8.30
>    $ nice
>    0
>    $ nice -n 1 nice
>    1
> 
> 'nice' only adds 10 if I don't specify a number:
> 
>    $ nice nice
>    10
> 
> Could you please show us a reproducer?
> 

when I do :

nice -n 1 chromium-browser

mate-system-monitor under processes shows
priority (niceness) of 10 for each chromium-browser process.
(there is one process by page)

If in mate-system-monitor I change priority (niceness) to 1, it is 
changed to 1.

Just tested with gkrellm
nice -n 1 gkrellm
produces niceness of 1 (as shown by mate-system-monitor)

so the problem affects chromium-browser if invoked with nice, but not 
all other applications (and maybe only chromium-browser)

I tried
nice '-n 1' chromium-browser
it still gives niceness of 10

Maybe because each page has a separate process, and '-n 1' is lost ?
(every chromium process started has a niceness of 10)

> Have a nice day,
> Berny
> 

regards,
-- 
André




Information forwarded to bug-coreutils <at> gnu.org:
bug#32416; Package coreutils. (Sun, 12 Aug 2018 13:53:02 GMT) Full text and rfc822 format available.

Message #14 received at 32416 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: andré <andr55 <at> laposte.net>, 32416 <at> debbugs.gnu.org
Subject: Re: bug#32416: nice command doesn't provide requested niceness
Date: Sun, 12 Aug 2018 15:51:09 +0200
tag 32416 notabug
close 32416
thanks

On 08/12/2018 07:12 AM, andré wrote:
> I tried
> nice '-n 1' chromium-browser
> it still gives niceness of 10
> 
> Maybe because each page has a separate process, and '-n 1' is lost ?
> (every chromium process started has a niceness of 10)

Maybe 'chromium-browser' adjusts this itself? (I don't have it here.)
You could check with strace.  After all, this is not a bug in 'nice',
therefore I'm marking it as such.  Of course, you can continue the
discussion here.

Have a nice day,
Berny




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 03:50:04 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 32416 <at> debbugs.gnu.org and andré <andr55 <at> laposte.net> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 30 Oct 2018 03:50:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.