csa
[Top] [All Lists]

Re: nice missing from csa structures?

To: Andrew Fant <fant@xxxxxxxxx>
Subject: Re: nice missing from csa structures?
From: Jay Lan <jlan@xxxxxxx>
Date: Fri, 15 Oct 2004 10:01:04 -0700
Cc: csa@xxxxxxxxxxx
In-reply-to: <48530000.1097768514@flux.usg.tufts.edu>
References: <48530000.1097768514@flux.usg.tufts.edu>
Sender: csa-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Sorry for being slow to respond. My email filter did not set up to
allow in emails from oss.sgi.com :( Problem is corrected.

Robin answered your question on nice feature.

If your kernel/sched.c contains task_nice routine, you may fix
the problem as below:

    csa->ac_nice = task_nice(p);
and
    eoj.ac_nice = task_nice(current);

As to BSD accounting, CSA can coexist with it. You do not need
to turn CONFIG_BSD_PROCESS_ACCT off.

Thanks!
 - jay



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;

cause the compilation to fail. If I comment out those lines everything compiles and runs fine. Has anyone else had this issue, and has anyone found a workaround? I can't switch to a 2.6 kernel series, so that isn't an issue.

On an unrelated note, can BSD process accounting and CSA coexist, or should I turn one off if the other is in use?

Thanks,
    Andy



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