Find the answer to your Linux question:
Results 1 to 5 of 5
Dear linuxforums, I have an strange bug on my linux, [root]# su user bash-3.2$ nice -20 For some reason all my users on the system get priority -20. i checked ...
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2

    CentOS 5.7 Default priority on -20

    Dear linuxforums,

    I have an strange bug on my linux,

    [root]# su user
    bash-3.2$ nice
    -20

    For some reason all my users on the system get priority -20.
    i checked Google already but it only tells me how to change with
    nice or renice.

    I didn't edited my limits.conf file.

    Any idea's ?

    Greets,
    Selbie

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,843
    Do you have any nice commands in your profiles? e.g.:
    Code:
    grep nice /etc/profile.d/*
    or in any other place that is sourced by all users logging in? Does it happen with root, too?

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by atreyu View Post
    Do you have any nice commands in your profiles? e.g.:
    Code:
    grep nice /etc/profile.d/*
    or in any other place that is sourced by all users logging in? Does it happen with root, too?
    Yes. The default nice setting should be 0 (zero). A nice setting of -20 is a very high priority escalation, which should only happen if the process tree is real-time (I think).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    2
    Quote Originally Posted by atreyu View Post
    Do you have any nice commands in your profiles? e.g.:
    Code:
    grep nice /etc/profile.d/*
    or in any other place that is sourced by all users logging in? Does it happen with root, too?
    I did the command, but nothing returned.
    It happens on all users on the system, including root.

    Once i changed limits.conf and added this code:
    Code:
    *               soft    priority            0
    All returned to normal, but i never had this in my limits.conf.
    Before this issue, i never changed anything in it.

    Is there any clue which could cause this ?

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by Selbie View Post
    I did the command, but nothing returned.
    It happens on all users on the system, including root.

    Once i changed limits.conf and added this code:
    Code:
    *               soft    priority            0
    All returned to normal, but i never had this in my limits.conf.
    Before this issue, i never changed anything in it.

    Is there any clue which could cause this ?
    I haven't seen it either. Perhaps it could be a bug in the 5.7 installation scripts/files? I haven't tried 5.7 myself - skipped from 5.6 to 6.0 myself. Question for the community: has anyone else running 5.7 seen this?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...