Re: Xcode 4.3.1 memory usage
Re: Xcode 4.3.1 memory usage
- Subject: Re: Xcode 4.3.1 memory usage
- From: Wade Tregaskis <email@hidden>
- Date: Fri, 16 Mar 2012 09:40:12 -0700
Sean, when Xcode starts gobbling up pages of memory, does the terminal command, purge ram, help at all?
The ‘purge’ command won’t have any effect on that. All it does is force any dirty pages in RAM to be paged out to disk. It’s useful for performance testing, to approximate a ‘cold’ startup, but it’s not going to magically free any address space usage.
You *are* going to see RPRVT and RSIZE drop to near-zero when ‘purge’ runs, but all that means is that the memory’s been evicted from RAM temporarily.
That's not accurate. `purge` flushes the disk buffer caches, releasing them from memory entirely. It's not merely dirty memory that's evicted, but all of it. It doesn't generally relate to a specific program's memory usage, since the disk buffer caches are system-wide.
FYI while the man page says it can be used to approximate a cold boot, that's not entirely true - it'll purge things that are normally always resident, even after a cold boot. It is good for doing reproducible "cold run" tests; it's just not that representative of an actual cold boot. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden