Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269125AbUIXUjt (ORCPT ); Fri, 24 Sep 2004 16:39:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269135AbUIXUjs (ORCPT ); Fri, 24 Sep 2004 16:39:48 -0400 Received: from mustang.oldcity.dca.net ([216.158.38.3]:5022 "HELO mustang.oldcity.dca.net") by vger.kernel.org with SMTP id S269125AbUIXUjA (ORCPT ); Fri, 24 Sep 2004 16:39:00 -0400 Subject: Re: mlock(1) From: Lee Revell To: Jeff Garzik Cc: Neil Horman , linux-kernel , Andrew Morton In-Reply-To: <41548493.3000905@pobox.com> References: <41547C16.4070301@pobox.com> <4154805D.8030904@redhat.com> <1096057867.11589.19.camel@krustophenia.net> <41548493.3000905@pobox.com> Content-Type: text/plain Message-Id: <1096058339.11589.27.camel@krustophenia.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 24 Sep 2004 16:39:00 -0400 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 29 On Fri, 2004-09-24 at 16:33, Jeff Garzik wrote: > Lee Revell wrote: > > Is this really a good idea? I suspect it would be abused. For example, > > people would mlock mozilla or openoffice to keep it from being paged out > > overnight when updatedb runs, where the real solution is to fix the > > problem with the VM that causes updatedb to force other apps to swap > > out. > > Use /proc/swappiness for this > > It definitely helped for me. I set it really low, around '10' or so. > Yeah, this never bugged me much but some people hate this behavior. I set it to 0, works fine. My point is that people will abuse mlock(1). Maybe that is not our concern. But, the current users of mlock have to know what they are doing to some extent. Like the ntpd example, it doesn't mlock ALL it's memory, just the portion that can't be swapped out due to realtime constraints. Lee - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/