Page 1 of 1
Paging vs GDT
Posted: Thu Oct 03, 2002 1:58 pm
by soilwork
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
Re:Paging vs GDT
Posted: Fri Oct 04, 2002 1:25 am
by Pype.Clicker
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 ?
Re:Paging vs GDT
Posted: Fri Oct 04, 2002 8:36 am
by soilwork
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
Re:Paging vs GDT
Posted: Sun Oct 06, 2002 2:18 pm
by Tim
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.