From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 20 06:07:02 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0CBE04AF; Thu, 20 Feb 2014 06:07:02 +0000 (UTC) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7F101653; Thu, 20 Feb 2014 06:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=WLxEoePZHEIEA/vApYg8/fw3VejIIEYqsIGyeP9jSZ4=; b=N4PjeaMbTXPaO3Xi9qjaR/e4eCXiNHLNuRi9xtahiBbHZohX6sD3DjtzXmb7mpMMI7EXyy8V+S4qTFYVC1BeSDPtSnrhas0j1v0Aqico6Ils0ndMvdLagXxh9WnQUjju4lB9kRQDCG2mJuASF6QJ757npG5A6E3Nd+RQE3nnZFo=; Received: from [39.199.31.111] (port=37570 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1WGMmi-000UEB-2b; Wed, 19 Feb 2014 23:07:00 -0700 Date: Thu, 20 Feb 2014 14:06:44 +0800 From: Erich Dollansky To: David Xu Subject: Re: pthread programming eats up resources (My or FreeBSD's fault?) Message-ID: <20140220140644.7b1e0074@X220.alogt.com> In-Reply-To: <53059574.8090605@freebsd.org> References: <20140218180646.GA67861@schlappy> <53059574.8090605@freebsd.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org, Andre Albsmeier X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2014 06:07:02 -0000 Hi, On Thu, 20 Feb 2014 13:41:08 +0800 David Xu wrote: > On 2014/02/19 02:06, Andre Albsmeier wrote: > > please compile it as static binary and run it, check if the > problem still exists, I am hunting the bug, it is not necessary in > the libthr because I have not changed its code for a long time. I just compiled is a static program. The behaviour is now different. The size still grows but much slower while 'res' stays below some 10MB. Size also got stagnant after some 2 min CPU time hanging around 126MB. I am running it on: FreeBSD X220.alogt.com 10.0-STABLE FreeBSD 10.0-STABLE #15 r261342: Sat Feb 1 14:52:39 WITA 2014 erich@X220.alogt.com:/usr/obj/usr/src/sys/X220 amd64 Erich