Re: nice missing from csa structures?
Jay Lan <[email protected]> Fri, 15 Oct 2004 10:01:04 -0700
| Newsgroups | gmane.linux.comprehensive-system-accounting |
|---|---|
| Message-ID | <[email protected]> |
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
>