Inactive memory. it's not working properly, how do i tweak the system to fix it?

hi.
my system has 24 gigabytes of ram. I use After effects and photoshop and illustrator... all day, every day, going back over 10 years.
when I run a particularly big project in AE, one that uses big fies, or a lot of files, the inactive ram very quickly balloons out of control.
prime example: I am rendering right now, it takes about 12 minutes to render the comp, in 12 minutes the system will go from zero megabytes of inactive ram, to 17 gigabytes, leaving me with no ram for the system, causing in some severe cases: actual hard crashes. I continually have to monitor and run a "purge" command in the terminal in order to cut that out.
the documentation and general discourse I've read agrees that inactive memory is the same thing as free memory, in that it is available for applications with need to use it. But, it contains potentially useful data that was recently used, and the system would rather give you the free stuff before giving you the inactive stuff.
here's the problem:
Aftereffects uses this memory, and then frees it. it's full of gibberish, it gets used quickly, and released quickly, and pooled into inactive memory. At this point it should be availible for other apps to use, and it isn't. it is treated as if it is in use. The system can't use it, aftereffects can't use it, no other app can get this ram allocated to it. Inactive memory, becomes terminal memory, memory that is not available for use by the system.
I know there has to be a system default or a setting in the terminal, I can set to make it trigger happy and automatically free up this useless memory.
what is it?

Inactive memory is the operating system cache.
This cache may contains data which has not been written to disk (called dirty pages).  This is because Mac OS X defers flushing dirty cache data to disk to cut down on contantly starting up idle disks, consuming power, draining laptop batteries, and adding extra wear to solid state disks which have a limited number of writes.
When Mac OS X has lots of inactive memory and the system starts to slow down, this is because now the OS is being forced to write the dirty cached pages to disk before it can give those pages to another applications, or to reuse those pages with the same applciation.
After effects and photoshop and illustrator are very memory intensive apps.
...causing in some severe cases: actual hard crashes.
That is either a hardware problem, or an operating system bug.  You should file a Bug report including your crash dumps to Apple.
BugReporter
<http://bugreporter.apple.com>
Free ADC (Apple Developer Connection) account needed for BugReporter.
Anyone can get a free account at:
<http://developer.apple.com/programs/register/>
Aftereffects uses this memory, and then frees it. it's full of gibberish, it gets used quickly, and released quickly, and pooled into inactive memory. At this point it should be availible for other apps to use, and it isn't. it is treated as if it is in use. The system can't use it, aftereffects can't use it, no other app can get this ram allocated to it. Inactive memory, becomes terminal memory, memory that is not available for use by the system.
The inactive memory may still be part of the After Effects address space, just not in the current process working set.  That is to say, ever so often the operating system will mark pages inactive and see if the process references them again.  If it does, they are put back in the process' working set (quickly because they are still in RAM and it just requies updating some process tables), otherwise they sit in inactive memory.  If they are really part of After Effects address space, then chances are the data in those pages is dirty, and before they can be given to another process the pages have to be written to the /var/vm/swapfile(s).
If After Effects generated this inactive memory by reading files (and only reading), then those pages are clean (not dirty), and can easily be moved to free pages and given to a process as there is no need to write them  back to disk, as the disk has the same values as what is cached.
If After Effects generated this inactive memory by writing data to files, then the pages are dirty and are waiting to be written to disk.  Unless the file has been deleted after the write (such as a scratch file), then the operating system must write the data to disk before it can reuse the inactive pages.  It does not matter if later the file will be deleted, the operating system does not know that, so it cannot give those pages to another process until they have been written to disk.  The except being if and only if, a process is also accessing (reading or writing) that file, then cache starts to pay for itself.
The operating system does not refuse to give inactive memory to other processes, it just has responsibilities to make sure dirty pages are properly moved to stable storage before the pages are reused.  And generally speaking stable storage is slow.  Orders of magnitude slower.
If you want  to control when you the operating system cleans dirty inactive memory, then you may continue to run the 'purge' command.  As long as you are not running it non-stop, and especially if you are using a laptop or solid state disk.
Then again, getting more RAM will allow the operating system to dirty up more RAM before it needs to start flushing to disk.  And replacing your disks with solid state disks (SSDs) will allow the operating system to flush dirty pages much faster when it needs to start cleaning the inactive memory.
Message was edited by: BobHarris

