Re: 64-bit memory reporting
Re: 64-bit memory reporting
- Subject: Re: 64-bit memory reporting
- From: William Kucharski <email@hidden>
- Date: Tue, 27 Sep 2005 22:04:45 -0600
On Tuesday, September 27, 2005, at 01:22PM, Eliot Horowitz <email@hidden> wrote:
>I'm trying to figure out how to determine how much memory a 64-bit
>application is using.
>
>Using the code snippet below, after 2gb, it overflows and gets 17592186042380.
>
>After about 2gb of that, it goes back to 0.
>
>Any help would be appreciated.
>
>Also, if anyone knows of a version of top that works that would be
>helpfup as well. The standard version seems to roll over at 4gb.
It's a bug/misfeature. Many of the kernel statistics are still kept in 32-bit
variables, and even worse sometimes in 32-bit signed variables. :-(
William Kucharski
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden