All applications are running at a nice value of 19

All my applications seem to be running at nice of 19 except bash and daemons which are running at 0. My understanding is that the default nice value is either 0 or 10 (forget which) but not 19.

Ran search in /etc/sysconfig/ editor and no results for “nice” and looked at the bashrc files and again no lines contain “nice”.

Any ideas? Pretty darn sure it wasn’t always this way, but no idea when it changed.

11.3 and kde4.6

thanks,

Weird, what about your .profile and .bashrc?

I guess that makes you a very nice person. :slight_smile:

no .profile, .bashrc fine as is bashrc.local

update:

This is for all apps, not just kde (gnome, java, other).

Apps started from konsole window are started at nice of 0, which is what bash runs at

Restarted kde and the same (restarted by way of init 1, intit 5 as I just didn’t want to reboot).

Tried as second user and same.

On 2011-02-27 14:06, google01103 wrote:
>
> update:
>
> This is for all apps, not just kde (gnome, java, other).

I would look for changed files in /etc, including sysconfig. Probably one
of them tells the default nice value (19 is the maximum).


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

used kfind to find all occurrences of nice in /etc and found nothing that could do this (of course I could have missed it but …)

On 2011-02-27 14:06, google01103 wrote:
> This is for all apps, not just kde (gnome, java, other).
>
> Apps started from konsole window are started at nice of 0, which is
> what bash runs at
>
> Restarted kde and the same (restarted by way of init 1, intit 5 as I
> just didn’t want to reboot).
>
> Tried as second user and same.

Could you post the output of ‘ps -eo pid,ppid,user,nice,command’?
It might be helpful to see what processes have niceness of 19…


mrg

results of ‘ps -eo pid,ppid,user,nice,command’, user account only


  2147  9462 user     0 ps -eo pid,ppid,user,nice,command
 2148  9462 user     0 /bin/bash
 3649     1 user     0 /usr/lib/gam_server
 9158  9135 user     0 /bin/sh /usr/bin/startkde
 9211  9158 user     0 /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc
 9289     1 user     0 dbus-launch --sh-syntax --exit-with-session
 9290     1 user     0 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
 9298     1 user    19 kdeinit4: kdeinit4 Running...
 9299  9298 user    19 kdeinit4: klauncher [kdeinit] --fd=9
 9301     1 user    19 kdeinit4: kded4 [kdeinit]
 9305     1 user    19 kdeinit4: kglobalaccel [kdeinit]
 9307     1 user    19 kdeinit4: kwalletd [kdeinit]
 9311  9158 user     0 kwrapper4 ksmserver
 9312  9298 user    19 kdeinit4: ksmserver [kdeinit]
 9314  9312 user    19 kwin -session 10d8dc7263000129778960600000059360000_1297813886_55766
 9321     1 user    19 /usr/bin/kactivitymanagerd
 9325     1 user    19 /usr/bin/knotify4
 9328     1 user    19 kdeinit4: krunner [kdeinit]
 9329     1 user    19 kdeinit4: plasma-desktop [kdeinit]
 9334     1 user    19 /usr/bin/lancelot
 9337     1 user     0 /usr/bin/akonadi_control
 9340  9337 user     0 akonadiserver
 9342  9340 user     0 /usr/sbin/mysqld --defaults-file=/home/user/.local/share/akonadi//mysql.conf --datadir=/home/user/.local/share/akonadi/db_data/ --socket=/home/user/.local/share/akonadi/socket-circus/mysql.socket
 9357  9337 user     0 /usr/bin/akonadi_maildir_resource --identifier akonadi_maildir_resource_0
 9359  9337 user     0 /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent
 9360  9337 user     0 /usr/bin/akonadi_nepomuk_calendar_feeder --identifier akonadi_nepomuk_calendar_feeder
 9361  9337 user     0 /usr/bin/akonadi_nepomuk_contact_feeder --identifier akonadi_nepomuk_contact_feeder
 9378     1 user     0 /usr/bin/nepomukserver
 9392     1 user     0 /usr/bin/kuiserver
 9394  9329 user    19 ksysguardd
 9403     1 user    19 kdeinit4: kaccess [kdeinit]
 9415  9298 user    19 kdeinit4: kio_http_cache_cleaner [kdeinit]
 9425     1 user    19 /usr/bin/konversation -session 10d8dc7263000129778964600000059360015_1297813882_823512
 9427     1 user    19 kdeinit4: kmix [kdeinit] -session 10d8dc7263000129778964900000059360018_1297813882_841260
 9432     1 user    19 /usr/bin/kalarm -session 10d8dc7263000129778967900000059360022_1297813882_788439
 9433  9298 user    19 /usr/bin/gkrellm --sm-client-id 10d8dc7263000129778974000000059360025
 9445     1 user    19 kdeinit4: konsole [kdeinit] -session 10d8dc7263000129779027600000059360034_1297813882_788566
 9446  9298 user    19 kdeinit4: kate [kdeinit] -session 10d8dc7263000129779604500000059360038_1297813882_788652
 9448     1 user    19 kdeinit4: dolphin [kdeinit] -session 10d8dc7263000129779903400000059360056_1297813882_788729
 9449  9298 user    19 /usr/bin/clementine -session 10d8dc7263000129780372800000059360061_1297813882_789102
 9451  9445 user     0 /bin/bash
 9462  9445 user     0 /bin/bash
 9499     1 user     0 /usr/lib/gvfs/gvfs-gdu-volume-monitor
 9501     1 user     0 /usr/lib/gvfs/gvfsd
 9509     1 user     0 /usr/lib/gvfs//gvfs-fuse-daemon /home/user/.gvfs
 9512     1 user     0 /usr/lib/gvfs/gvfs-afc-volume-monitor
 9517     1 user     0 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
 9742  9298 user    19 /usr/bin/kpat -session 10d8dc7263000129781299900000059360075_1297813882_788456
 9743  9298 user    19 /usr/bin/python /usr/bin/fusion-icon
 9748  9298 user    19 pan
 9750  9298 user    19 /usr/bin/freepopsd
 9752     1 user    19 /usr/local/bin/recollindex -m
 9763  9298 user    19 python /usr/bin/printer-applet
 9767     1 user    19 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
 9770     1 user    19 kdeinit4: klipper [kdeinit]
