Page 1 of 1

Microkernels and swapping

Posted: Mon Oct 01, 2007 5:51 am
by Craze Frog
In a microkernel where the disk driver runs in a normal userspace process, won't everything blow up if it gets swapped out? How do people prevent that from happening?

Posted: Mon Oct 01, 2007 6:17 am
by AJ
I haven't got to writing a disk driver yet, but I would suggest that if each of your processes has a structure containing a 'flags' field, make one of those flags signal the memory manager not to page out that process.

Cheers,
Adam

Posted: Mon Oct 01, 2007 6:26 am
by JamesM
I would suggest that you never swap out server processes anyway, unless forced to.