R C-R wrote:
andreiil wrote:
I have an early 13' mbp core i5 with 8gb of ram.
After upgrading to lion 10.7.1 i have less than 500mb available after just a few hours since i turn it on.
The OS is designed to retain data in memory for as long as it might be useful. Free memory is memory unused for anything -- there is no benefit whatsoever in the OS freeing up memory while it still might be reused. If you add more memory to the system the OS will use it -- that's what it is for.
I think you rely too much on the saying "free memory is wasted memory". I don't know how in the name of God a web browser and few other small applications are allowed (allowed, not supposed) to fill 8GB (10-20 times the size of Encyclopædia Britannica?) of RAM in few hours. Actually they shouldn't be allowed to do that not even in few days. Like Snow Leopard never did to me. Lion memory management system is bizarre the least, and for sure less efficient than the Snow Leopard one.
Two days ago I reached the top: 2.7GB of pages out just playing Angry Birds! Having 3GB of total RAM. It went on forever. Also getting some nice funny messages in the kernel.log:
Aug 28 23:44:16 BlueMoon kernel[0]: (default pager): [KERNEL]: ps_select_segment - send HI_WAT_ALERT
Aug 28 23:44:21 BlueMoon kernel[0]: (default pager): [KERNEL]: Switching ON Emergency paging segment
Aug 28 23:44:30 BlueMoon kernel[0]: (default pager): [KERNEL]: System is out of paging space.
Aug 28 23:44:31 BlueMoon kernel[0]: (default pager): [KERNEL]: ps_vstruct_transfer_from_segment - ABORTED
Aug 28 23:44:31 BlueMoon kernel[0]: (default pager): [KERNEL]: Failed to recover emergency paging segment
Aug 28 23:44:31 BlueMoon kernel[0]: macx_swapon SUCCESS
Aug 28 23:55:35 BlueMoon kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
Aug 28 23:55:55 BlueMoon kernel[0]: (default pager): [KERNEL]: ps_select_segment - send HI_WAT_ALERT
Aug 28 23:55:55 BlueMoon kernel[0]: (default pager): [KERNEL]: ps_vstruct_transfer_from_segment - ABORTED
Aug 28 23:55:55 BlueMoon kernel[0]: macx_swapoff FAILED - 35
Aug 28 23:55:56 BlueMoon kernel[0]: macx_swapon SUCCESS
Aug 28 23:56:26 BlueMoon kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
Aug 28 23:56:26 BlueMoon kernel[0]: macx_swapoff SUCCESS
Aug 29 00:14:54 BlueMoon kernel[0]: HFS: Very Low Disk: freeblks: 0, dangerlimit: 77
Aug 29 00:17:00 BlueMoon kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
Aug 29 00:17:02 BlueMoon kernel[0]: macx_swapoff SUCCESS
Having 100GB of free disk space the two messages in bold look like a big mess to me. I actually opened a bug report about it. Hopefully the ticket will get an update. Closed as duplicated would do. That would mean that Apple is investigating already the issue.
Anyway, 500MB of free RAM out of 8GB running few small apps makes little sense. 2.7GB of active backing store just running a web browser doesn't make any sense at all.