From owner-freebsd-questions@FreeBSD.ORG Thu Mar 18 17:56:14 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 388FE1065672 for ; Thu, 18 Mar 2010 17:56:14 +0000 (UTC) (envelope-from jayadev.kumar@gmail.com) Received: from mail-iw0-f183.google.com (mail-iw0-f183.google.com [209.85.223.183]) by mx1.freebsd.org (Postfix) with ESMTP id 01AED8FC25 for ; Thu, 18 Mar 2010 17:56:13 +0000 (UTC) Received: by iwn13 with SMTP id 13so814013iwn.14 for ; Thu, 18 Mar 2010 10:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=Q75yl4LNS3i4P+P2ZZog0jyStz1oQtUmd40YRJMgkGQ=; b=i//htVYDwD2mS/h3lWLvLsZqAwAUZJYFxg56RmHKuOHcaQB53KwUbJv3EspiR1QQWx cwUM53lMzZvIfT2u9hhpTVkgjyuDGj1dPsfSGdPC7xEQ0HKICg0+M7bde73gX/ovi1qa ZG4vBeJKTZrjQV1nqtWu5Gj1cNTJnFesmy61c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=L+WqX38oqlpqg5mTl/uYYtuMnIcum/krjpxFVfowD/4NTe+4856q9ipaM/Mf48nc4D 7g3NOtSVrijAIot2abgLW2lA40hwGsG5DrziMWeW5BUyKsN8SODl9wAOlEwmAoQykcUM 6CL6iNs1puHjDehb0s+/AmBjOCpUtQmaO+2iM= MIME-Version: 1.0 Received: by 10.231.152.79 with SMTP id f15mr935902ibw.19.1268933328870; Thu, 18 Mar 2010 10:28:48 -0700 (PDT) Date: Thu, 18 Mar 2010 10:28:48 -0700 Message-ID: <4cac4bed1003181028h74aff209y31e9c70bfb6ec367@mail.gmail.com> From: Jayadev Kumar To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Thu, 18 Mar 2010 17:56:14 -0000 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.