What is the largest value one may set the priority limit to in limits.conf? I came across a script that adds the entry, admin hard priority 50, but this simply results in the nice being set to 19. From googling, I found references to both 19 and 20 being the largest value. Is there any authoritative source that defines the range of values for this setting? The limits.conf man page doesn't say.If it matters, I develop on Ubuntu (where I play around a lot) but often target CentOS (where it really matters).
What is largest value of priority in limits.conf?
linux;ubuntu;centos;pam;nice
According to setpriority(2), the allowed range of priorities on Linux is -20 to 19 since kernel 1.3.43. Other systems (unnamed) allow -20 to 20. POSIX says the range is NZERO to NZERO1; the minimum acceptable value for NZERO is 20.(-20 is the highest priority, 19 the lowest.)