Hacker News new | past | comments | ask | show | jobs | submit login

I'd love to understand more about what the ".verynice()" call does. Source is here: https://github.com/jart/cosmopolitan/blob/f10845ab9f847e4cad...

What are the effects of limiting a process priority?




The `nice` command alone (a.k.a. setpriority) doesn't do much. The verynice() function is similar to saying:

    #!/bin/sh
    exec ionice -c3 nice "$@"
Since it uses SCHED_IDLE i/o priority too. It's intended to ensure that no matter how much you bog down the system with i/o and cpu usage, my Emacs session and login shells will remain interactive and in control.


The wikipedia article for nice is a decent summary: https://en.wikipedia.org/wiki/Nice_(Unix)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: