From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 21:24:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 360441065672 for ; Tue, 5 Oct 2010 21:24:01 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id E5C388FC3E for ; Tue, 5 Oct 2010 21:24:00 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3EzM-0003Bm-1e for freebsd-questions@freebsd.org; Tue, 05 Oct 2010 23:23:56 +0200 Received: from frigga.summersault.com ([12.161.105.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 23:23:56 +0200 Received: from mark by frigga.summersault.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 23:23:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Mark Stosberg Date: Tue, 05 Oct 2010 17:23:43 -0400 Lines: 31 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: frigga.summersault.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100922 Lightning/1.0b2 Thunderbird/3.1.4 X-Enigmail-Version: 1.1.1 Subject: altering "maxdsiz" or "datasize" limit ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 21:24:01 -0000 Hello, We've been satisfied FreeBSD users for several years at our hosting company. Recently we ran into into a problem where a long running cron script was dying early because it is hitting FreeBSD's data segment size limit of 512 Megs, even though the machine has plenty more memory. I would like to raise this limit, and am currently using FreeBSD 6.2. When I researched this, I first found references to tuning "maxdsiz" in loader.conf, then some pointed out what I found myself.... this variable is no longer documented and perhaps no longer present in FreeBSD 6.2. I also found that it appears you can report on it and change it with the "limits" command: limits -d 1g That appears to work in the sense that the command is allowed and no error is returned, but then if I run a follow up "limits" report again, I see that no change is reported to have happened. So, how I can actually increase this limit? (Both immediately and persisting through a reboot). Thanks! Mark