LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-13-2009, 12:49 AM   #1
entertainyou
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
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.
 
Old 11-18-2009, 07:21 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,377

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
The virtual-memory manager automatically does that, on-demand and when necessary. Don't monkey with it.
 
Old 11-18-2009, 11:09 PM   #3
entertainyou
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
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.

Thanks anyway.
 
Old 03-23-2011, 09:52 PM   #4
xyubuntu
LQ Newbie
 
Registered: Mar 2011
Posts: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using swap and page file on same partition jgtg32a Linux - Desktop 1 10-25-2007 03:28 PM
oracle 10g client on fedora core 6 installation, how to create swap area kaushikgm Linux - Newbie 1 08-11-2007 03:22 AM
How much swap area is enough/too much? Beowulf questions tnandy Linux - Software 2 01-31-2006 02:12 PM
SWAP area ALF Linux - Software 5 12-16-2003 03:11 PM
swap area needs to be atleast 40 kB Sonderblade Linux - Hardware 1 11-18-2003 12:41 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration