From owner-freebsd-stable@FreeBSD.ORG Tue Mar 26 20:08:34 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5A524508 for ; Tue, 26 Mar 2013 20:08:34 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx1.freebsd.org (Postfix) with ESMTP id 38BCFB18 for ; Tue, 26 Mar 2013 20:08:34 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id wp1so1796820pac.19 for ; Tue, 26 Mar 2013 13:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=BxqM9uiEh8eyFzTHaJwBlx94dynAZaBfxrEn3qyKBGc=; b=HaXiFl9JJsh4fFBZMW/0bnCRTMZdOPwp/XYbZwt076kWIMEndTFQWiwI/2fH1Xctry oUpTtRhIhW8DFjFELnoYXgP5GrxNaC0ds7YupAqK9swkLt3HaH2lJ24JYYDFI1GDMXb8 Ub5ZX7QmHFQo95bDCgwe9osbqsyvfiT+x2uCW0/dw+BIxxYbfete6S3Mv+toPVbgn8uP DqrSr2mJzoYmuEZtHa7+V84FlSwX3YRihar54LsLo+c/80DqdN4Xp3AtXJYraNMoMew2 70lazZzbH47B1/lEhcmRv93aChBgWeUxmRHYWY8IoJZX9N+fPhFguzyNpUX81TAOSMWP p4Hw== MIME-Version: 1.0 X-Received: by 10.66.192.129 with SMTP id hg1mr134738pac.34.1364328513721; Tue, 26 Mar 2013 13:08:33 -0700 (PDT) Received: by 10.68.36.69 with HTTP; Tue, 26 Mar 2013 13:08:33 -0700 (PDT) In-Reply-To: <175E75EE-8E85-49A4-838B-D79CE96CC3C4@tony.li> References: <1364322902.78474.YahooMailNeo@web161904.mail.bf1.yahoo.com> <175E75EE-8E85-49A4-838B-D79CE96CC3C4@tony.li> Date: Tue, 26 Mar 2013 22:08:33 +0200 Message-ID: Subject: Re: FreeBSD 9.1 excessive memory allocations From: Alexander Yerenkow To: Tony Li Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Unga , "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 20:08:34 -0000 2013/3/26 Tony Li > > > I have a heavily threaded C application, developed on an Intel Core i5 > laptop (2 cores) running FreeBSD 8.1-RELEASE. > > > > 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. > Sorry, can't remember exactly, but you could search current- or stable- for something like you got. This related IIRC with changes in thread subsystem, so basically each thread will consume now more mem. Search for details, your description is ringing some bell :) > > > > > > Both laptops having 4GB RAM. > > > > All malloc and free are mutex locked. > > > > Very rarely this problem happens on the i5 (2 cores) laptop too, but on > the i7 laptop, it happens every time. > > > > Appreciate any feedback to identify and fix this issue. > > > How is this anything except an application issue? > > Tony > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Regards, Alexander Yerenkow