From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030449AbWFITcu (ORCPT ); Fri, 9 Jun 2006 15:32:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030451AbWFITcu (ORCPT ); Fri, 9 Jun 2006 15:32:50 -0400 Received: from mustang.oldcity.dca.net ([216.158.38.3]:65469 "HELO mustang.oldcity.dca.net") by vger.kernel.org with SMTP id S1030449AbWFITct (ORCPT ); Fri, 9 Jun 2006 15:32:49 -0400 Subject: Re: Idea about a disc backed ram filesystem From: Lee Revell To: Matheus Izvekov Cc: Horst von Brand , Sascha Nitsch , Linux Kernel Mailing List In-Reply-To: <305c16960606091227w7e62003bhef576fb07d0aa95@mail.gmail.com> References: <305c16960606082159v2dc588abo6359d87173327c83@mail.gmail.com> <200606091343.k59DhC1f004434@laptop11.inf.utfsm.cl> <305c16960606090807g6372b69dy3167b0e191b2c113@mail.gmail.com> <1149878633.3894.224.camel@mindpipe> <305c16960606091227w7e62003bhef576fb07d0aa95@mail.gmail.com> Content-Type: text/plain Date: Fri, 09 Jun 2006 15:31:43 -0400 Message-Id: <1149881504.3894.250.camel@mindpipe> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2006-06-09 at 16:27 -0300, Matheus Izvekov wrote: > On 6/9/06, Lee Revell wrote: > > On Fri, 2006-06-09 at 12:07 -0300, Matheus Izvekov wrote: > > > Ok, but reality is that, even if i setup a swap partition with the > > > most lazy swapiness, it will swap my processes out. Is there a > > > pratical way to pin all processes to ram or otherwise tell the vm to > > > never swap any process? If there is, then you are right, there is no > > > point in doing this. > > > > > > > echo 0 > /proc/sys/vm/swappiness > > > > Lee > > Sorry, i took a look at the code which handles this and swappiness = 0 > doesnt seem to imply that process memory will never be swapped out. > OK, then use mlockall(). Lee