From owner-freebsd-questions@FreeBSD.ORG Sun Apr 17 07:26:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B1816A4CE for ; Sun, 17 Apr 2005 07:26:13 +0000 (GMT) Received: from cobain.rowan.edu (cobain.rowan.edu [150.250.64.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0314D43D2D for ; Sun, 17 Apr 2005 07:26:13 +0000 (GMT) (envelope-from dgrochow@elvis.rowan.edu) Received: from elvis.rowan.edu (elvis.rowan.edu [150.250.64.69]) by cobain.rowan.edu (8.12.9/8.12.9) with ESMTP id j3H7QC5n018885 for ; Sun, 17 Apr 2005 03:26:12 -0400 Received: from localhost (dgrochow@localhost) by elvis.rowan.edu (8.11.7p1+Sun/8.9.3) with ESMTP id j3H7QBf15059 for ; Sun, 17 Apr 2005 03:26:11 -0400 (EDT) Date: Sun, 17 Apr 2005 03:26:11 -0400 (EDT) From: David Grochowski To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new Subject: Limiting process memory consumption with rsetlimit and limit. . . X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2005 07:26:13 -0000 Hey all, I'm currently working on a project where I need to limit the amount of physical memory a process uses. I've tried the rsetlimit function and the limit shell command to do so, but I have had no luck (though I was able to limit the virtual memory and cause it to segfault). Neither seems to have any effect on the physical memory available to the process. If anyone could enlighten me on how to limit the physical memory available to a process, it would be greatly appreciated. My goal is to make the program have page faults, but I haven't had much luck yet. Thanks, Dave Grochowski