Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Mar 1998 14:55:17 +0100
From:      Hrvoje Husic <H.Husic@Uni-Koeln.DE>
To:        questions@FreeBSD.ORG
Subject:   Bug in the process-scheduler & niceness of 20?
Message-ID:  <Version.32.19980304144320.00f45e10@mail.rrz.uni-koeln.de>

next in thread | raw e-mail | index | archive | help
The FreeBSD scheduler does not seem to respect the niceness 20 of a process.

-----[snip]-----------------------------------------------------------------
last pid:  4601;  load averages:  1.91,  1.86,  1.57		00:58:47
37 processes:  3 running, 34 sleeping
CPU states: 49.8% user, 46.7% nice,  3.5% system,  0.0% interrupt,  0.0% idle
Mem: 22M Active, 7288K Inact, 15M Wired, 17M Cache, 7654K Buf, 532K Free
Swap: 138M Total, 121M Used, 17M Free, 88% Inuse

  PID USERNAME PRI NICE SIZE    RES STATE    TIME   WCPU    CPU COMMAND
  203 hhusic  105  20   860K   340K RUN    2519.7 49.17% 49.17% rc564
 4595 hhusic  104   0   556K   416K RUN      3:06 47.76% 47.76% gzip
-----------------------------------------------------------------[snap]-----

As to my understanding, a niceness of 20 on BSD systems is supposed to set
a process to some kind of "idle"-priority, leaving any potentially needed
CPU-cycle to other applications.

The machine has been up for 106 days, mostly doing nothing than running the
rc5 client from distributed.net. It is not swaping or doing any other
IO-intensive jobs, it's just those two processes.

Btw, it is FreeBSD-2.2.1-RELEASE. cvsup is syncing sources with
cvsup.de.freebsd.org, but no "make world" or new kernels have been build.


-- 
Hrvoje Husic <H.Husic@Uni-Koeln.DE>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Version.32.19980304144320.00f45e10>