Is there a way to specify that program X should be kep in memory and not swap it out? I have a program that takes some time to load and as long as you keep using it its responsive but if after sometime its not in use and now I use it it has a slow response till it gets swapped back in. The box in question has 1 GIG ram and its not running much else just this program really. Just looking for a way to keep it in RAM. Thanks, Jerry
change vm.swappiness=0 form it's default. Jerry Geis wrote:> Is there a way to specify that program X should be kep in memory and not > swap it out? > I have a program that takes some time to load and as long as you keep > using it its responsive > but if after sometime its not in use and now I use it it has a slow > response till it gets swapped back in. > > The box in question has 1 GIG ram and its not running much else just > this program really. Just looking > for a way to keep it in RAM. > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- My "Foundation" verse: Isa 54:17 No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD. -- carpe ductum -- "Grab the tape" CDTT (Certified Duct Tape Technician) Linux user #322099 Machines: 206822 256638 276825 http://counter.li.org/
Would 'man 2 mlock' help? Brian Brunner brian.t.brunner at gai-tronics.com (610)796-5838>>> geisj at pagestation.com 10/12/05 05:47PM >>>Is there a way to specify that program X should be kep in memory and not swap it out? I have a program that takes some time to load and as long as you keep using it its responsive but if after sometime its not in use and now I use it it has a slow response till it gets swapped back in. The box in question has 1 GIG ram and its not running much else just this program really. Just looking for a way to keep it in RAM. Thanks, Jerry _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.hubbell.com - Hubbell Incorporated