Re: Code that does page outs

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

 



Ah, looks like I need to look at kmem_cache_reap too. 
When shrink_caches() is called, first the slab allocator
is asked to free the pages. If the pages are not entirely
freed, the remaining pages will be freed from other caches.

<quote sender="Anthony Nicholson">
> look at rw_swap_page() in mm/page_io.c. This is the
> low-level function which initiates swap in or out. If you
> find all calls to this function, you should have it.
> 
> anthony
> 
> --- Eugene Teo <eugene.teo@eugeneteo.net> wrote:
> > I am looking for possible areas in the kernel code where
> > page outs occurs. I have looked at shrink_cache(), and 
> > swap_out_pmd() which calls try_to_swap_out(). 
> > 
> > Are there other areas that i missed out? 
> > 
> > I am looking at the areas where page outs will occur so
> > that
> > I can keep track of 
> > 
> > 1) number of page outs occurred at an arbitrary time.
> > 2) what causes the page outs.
> > 
> > Anticipating a reply...
> > 
> > Eugene
> > 
> > --
> > Kernelnewbies: Help each other learn about the Linux
> > kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 

-- 
Eugene TEO   <eugeneteo@despammed.com>   <http://www.anomalistic.org/>
1024D/14A0DDE5 print D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5
main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux