Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

"nice" question

  • 25-07-2008 12:18pm
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    process A, owned by root, nice value of 19.
    process B, owned by me, nice value of 0.

    Both compete for compute resources, who wins?


Comments

  • Registered Users, Registered Users 2 Posts: 529 ✭✭✭yoke


    process B


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Welcome to boards.ie

    That's what I thought. Just wanted to make sure.


  • Registered Users, Registered Users 2 Posts: 7,264 ✭✭✭witnessmenow


    The nice value is how nice it is, the higher the value the more it lets other processes go ahead of it.

    Also remember you can go into minus figures if i'm not mistaken


  • Registered Users, Registered Users 2 Posts: 26,584 ✭✭✭✭Creamy Goodness


    yup the nice value will always superceed who owns the process.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Cremo wrote: »
    yup the nice value will always superceed who owns the process.

    Yeah, this is the bit I wasn't 100% on. I thought that potentially the superusers process might get priority regardless of niceness. Good to know for sure. Cheers lads.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,065 ✭✭✭Snowbat


    IIRC, only root can use negative values. There are a few processes owned by root running at -5 on this machine.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Snowbat wrote: »
    IIRC, only root can use negative values. There are a few processes owned by root running at -5 on this machine.

    Root can renice a process owned by another user to a negative value. The gnome-system-monitor tool lets you do this in a nice gui way.


  • Registered Users, Registered Users 2 Posts: 2,133 ✭✭✭Explosive_Cornflake


    Or htop will do it from the command line, in a friendly way :)


Advertisement