Similar Messages

  • My speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    my speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • Pick color feature not working properly -- how do I reset?

    Pick color feature not working properly -- how do I reset?

    You need to contact Adobe for you billing problem this is a user four not adobe customer support.
    For your Photoshop Problems this user community may be helpful. 
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    All the links to download DREAMWEAVER CS3 Creative Suite are not working. How can I download the file ? I have a serial number of a purchased software.

    They work just fine. whatever issues you have are specific, but without proper system info, browser info and other details nobody can even begin to guess.
    Mylenium

  • In My IPhone the sound device not working properly. I can here the sound through head set only.kindly send an idea ti solve this problems

    In My IPhone the sound device not working properly. I can here the sound through head set only.kindly send an idea ti solve this problems

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • Wifi is not working properly once i updated to the new operating system.

    My I pphone 4s wifi is not working properly once the softwere is updated to the new IOS.
    It shows the wifi but when selected its says "unable to connect". I tried connecting to many wifi networks but gives the same error message.
    Kindly advice how to rectify this

    I am trying that and itunes says that you have to have icloud backup off. My icloud "button" is a whiteish green and does not respond to touch. I can't turn it off.

  • YouTube is not working properly of my Safari. Can you help fix it?

    So for some reason YouTube is not working properly on my Safari. I don't know why but its normal for Chrome. Can anyone help me fix this? Here is what is happening.

    This looks like an emerging issue with YouTube. But, to make sure:
    1) Quit safari (command + q with it open)
    2) Open finder. Click on "go" on the top menu bar, then click on "go to folder." In the prompt that comes up, type in:
    ~/library
    3) Pull the caches folder to the trash. This will ask for your password
    4) Open Safari. Click "Safari" by the Apple logo, then click "reset safari." Make sure everything is selected, then reset safari.
    5) Try again.
    If that doesn't work, the resolution by someone else I was working with (see thread here) was:
    daMeeze wrote:
    I was able to access help topics in YT by not signing in. Massive numbers of ppl with same issue. Fixed by signing in and scrolling to bottom of page to "Something New" and trying out the Feather beta test. It sounds like a YT issue *whew*. THANK YOU for sticking with me :-)

  • I HAD AN IPHONE AND DOWNLODED MANY PAID AND FREE APPS.MY IPHONE AND LAPTOP ARE NOT WORKING NOW.HOW DO I DOWNLOAD THE APPS INTO MY NEW LAPTOP SO THAT I CAN SYNC WITH MY NEW IPAD

    I HAD AN IPHONE AND I DOWNLOADED MANY PAID AND FREE APPS FROM ITUNES STORE.NOW MY IPHONE AND LAPTOP ARE NOT WORKING.HOW DO I GET THESE APPS INTO MY NEW LAPTOP SO THAT I CAN SYNC WITH MY NEW IPAD

    How to redownload purchased apps from the App Store

  • Trackpad in Safari not working properly + how to transfer passwords

    I just switched to Safari from Firefox.
    The trackpad seems to know the two-finger movement to go forward/backward, but it won't acknowledge the three-finger movement to go to the top/bottom of the page. It worked fine in Firefox, but not Safari. Any tips?
    Also how do I get my user ids and passwords to transfer over from Firefox to Safari?
    Thanks!

    HI,
    As for the trackpad, post in the forum related to the model Mac you have. http://discussions.apple.com/index.jspa
    As for user names and passwords. That data cannot be transferred from one browser to another. You user names and passwords are stored in your Keychain Access application located in: Applications / Utilities.
    And make sure in Safari / Preferences - Autofill that *user names and passwords* is selected. The next time you visit a site that requires you login, a new keychain will be created for you. Keep in mind, some banking and investment sites due to security, do not allow for autofill.
    Carolyn

  • My computer was not working properly last week.  Now the computer starts, but it appears like its all factory settings.  How do I restore so I can read my email, see my pictures, itunes etc....?

    How do I restore my personal items such as iTunes, my pictures, email etc...?  The computer was acting up last week, and now everything looks like factory settings.

    Hello, first thing to do is in the Finder, double click on your hard drive's icon, see how many users are in the Users folder, sounds like your Home folder was possibly renamed.

  • Recovery media creation does not work properly,how can i make recovry disk

    when i started recvry med cretion it collected files for 50 mins then i inserted sony dvd, it started writing then suddenly ejected the dvd asking that (use dvd-r or dvd+r, no RW dvd can be used for this ). i checked my dvd.it was correct. my dvd is also written with some data.what to do because recovery can be made once

    when i started recvry med cretion it collected files for 50 mins then i inserted sony dvd, it started writing then suddenly ejected the dvd asking that (use dvd-r or dvd+r, no RW dvd can be used for this ). i checked my dvd.it was correct. my dvd is also written with some data.what to do because recovery can be made once

  • Query Stripping not working properly when using variable in the report

    We have issue with WEBI document that have query stripping enable.
    Once the query stripping enabled there is no data return in the report.
    We have investigate on the problem, the query stripping function are notable to retrieve objects that indirectly used in the report
    as we have
    many variable in the reports.
    Ex.
    Var1 = object1 + object2
    Var2 = Object3 + Object4
    Var3 = Var1 + Var2
    Var4 = Object1 + Object2 + Object3 + Object4
    If we use only Var3 in the report, the object1,2,3,and 4 will not be
    retrieve.
    But if we are using Var4 in the report, the object1,2,3,and 4 will be
    retrieve properly.
    Please let me know is it a by-design behavior, if yes please share points on it

    Hi Amit,
    Thank you for response, however i already had alook on that VIdeo and it tells us about the basic enabling of query stripping.
    But my question is when we have a Variable in a report which is dependent on the other two variables it gives me #error so is it by design or not.
    Regards,
    Abhinav

  • HT2506 Preview is not working.  How can I reload the program?

    When I open up the Preview Program the little ball keeps spinning and will not load.  Would like to delete any files in the program that are there, but since the program won't load I can't get anywhere.

    How come I can't view any of this discussion? We've been having this problem for months now and I'm frustrated I can't get an answer to fix it...

  • I want to delete temporary internet files. Notice I did not say clear the cache. That does not work! How can I delete the temp files? Why did you take that feature away? VERY frustrating that you would do that!

    I search for how to delete temp int files and keep coming up with the "clear cache" crap. That is not what I searched for. Clear cache does NOT delete the temp files. Why would you take that feature away??

    The Windows temporary internet files folder isn't used directly by Firefox. Firefox uses its own cache folder and you can see its current usage on the about:cache page via the location bar.
    If anything does show up in the temporary internet files folder then it is likely caused by using MS plugins like the Windows Media Player or Silverlight. You need to clear that folder via IE or the control panel (internet settings).

  • My selection & direct tools are not working properly. What could be the problem?

    I can't select my selection & direct selection tools from my tool bar. The shortcuts are working but even when an object is selected I can't edit the color of the object. When the mouse hoover the selection tool icon it does not highlight like the rest of the tools. The mouse is working fine in other Adobe applications and I never have a problem before. T his just happened suddenly. I read one post where the person had a problem similar to mine and I applied the suggestion that was given of changing the Theme for Windows 7 but I still have the same problem. I'm working in CS5 and my OS is Window 7. I will appreciate any help. Thanks

    Try restoring your InDesign preferences:
    Trash, Replace, Reset, or Restore the application Preferences

