[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accesed bit on ptes



   Last time I asked where in the source code a pte is marked accessed but 
what I really meant is if there is a part of the code that is executed or 
triggered after the marking (i. e. after CPU sets the accessed bit in the 
pte) so that I can store the time in which the accessing happened (i.e. 
saving jiffies at that moment).

alejandro


>From: Rik van Riel <riel@conectiva.com.br>
>To: alejandro alliana <aalliana@hotmail.com>
>CC: kernelnewbies@nl.linux.org
>Subject: Re: accesed bit on ptes
>Date: Wed, 4 Apr 2001 12:59:29 -0300 (BRST)
>
>On Tue, 3 Apr 2001, alejandro alliana wrote:
>
> > I've looking at the source (really an old kernel, 2.1.125) to find
> > where is a pte marked as accessed when the page is referenced. I don't
> > know how much things have changed since but I've really got to work
> > with this version.
>
>This is done in hardware, by the MMU. Whenever the page is
>accessed, the CPU will set the accessed bit in the pte.
>The kernel uses this to see if the page was accessed or
>not.
>
>Rik
>--
>Virtual memory is like a game you can't win;
>However, without VM there's truly nothing to lose...
>
>		http://www.surriel.com/
>http://www.conectiva.com/	http://distro.conectiva.com.br/
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/