[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: missing sysinfo () and SI_LOAD_SHIFT



> Old-Return-Path: <rmh@debian.org>
> Date: Mon, 14 Jul 2003 20:18:33 +0200
> From: Robert Millan <zeratul2@wanadoo.es>
> Content-Disposition: inline
> Organisation: free as in freedom
> Sender: Robert Millan <rmh@debian.org>
> X-Spam-Level: 
> Resent-From: debian-hurd@lists.debian.org
> X-Mailing-List: <debian-hurd@lists.debian.org> archive/latest/14562
> X-Loop: debian-hurd@lists.debian.org
> Resent-Sender: debian-hurd-request@lists.debian.org
> X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.20
> X-Spam-Level: 
> 
> 
> Hi!
> 
> Jeff might have hit this problem already, but anyway:
> 
> wanna-build is broken due to its use of Linux-specific sysinfo () and
> SI_LOAD_SHIFT.
> 
> any suggestions? we could:
> 
>  - implement a sysinfo () that is compatible with GNU/Linux
>  - #ifndef SI_LOAD_SHIFT, use a hardcoded sleep time in wanna-build
>    (it was used to calculate a time to sleep depending on the system load)
>  - use a standard facility to obtain the system load. anyone knows
>    which one? maybe sysconf ()?
> 
> -- 
> Robert Millan

 There should be something in libps to do this nicely.  I guess something
like:

#ifdef LIBPS
 /* nice way */
#elif SI_LOAD_SHIFT
 /* Linux way */
#else
 /* do nothing
#endif

JIm



Reply to: