LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to swap out (to swap area) page frames a process use? (http://www.linuxquestions.org/questions/linux-kernel-70/how-to-swap-out-to-swap-area-page-frames-a-process-use-768833/)

entertainyou 11-13-2009 12:49 AM

How to swap out (to swap area) page frames a process use?
 
Hi,there.I am trying to write a module to swap out page frames a process use to the swap area,for kernel 2.6.28.

I've done some work,mostly by reading the "Understanding in linux kernel",which is kinda out-dated.I've found the unuse_mm function which maybe useful,can anybody tell me how to use this function(how to initialize the parameters pass to unuse_mm)? or point out something may be helpful to me?

Thx,please help.

sundialsvcs 11-18-2009 07:21 AM

The virtual-memory manager automatically does that, on-demand and when necessary. Don't monkey with it.

entertainyou 11-18-2009 11:09 PM

Quote:

Originally Posted by sundialsvcs (Post 3761241)
The virtual-memory manager automatically does that, on-demand and when necessary. Don't monkey with it.

Let's not talk about meanings of doing this.
I just want to get some helps for this. :D

Thanks anyway.

xyubuntu 03-23-2011 09:52 PM

hey,i'am doing the exact same thing with you, but i haven't got any good idea...


All times are GMT -5. The time now is 01:15 PM.