Haipeng Shen <[EMAIL PROTECTED]> writes:

> Here is the situation. I have both 2.4 and 2.6 kernels installed.

> 1. If I use 2.6 kernel, once I leave the machine on for a while, the
> machine slows down considerably. It almost feels like all the processes
> are on slow motion. A simple command like "top" would take a really long
> time to execute. We think that this might be an AFS problem.

Unless you're running commands out of AFS, or have AFS directories first
in your PATH, this is probably not an AFS problem.  AFS can slow down
accesses to things in AFS, but generally not unrelated things on the
system.

What does top show in the system activity?  Is the system apparently idle,
or is there some process that seems to be taking up resources?

> 2. If I use 2.4 kernel, I will have to manually load up the network card
> every time I reboot, which I can live with as long as I can use
> AFS. However, this morning when I booted up the machine using the 2.4
> kernel, I can not access AFS. When I tried to use klog, it returned the
> following error message:

> "Unable to authenticate to AFS because a pioctl failed."

Yeah, AFS is refusing to compile against a 2.4 kernel due to the following
error message:

In file included from 
/lib/modules/2.4.27-3-686/build/include/linux/prefetch.h:13,
                  from /lib/modules/2.4.27-3-686/build/include/linux/list.h:6,
                  from /lib/modules/2.4.27-3-686/build/include/linux/wait.h:14,
                  from /lib/modules/2.4.27-3-686/build/include/linux/fs.h:12,
                  from 
/lib/modules/2.4.27-3-686/build/include/linux/capability.h:17,
                  from 
/lib/modules/2.4.27-3-686/build/include/linux/binfmts.h:5,
                  from /lib/modules/2.4.27-3-686/build/include/linux/sched.h:9,
                  from conftest.c:26:
/lib/modules/2.4.27-3-686/build/include/asm/processor.h:75: error: array type 
has incomplete element type

This error looks very familiar to me....

Ah, yes.  This comes from trying to build against a 2.4 kernel using gcc
4.  You need to make gcc 3 your default compiler before trying to build
any kernel module against a 2.4 kernel.  Debian etch switched to gcc 4 as
the default compiler.

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to