From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 02:56:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B34D816A41F for ; Wed, 7 Sep 2005 02:56:24 +0000 (GMT) (envelope-from ckjmaner@yahoo.com) Received: from web54510.mail.yahoo.com (web54510.mail.yahoo.com [206.190.49.160]) by mx1.FreeBSD.org (Postfix) with SMTP id E429043D48 for ; Wed, 7 Sep 2005 02:56:23 +0000 (GMT) (envelope-from ckjmaner@yahoo.com) Received: (qmail 7475 invoked by uid 60001); 7 Sep 2005 02:56:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wK1hmfYv/zaQ7RoRWnTUKkz+fRpFZ6AQD+EwPElT06+Je9OdkaMWXVRoxlgifupleUKf9jPv47Va7IMcWY8CyTE777FPqELmyJrGgvR3+0NkC2jThr/8VddGTFCsnHBFCdw4UGJghihQXaOwbhizdYzcnwUvotKfvsXggWHX01Q= ; Message-ID: <20050907025623.7473.qmail@web54510.mail.yahoo.com> Received: from [24.74.175.137] by web54510.mail.yahoo.com via HTTP; Tue, 06 Sep 2005 19:56:23 PDT Date: Tue, 6 Sep 2005 19:56:23 -0700 (PDT) From: Charles Maner To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Threaded Perl Seg Fault 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: Wed, 07 Sep 2005 02:56:24 -0000 Hi all. I'm running threaded Perl 5.8.7, compiled with ithreads, on FreeBSD 5.4 STABLE with 1.5GB RAM. Perl is now running out of memory as I'm getting Seg Faults/Core dumps. (I'm creating a max of 15 threads all parsing different HTML. There appears to only be 124MB of free physical memory remaining--3 GB of swap space is available/unused.) FYI, it was compiled using FreeBSD malloc: /home/charles> perl -V:usemymalloc usemymalloc='n'; It seems that the OS is not alloting swap space to this Perl job. Is there a quick suggestion as to how to tell it to use swap space and/or should I increase kernel memory during boot? Any general suggestions? Thanks, Charles