Does the kernel code run through the MMU and page tables?



Hi,
Does the kernel code run through the MMU and page tables?

My expectation was No as among others there is no need to relocate
dynamically the kernel code and associated data if paging for instance
is used. The kernel code consists of a set of pre known processes that
are loaded in a pre-set area in the memory. If the code runs through
MMU and page tables, this will slow down the kernel code execution.

I read that in the coming 64-bit machine, inverted page table will be
used to do the translation. If
the kernel code is running through the MMU and inverted page table, do
the systems allocate a single "inverted page table" for both user
processes and kernel processes or instead one for each type


thanks

.



Relevant Pages

  • Re: Does the kernel code run through the MMU and page tables?
    ... dynamically the kernel code and associated data if paging for instance ... MMU and page tables, this will slow down the kernel code execution. ... negligible performance penalty. ...
    (comp.os.linux.development.system)
  • Re: Does the kernel code run through the MMU and page tables?
    ... Does the kernel code run through the MMU and page tables? ... MMU and page tables, this will slow down the kernel code execution. ... The speed penalty is not as high as you might expect, as not every access has to go through the tables. ... A "TLB" (Translation-Lookaside-Buffer) caches the most recently used address translations, so only the access to a new page will require walking through the tables. ...
    (comp.os.linux.development.system)
  • Re: Does the kernel code run through the MMU and page tables?
    ... Does the kernel code run through the MMU and page tables? ... My expectation was No as among others there is no need to relocate ... MMU and page tables, this will slow down the kernel code execution. ... so that they can run in user mode and kernel mode? ...
    (comp.os.linux.development.system)
  • Re: Does the kernel code run through the MMU and page tables?
    ... dynamically the kernel code and associated data if paging for instance ... MMU and page tables, this will slow down the kernel code execution. ... negligible performance penalty. ...
    (comp.os.linux.development.system)
  • Re: Does the kernel code run through the MMU and page tables?
    ... dynamically the kernel code and associated data if paging for instance ... MMU and page tables, this will slow down the kernel code execution. ... the mappings for the kernel can be marked global. ... those mappings are not expunged from the caches. ...
    (comp.os.linux.development.system)