Skip to contentSkip to conversation

Demand paging - Kernel

DISCUSSION Breno 3 participants 4 messages Mar 15, 2003 – Mar 18, 2003

lore
Share & tools
lore

Breno

author
#0 lore raw

Hi

There is a possibility to do demand paging in kernel space address ?

thanks

#1 lore raw

Uttered "Breno" <[email protected]>, spoke thus:

Quoted 1 line

There is a possibility to do demand paging in kernel space address ?

No. The entire kernel, and all of its data structures, are resident in
memory all of the time. Kernel demand paging is not possible, not
necessary and not implemented.

#2 lore raw
Quoted 5 lines · Tommy Reynolds

Uttered "Breno" <[email protected]>, spoke thus:

Quoted 1 line

There is a possibility to do demand paging in kernel space address ?

No. The entire kernel, and all of its data structures, are resident in memory all of the time.

In the current Linux kernel, that is.

Quoted 1 line

Kernel demand paging is not possible,

It is certainly possible (you could mark areas that don't contain currently used stuff for pageout). It is extremely hairy to do right (just see the mess with module loading/unloading, which is some of the same stuff, very tamed).

Quoted 2 lines

not
necessary and not implemented.

The cost of doing it right in a monolitic kernel would probably outweigh the gains manyfold, and require massive redesign for Linux. In microkernels it is a lot easier to do (but their performance sucks baby elephants through straws, so they are moot :-)

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
#3 lore raw

Uttered Horst von Brand <[email protected]>, spoke thus:

Quoted 9 lines
Quoted 4 lines · Tommy Reynolds

Uttered "Breno" <[email protected]>, spoke thus:

Quoted 1 line

There is a possibility to do demand paging in kernel space address ?

No. The entire kernel, and all of its data structures, are resident in memory all of the time.

The cost of doing it right in a monolitic kernel would probably outweigh the gains manyfold, and require massive redesign for Linux. In microkernels it is a lot easier to do (but their performance sucks baby elephants through straws, so they are moot :-)

Dr. von Brand,

Thanks for following up on this. You are right, of course: with the source code and enough patience anything could be crafted. I answered in the sense of "is this currently implemented", and it's not ;-)