13140  9298 user    19 /usr/lib64/kde4/libexec/kdesu -c yast --gtk sw_single
13142     1 user    19 /usr/lib64/kde4/libexec/kdesud
13156 13142 user    19 /usr/lib64/kde4/libexec/kdesud
16086  9298 user    19 kdeinit4: ksysguard [kdeinit]
16088 16086 user    19 ksysguardd
26517  9298 user    19 /usr/lib/opera/opera

That output sure looks suspiciously all processes related to KDE so I might suspect the KDE version you’re running. Maybe anyone else running later KDE versions can also post the top 10 lines or so of TOP (nice values are listed).

Am running 11.3/KDE 4.4.4 and as noted practically everything has a NICE value of zero (absolute neutral). I do believe that for Workstations that re-nicing desktop app processes to somewhere between -15 and -19 should be beneficial, I myself sometimes find I have to “promote” a specified application to -20 (that’s the maximum, not -19). Note that a value of -19 still allows one to configura an incremental higher priority.

Tony

On 2011-02-27 19:11, mrg wrote:

> Could you post the output of ‘ps -eo pid,ppid,user,nice,command’?
> It might be helpful to see what processes have niceness of 19…

With “-f” you should see the parent.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 2011-02-27 16:36, google01103 wrote:
>
> robin_listas;2295947 Wrote:

>> I would look for changed files in /etc, including sysconfig. Probably
>> one of them tells the default nice value (19 is the maximum).

> used kfind to find all occurrences of nice in /etc and found nothing
> that could do this (of course I could have missed it but …)

It might not use the word “nice”. Look manually into likely files.

But seeing that it is only kde related programs, I think that the parent
process is running nice for some reason.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

ppid shows parent process id

parent of all apps with nice of 19 appears to be variants of kdeinit4 (kdeinit4: kdeinit4 , kdeinit4: plasma-desktop, etc …)

update: posted a bug to KDE bugzilla https://bugs.kde.org/show_bug.cgi?id=267276

should I post to Novell bugzilla also?

On 2011-02-27 23:06, google01103 wrote:

> should I post to Novell bugzilla also?

As you installed from Novell, obviously. I almost never report upstream.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

posted bug https://bugzilla.novell.com/show_bug.cgi?id=675454

RESOLVED

caused by a new version of Recoll indexer which was run in autostart - developer notified and submitted bug closed