From owner-freebsd-stable@FreeBSD.ORG Tue Mar 26 19:54:43 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7BA7AD19 for ; Tue, 26 Mar 2013 19:54:43 +0000 (UTC) (envelope-from tony.li@tony.li) Received: from qmta15.emeryville.ca.mail.comcast.net (qmta15.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:228]) by mx1.freebsd.org (Postfix) with ESMTP id 62725A3A for ; Tue, 26 Mar 2013 19:54:43 +0000 (UTC) Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta15.emeryville.ca.mail.comcast.net with comcast id GJcb1l0040x6nqcAFKujQM; Tue, 26 Mar 2013 19:54:43 +0000 Received: from [10.66.230.184] ([64.236.139.254]) by omta12.emeryville.ca.mail.comcast.net with comcast id GKsY1l0095VXD0o8YKsaMs; Tue, 26 Mar 2013 19:52:41 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: FreeBSD 9.1 excessive memory allocations From: Tony Li In-Reply-To: <1364322902.78474.YahooMailNeo@web161904.mail.bf1.yahoo.com> Date: Tue, 26 Mar 2013 12:52:32 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <175E75EE-8E85-49A4-838B-D79CE96CC3C4@tony.li> References: <1364322902.78474.YahooMailNeo@web161904.mail.bf1.yahoo.com> To: Unga X-Mailer: Apple Mail (2.1503) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1364327683; bh=oO1qmB+6jX+ZX00qturPBpvoo1kTo2luVB2WLhvXftU=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=DuJdBUYH5MP69NAqLGkBq8DNsP1eQl/D3GPUisjlYGpRZEDPUcjjD4lQCFP2Db0Jm BZGEpD2avkwMEesRIepN9WP5V+dp1OzUeQMzOkDntP7xcmx+dJHwiAhFEUOe8Ir68P mytMunR0XH7TDrbrdtV08TSePpR/HEswVinCSVMk28iG/M7RLljJmYIwrrOT+86lrc kXDc5HV6KJC8csyp2nCPi8rM4Lf+KpvGRX6alFyw1afl1NsYtkt/t1NdYI3x6pHoIF OVLBZa6vTBaCDQN2DTfLxjAKISLudFN+GTKMWJth8ZBr0NPaNwaG6dilwZuy1J5SjR Q6x0l6A6Me4QA== Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 19:54:43 -0000 > I have a heavily threaded C application, developed on an Intel Core i5 = laptop (2 cores) running FreeBSD 8.1-RELEASE. >=20 > When this application compile and run on another Intel Core i7 laptop = (4 cores) running FreeBSD 9.1-RELEASE, this application immediately = starts grabbing memory by over 100MB per second and soon exit with not = enough RAM. >=20 >=20 > Both laptops having 4GB RAM. >=20 > All malloc and free are mutex locked. >=20 > Very rarely this problem happens on the i5 (2 cores) laptop too, but = on the i7 laptop, it happens every time. >=20 > Appreciate any feedback to identify and fix this issue. How is this anything except an application issue? Tony