Microkernels and swapping

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Microkernels and swapping

Post 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?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

I would suggest that you never swap out server processes anyway, unless forced to.
Post Reply