OSDev.org

The Place to Start for Operating System Developers
It is currently Thu May 16, 2024 9:35 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Paging vs GDT
PostPosted: Thu Oct 03, 2002 1:58 pm 
which one is more efficient/faster/better???

theyre both supported by the mardware(intel) only that GDT is not available on other systems like ones based on motorola processors


but which one works better??? I might just use paging to make it more portable and for the fact that MMURTL(Im basing it on mm) already has the paging implemented


Top
  
 
 Post subject: Re:Paging vs GDT
PostPosted: Fri Oct 04, 2002 1:25 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
both of them are pretty fast if they're properly used. Segmentation by itself has no additionnal cycles (remember you *need* a GDT to work in pmode) from the CPU, unless you change your selectors frequently ...

Paging may lead to degradation of performances if the processor has to lookup too often in the main memory for page table entries (this is, when you invalidate them or if your code has bad locallity).

This is usually more tricky to control than the segmentation overhead.

by the by, what is that MMUTRL stuff you're talking about in your 5 last posts ?

_________________
Image May the source be with you.


Top
 Profile  
 
 Post subject: Re:Paging vs GDT
PostPosted: Fri Oct 04, 2002 8:36 am 
MMURTL is a sample OS 32 bit multitasking messaging with paged memory that comes with the book mmurtl

it comes with tools and is written in C and ASM boh included..

www.sensorypublishing.com


Top
  
 
 Post subject: Re:Paging vs GDT
PostPosted: Sun Oct 06, 2002 2:18 pm 
Although segmentation cannot be disabled, using several segments can be slower than using paging together with a flat memory model. Every time you switch segments the CPU needs to reload a descriptor, which isn't necessary if you use only paging.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 7 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