lars brinkhoff wrote:
> Would it be reasonably possible to make swapping a CONFIG
> option? I'm thinking about memory-constrained embedded
> systems where swapping to secondary storage isn't possible.
I think this comment, found elsewhere, by Russel King answers
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:12 EST