Date: Mon, 4 Apr 2005 19:57:58 GMT From: regis <regisr@pobox.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/79540: sysutils/wmcpuload feature Message-ID: <200504041957.j34JvwVH023835@www.freebsd.org> Resent-Message-ID: <200504042000.j34K0FfU018292@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504041957.j34JvwVH023835>