Naik, Uday writes:
> I seem to be getting a kernel panic in kswapd. Since I don't
> have a harddisk, I would like to turn swapping off. How do
> I build the kernel that way. I don't see a configuration option
> for it.
The short answer is: no. The long answer is: swapping is an embedded
part of the Linux kernel, and is not trivial to turn off. The fact that
you don't have any swap space doesn't mean that this code is redundant.
This code is also used to page out clean pages when memory gets tight.
These pages are areas such as the text sections of user executables and
libraries which have not been written to by user code.
Therefore, disabling the kernels "swapping" code would have a far more
serious impact than having no swap enabled.
However, wrt your kernel panic, I believe that Nicolas Pitre found an
error during initialisation. One possible fix is to add a schedule()
call just after the kswapd kernel thread is created (by kernel_thread).
Could you let us know the kernel version you're seeing this problem on?
> Also I am using the ramdisk image put out by nicolas as an initrd
> image. Linux seems to gunzip it fine. But when it tries to mount
> it as the root file system it gets the error as follows
>
> EXT2-fs error (device ramdisk(1,0)): ext2-check-descriptors: block
> bitmap for group 0 not in group (block 33188) !
I guess that the ramdisk could be corrupted. Maybe you could gunzip it
manually and force e2fsck to run on it? If e2fsck indicates that the
ramdisk is ok, maybe there is a hardware fault on your machine?
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King [EMAIL PROTECTED] --- ---
| | | | http://www.arm.linux.org.uk/~rmk/armlinux.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++