Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 08:40:30 +0530
From:      dhruva <dhruvakm@gmail.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: mallinfo equivalent on FreeBSD
Message-ID:  <AANLkTikXtHqCuRO3v9SUtplkGmwUA1dZyax66E5TL3hG@mail.gmail.com>
In-Reply-To: <AANLkTimrqHm9_nHLCy0xRpf_h3kIttPHi746gkTKI2Re@mail.gmail.com>
References:  <AANLkTimrqHm9_nHLCy0xRpf_h3kIttPHi746gkTKI2Re@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Wed, Jun 30, 2010 at 12:49 PM, dhruva <dhruvakm@gmail.com> wrote:
> Hello,
> =A0I would like to know the memory usage (total virtual memory) inside a
> process and make decisions accordingly.
> To be more specific, I am using BerkeleyDB backed set or std::set (C++
> STL) depending on my current memory usage
> as my process will need to run in a resource constrained environment.
> By the way, this is user mode application.
>
> Some things I am considering/tried:
> 1. GNU/Linux has mallinfo and I had my code working based on the
> information I get from the call.

Could anyone please help and throw some light on this topic (mallinfo)
equivalent. I am stuck and need
resolve this soon. In short, I need to find out the virtual memory
used (mapped to the process's address space)
in a light weight fashion so that I can make some decision based on it.

with best regards,
dhruva



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikXtHqCuRO3v9SUtplkGmwUA1dZyax66E5TL3hG>