Maybe you are looking for

  • How do I create custom subject lines for form responses?

    We want our forms to be able to generate a custom subject line--each time someone puts in a request. Gmail threads everything together with the same subject line so when we get e-mail notifications when someone submits a form we often miss these beca

  • Blue screen, or Green screen - which is less problematical

    Setup: Canon HV20, FCP6.1, MBPro 2.33 I have a Blue screen and am considering getting a Green screen. The Blue, being pretty dark, seems to cause problems for the camera, esp. with contrast with the actor that make for tricky lighting. Just curious i

  • Scales in Pricing

    Hi all, I am having a requirement in pricing. In the pricing, I want to have a value of a condition if the weight crosses certain limit. Ex. If the weight exceeds 100 kg, then there is a handling charge of Rs.10 per kg on the excess weight, i.e. If t

  • Adding thumbnails to xml playlist

    I am new to flash and I have a questions that I think should be pretty simple but I can't seem to figure it out. I'm creating a flash page with an xml video player, and my actionscript works fine, but I would like to add thumbnails to the playlist. C

  • Nomad Zen Xtra 40GB - Max Bitra

    Hi - as a matter of course, I tend to record my music at a maximum bitrate - typically WMA Lossless. I tried to find it, but I couldn't - what is the max bitrate the Xtra can handle? When I transfer these files, I get a "playback error". Also note, u