OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Microkernels and swapping
PostPosted: Mon Oct 01, 2007 5:51 am 
Offline
Member
Member

Joined: Sun Sep 23, 2007 4:52 am
Posts: 368
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 6:17 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2646
Location: Devon, UK
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 6:26 am 
Offline
Member
Member
User avatar

Joined: Tue Jul 10, 2007 5:27 am
Posts: 2935
Location: York, United Kingdom
I would suggest that you never swap out server processes anyway, unless forced to.

_________________
Horizon - a framework and language for SAS-OS development
Project 'Pedigree'
Practical x86 OSDev tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group