From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 04:02:14 2003 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 AA37316A4BF for ; Wed, 15 Oct 2003 04:02:14 -0700 (PDT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8746543F75 for ; Wed, 15 Oct 2003 04:02:13 -0700 (PDT) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id 02346CB22 for ; Wed, 15 Oct 2003 13:02:10 +0200 (CEST) Message-ID: <3F8D2927.2000604@landgren.net> Date: Wed, 15 Oct 2003 13:01:59 +0200 From: David Landgren Organization: A thousand golden eyes are watching User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3F8CEE86.1000507@fightevil.net> <20031015082005.GB3899@gothmog.gr> In-Reply-To: <20031015082005.GB3899@gothmog.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Increasing per-process memory limits? 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: Wed, 15 Oct 2003 11:02:14 -0000 Giorgos Keramidas wrote: > On 2003-10-14 23:51, njc wrote: > >>Hello, >>I'm currently using Zope's Plone application which relies heavily on >>python. When uploading large files (>65 megs, possibly higher), the >>python process is bombing out with a 'memory exceeded' error. I'm using >>4.8-STABLE . I've been told that if I increase the amount of available >>memory to the python process that I can resolve this issue. I've >>attempted increasing the max users variable in the kernel to 0, hoping >>it might auto-tune, but that doesn't seem to be working. Am I tweaking >>the wrong area? Where should I be looking? > > > Try reading the manual page of /etc/login.conf: > > man login.conf > > Another way of enforcing/changing the limits that a user process has is > through the 'limit' built-in command of tcsh or the /usr/bin/limits > system tool. More information about these in the tcsh(1) and limits(1) > manpages. Note that the GENERIC kernel has a hard limit of 256MB, defined by MAXDSIZ (and MAXSSIZ too) in the configuration file. For modern machines with a large amount of RAM this may be inadequate. You will have to recompile the kernel to run larger processes. David