On Fri, 6 Sep 2002, jean wrote: > I was reading mm/memory.c the page faults management > part. Does every major fault corresponding to a disk > read? And a minor fault to only an allocation of page > frame? In theory every major fault would correspond to a disk read, indeed. A minor fault, OTOH, could also just consist of setting up a page table entry to point to an already present page, ie. without even having to allocate a page frame. > but the line: > 1131 page = read_swap_cache_async(entry); > > may result in a cache hit, right? But is this line called in case of a cache hit ? regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ Spamtraps of the month: september@surriel.com trac@trac.org -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/