From owner-freebsd-questions@FreeBSD.ORG Wed Jan 19 01:11:35 2011 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 D28CF106564A for ; Wed, 19 Jan 2011 01:11:35 +0000 (UTC) (envelope-from materribile@yahoo.com) Received: from nm2-vm0.bullet.mail.sp2.yahoo.com (nm2-vm0.bullet.mail.sp2.yahoo.com [98.139.91.248]) by mx1.freebsd.org (Postfix) with SMTP id AD5738FC08 for ; Wed, 19 Jan 2011 01:11:35 +0000 (UTC) Received: from [98.139.91.70] by nm2.bullet.mail.sp2.yahoo.com with NNFMP; 19 Jan 2011 01:11:35 -0000 Received: from [98.139.91.29] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 19 Jan 2011 01:11:35 -0000 Received: from [127.0.0.1] by omp1029.mail.sp2.yahoo.com with NNFMP; 19 Jan 2011 01:11:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 378408.92754.bm@omp1029.mail.sp2.yahoo.com Received: (qmail 89841 invoked by uid 60001); 19 Jan 2011 01:11:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295399494; bh=F5NylpBxX6e1zseyyixgzF4SIX2EPf9AeLkVz+L7l9k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fUM/h4szWGWs+2yVIzZvBB4rH1tKzszLkUTOIHZ5xjj/xKyuO4+AtX3W52CEScXzqarWXzJmsCYGkzikjZva7liwu26VGvuZs1jVHSIwXvL35ye+/Ifi5f9YZdY4Ryk7rNVPS5k0nCaMkmNWj6JZDu7w3p0Bbp+0KZ9vtee36E8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZoMbqmFHpNBA2FMsDqWgOLAVNnh+kGGbERb+afOYalWmbQvS8tbsBmPkuwe0rFvH95II5VFSeJBe+C6uAcm1GbfarmPvykkY28jeFN30oeeyy5/MwbUDCa1Ii6tOuntoNEMtfiPT1k7hr0JYsH3vSFdlamfZ2PcAUQT5o7jcymI=; Message-ID: <770595.89021.qm@web110305.mail.gq1.yahoo.com> X-YMail-OSG: w7k0egMVM1nYVmUbhchcQbHMvMi3y1e5.9i1t4lq7dlZYM8 1racC.ikulejogxQaaNMQGAf3jERZr4ldeoxXbdDsi2hECJVuIgj9sBrFkKy cAxg0HOgGu7Y2bhAQS5Q65xNDra7Za10hGmf.fMulzS6.KRP1vu6UzctRqbB PX_1AVWxtKEJobLPP0yk36sHawmyQLPv6fS9.QlLe0n_N2bfGG4yShL3dB4c 1pMzYccNe0uiXcv14JlNr_BZwtDv48Wh1CXveKdr9Q.WrHcw.Oyh0FniknH1 jPSUpbsn3bhwicYYZc54tzXgQYh0fsMgM2ggMK_lxHojah3Oh7Yh5WCHGEcK 0hBxN47Kaae_lvYzUecRDrYGaY6m1djwxceOxdv_l5ZZRdPsxF4ALPcHy3Hg InUfb5nUADA0z Received: from [24.228.57.153] by web110305.mail.gq1.yahoo.com via HTTP; Tue, 18 Jan 2011 17:11:34 PST X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Tue, 18 Jan 2011 17:11:34 -0800 (PST) From: Mark Terribile To: Chuck Swiger In-Reply-To: <9319A30D-9AC6-46BB-B7EE-A476C88A05ED@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: rusage and pthreads 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, 19 Jan 2011 01:11:35 -0000 =0AChuck,=0A=0AI forgot to add:=0A=0A> Nope.=A0 statclock() is fired off pe= riodically (with=0A> some fuzz, to avoid clever games by processes trying t= o=0A> avoid being sampled) to update the stats for the currently=0A> runnin= g process.=0A=0AWhich would mean that a process that is occupying memory bu= t doesn't happen to be running on that clock tick doesn't have its memory c= ounted toward the total ... right?=0A=0A Mark=0A=0A=0A