Russ Allbery wrote:
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?

I have been waiting for the problem to appear again. I rebooted the machine using the 2.6 kernel this Thursday, and just now found out that the problem appeared. I typed "top" about 20 minutes ago, and nothing has returned yet ...

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.


--

****************************************************************
Haipeng Shen
Assistant Professor
Department of Statistics and Operations Research
University of North Carolina at Chapel Hill
304 Smith Building
Chapel Hill, NC 27599-3260
http://www.unc.edu/~haipeng
*****************************************************************

Reply via email to