> I'm confused with nice. Isn't "nice -19 program" supposed to run
> "program" at the highest nice there is, 19? It doesn't seem to work for
> me. I am using 1.3.55 with procps 1.3.39 with all current patches. Top
> and ps and w and all others work normally. Top shows all processes as 0,
> and when I renice them within top to -19, they show up as 19.
> But when I run "nice -19 any.program", top shows any.program as
> running with a nice of 4(??). I've tried using "nice -19" on 1.3.56,
> 1.3.50 and 1.2.13 (all totally different machines, other ISP's, etc), and
> still cannot get top to show them as having a nice of 19. Instead, it's 9
> or 4 or 5 or some other seemingly arbitrary value. When I type nice by
> itself, it outputs -5. So the values I see in top follow this formula:
> nice -X shows up as (if X is over 10, X=X%10) X=X-5. So -19 shows up as
> 4, -5 shows up as zero, and I can't set nice values 4 or less. Am I
> wrong in how I am assuming nice works, or is something broken?
(misinformed) people say such things as "If you plan on running a
development kernel, you need to follow development. Upgrade or downgrade
your kernel". Dispite this sh*tty (and WRONG) advice, I looked through
the source for both gnu nice and kernel 1.3.55, and found the problem.
Gnu nice checks for the get/setpriority() calls on the system, during the
configure stage. They exist, so it uses them. What it should *actually*
use (for nice, at least), is the nice() call. So in the configure file,
you get #undef NICE_PRIORITY
This should be changed (after the ./configure process!) to
Then a make; make install will solve everything, warning/error free. The
package I used was shellutls-1.9.4 in ELF, under 1.3.55/ELF w/gcc2.7.2
for anyone who's interested. I hope this helps anyone out there who
might have run into the same snag I did! I also note that this problem
occurs on kernels 1.2.13, 1.3.55, 1.3.50 and 1.3.56, all using
slackware's precompiled elf/a.out nice version 1.12.
Kickin' it since 1.1.59 http://www.ecst.csuchico.edu/~bryanxms
/* Do not distribute this message across the Microsoft(tm) Network */