From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 01:49:16 2010 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 A0F161065675 for ; Fri, 19 Mar 2010 01:49:16 +0000 (UTC) (envelope-from jeremy@stormy.smart-serv.net) Received: from mx01.edm.ab.smart-serv.net (mail.smart-serv.net [208.68.18.197]) by mx1.freebsd.org (Postfix) with ESMTP id 813158FC1C for ; Fri, 19 Mar 2010 01:49:16 +0000 (UTC) Received: from [192.168.0.250] (S0106000d87073d15.nb.shawcable.net [70.74.68.215]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx01.edm.ab.smart-serv.net (Postfix) with ESMTPSA id A275911348E3; Thu, 18 Mar 2010 19:30:08 -0600 (MDT) Message-ID: <4BA2D398.6000104@stormy.smart-serv.net> Date: Thu, 18 Mar 2010 18:30:00 -0700 From: "J. Johnston" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100308 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4cac4bed1003181028h74aff209y31e9c70bfb6ec367@mail.gmail.com> In-Reply-To: <4cac4bed1003181028h74aff209y31e9c70bfb6ec367@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jayadev Kumar Subject: Re: API to find the memory usage of a process. 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: Fri, 19 Mar 2010 01:49:16 -0000 On 03/18/10 10:28, Jayadev Kumar wrote: > Hi, > > I need to find the memory usage of a process, from inside the process. > Is there any system call > do this ? I was trying to find it from 'top' utility source code. I couldn't > find the port which it is coming > from yet. > > Thanks, > Jayadev. the source for top is located in /usr/src/usr.bin/top > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >