ports/79540: sysutils/wmcpuload feature
regis
regisr at pobox.com
Mon Apr 4 20:00:15 UTC 2005
>Number: 79540
>Category: ports
>Synopsis: sysutils/wmcpuload feature
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 04 20:00:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: regis
>Release: FreeBSD 5.4-PRERELEASE
>Organization:
>Environment:
FreeBSD crocoite.home.regix.com 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #5: Sun Apr 3 20:03:29 CEST 2005 regisr at crocoite.home.regix.com:/usr/obj/usr/src/sys/CROCOITE i386
>Description:
Option --ignore-nice
It should be interesting that "nice" is available cpu ressource.
When running backgroup process the cpu time is really available for more important jobs. (for sample if you run seti at home or other distribued computing this can be interrupted at any time).
>How-To-Repeat:
run a nice program and the cpu load is 100%
>Fix:
*** src/cpu_freebsd.c.orig Mon Apr 4 21:46:18 2005
--- src/cpu_freebsd.c Mon Apr 4 21:47:01 2005
***************
*** 73,81 ****
return 0;
used = cpu_time[CP_USER] + cpu_time[CP_SYS];
if (!opts->ignore_nice)
used += cpu_time[CP_NICE];
- total = used + cpu_time[CP_IDLE];
if (pre_total == 0) {
result = 0;
--- 73,81 ----
return 0;
used = cpu_time[CP_USER] + cpu_time[CP_SYS];
+ total = used + cpu_time[CP_IDLE] + cpu_time[CP_NICE];
if (!opts->ignore_nice)
used += cpu_time[CP_NICE];
if (pre_total == 0) {
result = 0;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list