Bug 27759

Summary: linux sysinfo system call is needed for maya batch mode to work.
Product: Base System Reporter: Jim.Pirzyk <Jim.Pirzyk>
Component: kernAssignee: Jim Pirzyk <pirzyk>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jim.Pirzyk 2001-05-30 02:10:00 UTC
	The maya batch mode renderer uses sysinfo from the linux kernel to
	get information about memory & etc from the system.  The linux
	kernel module does not have this system call.

Fix: This patch was sent to me by Charles Henrich <henrich@sigbus.com>

How-To-Repeat: 	Run a maya render and you get error messages of the following...

	linux: syscall %s is obsoleted or not implemented (pid=%ld)
Comment 1 Garrett A. Wollman 2001-05-30 17:11:44 UTC
<<On Tue, 29 May 2001 18:02:42 -0700 (PDT), Jim.Pirzyk@disney.com said:

> + 		sysinfo.loads[i] = (double) averunnable.ldavg[i] / averunnable.fscale;

Can't use floating-point math in the kernel.

-GAWollman
Comment 2 Jim.Pirzyk 2001-05-30 18:27:29 UTC
On Wednesday 30 May 2001 09:11 am, Garrett Wollman wrote:
> <<On Tue, 29 May 2001 18:02:42 -0700 (PDT), Jim.Pirzyk@disney.com said:
> > + 		sysinfo.loads[i] = (double) averunnable.ldavg[i] /
> > averunnable.fscale;
>
> Can't use floating-point math in the kernel.

Upon further inspection, all we need is this:

		sysinfo.loads[i] = averunnable.ldavg[i];

Since both sysinfo.loads and averunnable.ldavg are both arrays
of longs.

- JimP

-- 
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
    __o   Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
 _'\<,_   Senior Systems Engineer, Walt Disney Feature Animation 
(*)/ (*)
Comment 3 Jim Pirzyk freebsd_committer freebsd_triage 2001-07-15 06:27:56 UTC
Responsible Changed
From-To: freebsd-bugs->pirzyk

Yet another of my PRs
Comment 4 Jim Pirzyk freebsd_committer freebsd_triage 2001-07-23 07:26:24 UTC
State Changed
From-To: open->closed

Commited a modified patch (removed the printf's) to -current