csa
[Top] [All Lists]

Re: nice missing from csa structures?

To: Andrew Fant <fant@xxxxxxxxx>
Subject: Re: nice missing from csa structures?
From: Robin Holt <holt@xxxxxxx>
Date: Thu, 14 Oct 2004 10:48:09 -0500
Cc: csa@xxxxxxxxxxx
In-reply-to: <48530000.1097768514@xxxxxxxxxxxxxxxxxx>
References: <48530000.1097768514@xxxxxxxxxxxxxxxxxx>
Sender: csa-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Thu, Oct 14, 2004 at 11:41:54AM -0400, Andrew Fant wrote:
> I'm attempting to build csa into a 2.4.26 kernel with the patches found on 
> oss.sgi.com and have run into a strange problem.  When make bzImage 
> attempts to compile kernel/csa.c I get errors about nice not being defined 
> in the csa structures.  In particular, the lines:
> 
> csa->ac_nice = p->nice;
> 
> and
> 
> eoj.ac_nice = current->nice;

The nice field went away in one of the later 2.4 kernels.  It is recorded
in the eoj accounting record.  If you are not concerned with filtering
based upon process niceness, then you should be able to get by with

eoj.ac_nice = 0;

This will ensure you are not recording invalid data.  Alternatively, you
could look at the 2.6 series of patches and backport how it was done there.
I believe you need to change it to something with task_nice(current), but
it has been a long time since I looked at that code.

Good Luck,
Robin

<Prev in Thread] Current Thread [Next in Thread>