On Jan 2, 2010, at 06:01:11, Spidey!!! wrote:
> I am a programmer, …
So am I.
> I too have seen VM grow to over 30 GB -- and I don't buy the
> statement that this is OK.
Feel free to run GrowlMenu under Instruments and show us when and
where the allocation of 22 GB of memory occurs.
GrowlMenu's address space is only 8 GiB for me, not 30, and when I ran
Instruments, I saw no memory usage over 1.57 MiB—no 8 GiB allocation,
not even one that gets freed. And the VM Tracker instrument says that
that 8 GiB region exists from the very start of the process.
And if anyone wants any proof that the 8 GiB reservation is innocuous,
I wrote an empty program that uses GC. Seriously, here's the entire
code:
#import <Foundation/Foundation.h>
int main(int argc, char **argv) {
printf("My PID: %i\n", getpid());
sleep(300); //5 minutes
return EXIT_SUCCESS;
}
That does nothing but print its own process ID and then wait 5
minutes, and it doesn't even use Cocoa to do that. There isn't a
single Objective-C or CF object in this entire program—nothing
allocated, nothing to free.
I ran this in Instruments. VM size: 8 GiB.
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/growldiscuss?hl=en.