Re: RFC: pageable kernel-segments

Disconnect (lkml@sigkill.net)
Fri, 20 Apr 2001 09:41:00 -0400


On Tue, 17 Apr 2001, Oliver Neukum did have cause to say:

> > load/init/etc. Hardware setup tends to only happen once..)
>
> No they can't. Modules can't be finegrained enough to do this without wasting
> more memory due to fragmentation than you'd gain.

Actually, don't they do this -already-? I thought I saw somewhere on here
recently that there was a class of functions you could use in a module for
'one-off' activities. I suspect that covers 90% of what could be paged
out (the remainder being mostly the unloading process, for non-hotswap
modules). But IANAKG. (..not a kernel guru).

> Actually not that great.Support for different types of kernel code is there
> to support __init and __initdata. You'd use a fixup scheme like the one used
> in copy_[to|from]_user to trigger paging in. Page out could be handled by the
> conventional mm.

I mis-typed - by 'major rewrite' I meant more an analysis and tagging
process, which would have to touch most of the kernel before it was
useful. But again, IANAKG so the existing swap code may already handle
that, at least in a way that it could be a ruleset (with override tags?)
instead of having to put a new set of tags everywhere.

---
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1 [www.ebb.org/ungeek]
GIT/CC/CM/AT d--(-)@ s+:-- a-->? C++++$ ULBS*++++$ P+>+++ L++++>+++++ 
E--- W+++ N+@ o+>$ K? w--->+++++ O- M V-- PS+() PE Y+@ PGP++() t 5--- 
X-- R tv+@ b++++>$ DI++++ D++(+++) G++ e* h(-)* r++ y++
------END GEEK CODE BLOCK------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/