设为首页 收藏本站
查看: 840|回复: 0

[经验分享] transmission "memory leak" in Mac OS

[复制链接]

尚未签到

发表于 2015-12-30 09:03:07 | 显示全部楼层 |阅读模式
FAQ:Transmission Uses All the Free MemoryInactive Memory
Description

  Some Mac OS X users have reported that when they run Transmission, their  system's Activity Monitor shows their Free memory keeps shrinking and  their Inactive Memory keeps growing.  This is sometimes mistaken as a  memory leak, but is actually Mac OS X's normal behavior.  As this  support.apple.com article  explains, Inactive memory is not actually in use by Transmission and is  recycled by the Mac OS X memory manager when other applications need  it:
  "This means you shouldn't worry when the Free memory is low. The only  time Free memory should be high is right after the computer starts up.  As you use applications or services, memory is used and transitions to  Inactive. Applications that need more memory will take from the  Inactive, but the Inactive is there just in case you need it again. If  the combination of Free and Inactive is very low, then you might need  more memory."
  
  here is the article mention above:

  
  

  Inactive:
  This information is in RAM but it is not actively being used, it was recently used.
  For  example, if you've been using Mail and then quit it, the RAM that  Mail  was using is marked as Inactive memory. Inactive memory is  available  for use by another application, just like Free memory.   However, if you  open Mail before its Inactive memory is used by a  different  application, Mail will open quicker because its Inactive  memory is  converted to Active memory, instead of loading it from the  slower  drive.
  
  FOR MORE
  as we know Mac is also kind of Unix, let's check some more info about Mac's Memory:

  A few users have noticed that over time the amount of free RAM on their systems seems to go down, even if the active RAM size has not changed much. When looking at the System Memory pie chart in Activity Monitor, it's apparent that the "Inactive" memory segment seems to be growing. The question is whether or not this will affect performance, and what can be done about it?
  There are four ways that RAM is described by the system: free, wired, active, and inactive.

  •   Free RAM
      Being rather self-explanatory, this is the amount that has not been recently used by an application or system process.
  •   Wired RAM
      This is the amount that must be kept active for the system to run. This RAM cannot be written to virtual memory on the hard disk.
  •   Active RAM
      This is the current amount of memory besides wired RAM that is being used by system and user processes.
  •   Inactive RAM
      This is the amount that has recently been used but is no longer required. It may have been used by a recently quit process, or by an active one that no longer needs it, and is not required for use. This RAM is essentially free RAM, with the exception that OS X has kept track of what has recently been loaded into it.
  What does this mean?

DSC0000.png   Even though Activity Monitor shows a sliver of "free" memory available, this does not reflect the total amount of available RAM for use with new processes and applications. (Click for larger view)
  The use of inactive RAM allows the system to more quickly relaunch those recently used processes, and therefore increase the speed of the system. Instead of having to load the RAM contents from the hard disk, the system will just convert the inactive RAM back to being active.
  While this is beneficial to the system, it is a little deceptive when trying to determine the amount of free RAM on the system. If you are concerned about your system not having enough RAM, do not just look at the free RAM amount, but instead add up both the free and inactive RAM amounts.
  As an example, on my PowerMac G5 with 2GB RAM, upon checking Activity Monitor I have a small sliver of free memory available (~33MB). At first glance this may appear as though I am completely out of memory; however, I have about 700MB of inactive RAM as well, meaning that overall I have 733MB available for use with new or reactivated system processes.
  Despite this, some people still like to see green values and a larger free RAM amount. While we advise to allow the system to manage RAM for best performance, there are a couple of utilities you can use to make the green part of the memory pie chart as big as possible.

  •   C.H.U.D. tools
      If you have Apple's Computer Hardware Understanding Developer tools installed (available from the Apple developer Web site--free, with registration), you should have the purge command installed, which can be run to free up some of the inactive memory.
  •   iFreeMem
      The utility iFreeMem is useful for clearing out unused RAM by demanding as much RAM as possible from the system, forcing the system to write as much memory to disk as possible and otherwise clear the RAM, and reducing the overall memory footprint. We did a small review of iFreeMem, so be sure to check it out to see how it runs.
  Keep in mind that the combination of free and inactive RAM is still not the total available RAM in the system, because if you put high memory demands on the system, other program's active RAM will be progressively written to virtual memory so it can be freed for use. The system cannot do this with wired memory, but it can do it with active memory.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-158180-1-1.html 上篇帖子: A better ls for Mac OS X 下篇帖子: Mac OS X 官方快捷键
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表