36 Replies Latest reply: Jul 16, 2012 5:27 AM by ButterFingers RSS

    Lightroom LR4 - Silly RAM usage!!

    John Spacey Community Member

      Lightroom LR4 - Silly RAM usage!!

      Lightroom LR4 - Silly RAM usage!!

       

      Hi there

       

      I'm stunned at the amount of RAM usage by LIghtroom. I have 6Gb of RAM using LR4 in 64 bit win7.

       

      This is what happened when I opened lightroom to edit a shoot of jpgs, all of which were only about 3mb each ( I wasn't even editing 30Mb RAW files from my DSLRs )

       

      [i]figures from task manager/performance pane[/i]:
      **************************
      No Lightroom

       

      0.99 GB

       

      Launch Lightroom and cat

       

      1.53 GB

       

      select next pic

       

      2.00 Gb

       

      select next pic (no editing yet )

       

      2.20 GB

       

      after editing two pics

       

      3.13 GB

       

      editing the 2nd pic in Nik Software Silver Efex pro 2 ( edit copy with lightroom adjustments ) and returning to lightroom

       

      2.85 GB

       

      but ....

       

      Very soon, after only a few pics, the RAM usage is up to 5.5GB

       

      *********************************************************************

       

      This seems very disproportionate. Why for example would simply selecting another 3mb jpg eat up another 200Mb of RAM? And why after only a bit of editing on this 3mb pic in the develop module eat up another 900Mb of RAM?

       

      The other highly annoying issue is that once Lightroom has decided to eat up nearly all my available RAM after editing only a few 3mb JPGs, things slow down rapidly. selecting another pic means everything locks up while their is vicious disk activity ( presumably swapping to swap file because Lightroom needs another 200Mb of ram for just one 3mb JPG )

       

      it's not much fun having to quit LR every few images just to 'reset' thje amount of RAM.

        • 1. Re: Lightroom LR4 - Silly RAM usage!!
          Lee Jay Community Member

          John Spacey wrote:

          Why for example would simply selecting another 3mb jpg eat up another 200Mb of RAM?

           

          The size of the compressed JPEG is irrelevant.  What matters is the pixel count.

           

          LR should use 8 bytes per pixel just for the image you are processing.

          • 2. Re: Lightroom LR4 - Silly RAM usage!!
            Brett N Employee Hosts

            Is LR completing any processes (export, rendering, etc)? Progress bars will appear in the top right corner.

             

            Is LR still building 1:1 thumbnails for all of your images? Just because you have just imported only 30 images doesn't mean that LR isn't doing other work with images imported previously. If you've setup LR to create 1:1 previews, if the process wasn't completed previously, then it will startup up again where it left off the last time you used it.

             

            As a proof of concept, try creating a new catalog, don't import any images. See if you still see the same kinds of RAM usage. Then add a couple images, see how it performs.

            • 3. Re: Lightroom LR4 - Silly RAM usage!!
              John Spacey Community Member

              [quote]

              Is LR completing any processes (export, rendering, etc)? Progress bars will appear in the top right corner.

               

              Is LR still building 1:1 thumbnails for all of your images? Just because you have just imported only 30 images doesn't mean that LR isn't doing other work with images imported previously. If you've setup LR to create 1:1 previews, if the process wasn't completed previously, then it will startup up again where it left off the last time you used it. [/quote]

               

              Hi brett, no there aren't any outstanding processes. I always wait for 1:1 previews to be completed before attempting any editing. (  progress bars are at the top left btw. )

               

               

              [quote] As a proof of concept, try creating a new catalog, don't import any images. See if you still see the same kinds of RAM usage. Then add a couple images, see how it performs.[/quote]

               

              yes, good call will try this.

              • 4. Re: Lightroom LR4 - Silly RAM usage!!
                John Spacey Community Member

                Lee Jay wrote:

                 

                John Spacey wrote:

                Why for example would simply selecting another 3mb jpg eat up another 200Mb of RAM?

                 

                The size of the compressed JPEG is irrelevant.  What matters is the pixel count.

                 

                LR should use 8 bytes per pixel just for the image you are processing.

                 

                Yes good point. :)

                • 5. Re: Lightroom LR4 - Silly RAM usage!!
                  John Spacey Community Member

                  Brett N wrote:

                   

                  As a proof of concept, try creating a new catalog, don't import any images. See if you still see the same kinds of RAM usage. Then add a couple images, see how it performs.

                   

                  Ok, done this. Created a new catalogue, imported just 5 images ( they are 10mp btw )

                   

                  Same silly ram usage. up to 3.64Gb of usage after a a modicum of editing of those 5 images.     size of catalogue obviously makes no difference

                  • 6. Re: Lightroom LR4 - Silly RAM usage!!
                    hamish niven Community Member

                    I have a similar problem on my macbookpro. As soon as I start LR I see that my inactive memory starts rising.

                    Even if LR is not being used, ie at the moment, I'm watching  inactive slowly climb. At the moment its sitting at 2.26 Gb. Using PURGE in the terminal clears this inactive memory, but it slowly begins to climb again as soon as I start using LR again.

                    • 7. Re: Lightroom LR4 - Silly RAM usage!!
                      LRuser24 Community Member

                      Lee Jay wrote:

                       

                      LR should use 8 bytes per pixel just for the image you are processing.

                      I would say 6 Bytes ... 16 bit processing (= 2 bytes) times 3 (RGB). But that does not really matter. The important point is that in either case it is a lot more than the original compressed file size, even for raws (that have a size of approx. 1...2 bytes per pixel). Furthermore, one has to take into account internal buffers when ACR passes image data through its pipeline, generates intermediate data for the ACR cache, database buffers,  etc., etc. (of course we do not know the internals here, but some buffers are certainly necessary).

                      • 8. Re: Lightroom LR4 - Silly RAM usage!!
                        borisporosin Community Member

                        Well, LR4 does not manage memory properly. An example I faced recently: remove 5000 photos from catalog - the memory will raise from 200MB to 1600MB (Win7). Wait an hour or 24 (does not matter), then remove another 5000 photos from catalog - the memory will raise from 1600MB to almost 3GB of RAM... etc...

                        • 9. Re: Lightroom LR4 - Silly RAM usage!!
                          bob frost Community Member

                          Are you looking at memory specifically listed as being used by Lightroom, or are you looking at the total memory being used by Windows and all your programs? Windows will tend to fill all available memory with things that it thinks you might want in future (based on your past usage), but it frees it up as soon as a program wants it. I think Lightroom does some of the same, keeping things in memory in case you want to use 'undo'.

                           

                          Bob Frost

                          • 10. Re: Lightroom LR4 - Silly RAM usage!!
                            John Spacey Community Member

                            Hi Bob.  In terms of RAM usage I'm looking at a real world situation of what happens when I launch lightroom in comparison to when it's not running. In regards to 'undo' remember that Lightroom is a database based application and uses non destructive editing. There aren't or shouldn't be copies of previous images in RAM in an undo history, as you might find in a regular graphics editing program like photopaint, etc  the images I was editing were 10mp, so lets say at a max thje RAM needed for the image would be 40Mb. Yet even after editing a couple of pics, LR has eaten up 1.5GBs of RAM.    but... even if for some strange and bizarre reason LR does Require 750Mb of RAM for ONE IMAGE, surely it should free up that RAM when you go onto loading the next image into the develop module.  there is clearly a problem here

                            • 11. Re: Lightroom LR4 - Silly RAM usage!!
                              hhansard Community Member

                              From my experiences, memory usage can vary from one configuration to another for the exact catalog/image combo -- HW and OS config do play a role here...  One guy can be crusing along with LR consuming 1.5G and another similar situation gobbles up 5.6G...  Now the 5.6G would really only be an issue if LR did not release the memory when not needed (garbage/heap management) --- this was a well documented issue with previous LR releases...  There was a fairly serious memory leak in LR3 (and I think in LR2) that took a while to sort out (only expressed itself in a particular set of circumstances).  My hardware configuration (SLI w/ dual 30” HD monitors) seems to expose boundary condition problems in the code base.

                               

                              Haven’t played with LR4 yet – learned my lesson from previous LR releases – I now wait until the .1 release is gold prior to updating. 

                              • 12. Re: Lightroom LR4 - Silly RAM usage!!
                                jsakhtar Community Member

                                Windows 7 will on its own fill all available RAM with cached disk data. You can learn more here:  http://arstechnica.com/microsoft/news/2010/02/behind-the-windows-7-memory-usage-scaremonge ring.ars and http://www.tomshardware.com/reviews/windows-vista-superfetch-and-readyboostanalyzed,1532.h tml

                                 

                                What you really want to watch for is PAGING and . That is all that really matters. You would need to enable the column in the task manager called "Page Faults", and see where those are occuring.

                                 

                                Also, you should disable your virus scanner (like MS Security Essentials) for all your raw file types, the directories that contain your raw files, and the lightroom process itself.

                                 

                                You can get actual data from Lightroom itself Help|System Info, which will give you more useful information:

                                 

                                Lightroom version: 4.1 RC [820174]

                                Operating system: Windows 7 Home Premium Edition

                                Version: 6.1 [7601]

                                Application architecture: x64

                                System architecture: x64

                                Physical processor count: 8

                                Processor speed: 2.6 GHz

                                Built-in memory: 6135.1 MB

                                Real memory available to Lightroom: 6135.1 MB

                                Real memory used by Lightroom: 270.3 MB (4.4%)

                                Virtual memory used by Lightroom: 261.1 MB

                                Memory cache size: 138.1 MB

                                System DPI setting: 96 DPI

                                Desktop composition enabled: Yes

                                Displays: 1) 1920x1200, 2) 1920x1200

                                • 13. Re: Lightroom LR4 - Silly RAM usage!!
                                  John Spacey Community Member

                                  jsakhtar wrote:

                                   

                                  Windows 7 will on its own fill all available RAM with cached disk data. You can learn more here:  http://arstechnica.com/microsoft/news/2010/02/behind-the-windows-7-mem ory-usage-scaremongering.ars and http://www.tomshardware.com/reviews/windows-vista-superfetch-and-ready boostanalyzed,1532.html

                                   

                                  What you really want to watch for is PAGING and . That is all that really matters. You would need to enable the column in the task manager called "Page Faults", and see where those are occuring.

                                   

                                  Also, you should disable your virus scanner (like MS Security Essentials) for all your raw file types, the directories that contain your raw files, and the lightroom process itself.

                                   

                                  You can get actual data from Lightroom itself Help|System Info, which will give you more useful information:

                                   

                                  Lightroom version: 4.1 RC [820174]

                                  Operating system: Windows 7 Home Premium Edition

                                  Version: 6.1 [7601]

                                  Application architecture: x64

                                  System architecture: x64

                                  Physical processor count: 8

                                  Processor speed: 2.6 GHz

                                  Built-in memory: 6135.1 MB

                                  Real memory available to Lightroom: 6135.1 MB

                                  Real memory used by Lightroom: 270.3 MB (4.4%)

                                  Virtual memory used by Lightroom: 261.1 MB

                                  Memory cache size: 138.1 MB

                                  System DPI setting: 96 DPI

                                  Desktop composition enabled: Yes

                                  Displays: 1) 1920x1200, 2) 1920x1200

                                   

                                  Hi there jsakhtar

                                   

                                  Indeed Lightroom Help|System Info is in fact  confirming what Task manager says about RAM usage. And yes becuase Lightroom is not releasing memory from previously edited images, once LRs RAM usage reaches close to the limit of physical RAM it certainly does go int opaging the swap file and things slow down to glacial speeds,  paging isn't all that really matters in htis case as the problem that means paging is reached when it shouldn't be is what matters the most.

                                   

                                  regarding disabling virus scanner for RAW files, I'm not usign a virus scanner and indeed I'm reporting this usign jogs, not RAW files. 

                                   

                                  As much as we can keep looking at our systems and blaming them, this is really a Lightroom problem and that's the where the fix should be applied. A program like lightroom shouldn't have to rely upon users being IT experts for it to run properly.

                                  • 14. Re: Lightroom LR4 - Silly RAM usage!!
                                    bob frost Community Member

                                    I don't think you have said how many drives you are using? I hope you haven't got your system, pagefile, catalog, previews, acr cache, and images all on one drive!

                                     

                                    LR does rely on your hardware/software working properly - we/you don't know that it is, do we/you?

                                     

                                    Bob Frost

                                    • 15. Re: Lightroom LR4 - Silly RAM usage!!
                                      jsakhtar Community Member

                                      Hi John,

                                       

                                      I work with RAW though one would think that would be more taxing, I don't

                                      have memory issues. Have you disabled OpenGL?. You should really try that

                                      if you haven't.

                                       

                                      I have no memory leaks in 4 or 4.1. I have run VMMap for hours to be

                                      certain.

                                       

                                      4.0 was slow with multiple monitors but they seem to have fixed that in 4.1.

                                       

                                      Sorry if I couldn't help.

                                      • 16. Re: Lightroom LR4 - Silly RAM usage!!
                                        John Spacey Community Member

                                        bob frost wrote:

                                         

                                        I don't think you have said how many drives you are using? I hope you haven't got your system, pagefile, catalog, previews, acr cache, and images all on one drive!

                                         

                                        LR does rely on your hardware/software working properly - we/you don't know that it is, do we/you?

                                         

                                        Bob Frost

                                         

                                        Hi there Bob.

                                         

                                        OS ( system ) drive is SSD

                                        I have 4 other HDDs, 2 x SATA2 and 2x SATA3

                                         

                                        Catalogues on one SATA3 drive, images on another. ACR cache on another, although the AXCR cache isn't sued with JPGs IIRC.

                                         

                                        could you explain how hard drive setup would affect RAM usage before swapfile is invoked? I can't see how Hard Drives would cause lightroom to not release RAM?

                                         

                                         

                                        You ask "LR does rely on your hardware/software working properly - you don't know that it is, do you?"

                                         

                                        Well although there may be some specific issue with my system that is causing Lightroom to eat up silly amounts of RAM and not release it, all other software I run on the machine does not have any poblems. Other Lightroom users have reported a similar issue above and Lightroom 3 was reknowned for memory leaks. 

                                         

                                        I will cotninue to see if there is anything regarding mys system that can be done to lessen this ram usage issue though. I'll certainlytry the Open GL thing jsakhtarmentioned above.

                                         

                                        Cheers

                                        • 17. Re: Lightroom LR4 - Silly RAM usage!!
                                          bob frost Community Member

                                          From: "John Spacey

                                          I will cotninue to see if there is anything regarding mys system that can

                                          be done to lessen this ram usage issue though. I'll certainlytry the Open

                                          GL thing  http://forums.adobe.com/people/jsakhtar jsakhtarmentioned above.

                                           

                                          How big is your pagefile?

                                           

                                          Bob Frost

                                          • 18. Re: Lightroom LR4 - Silly RAM usage!!
                                            LRuser24 Community Member

                                            jsakhtar wrote:

                                             

                                            (...)

                                            Have you disabled OpenGL?

                                            I thought LR does not use OpenGL like Photoshop. At least there seems to be no option to disable it. Or did you mean to disable OpenGL in the video card driver? And are you really sure that OpenGL is connected to RAM usage?

                                            • 19. Re: Lightroom LR4 - Silly RAM usage!!
                                              jsakhtar Community Member

                                              I think in LR 4.1 they added some verbiage saying that it was only used for video. There is an option in the preferences panel to enable or disable it.

                                              • 20. Re: Lightroom LR4 - Silly RAM usage!!
                                                LRuser24 Community Member

                                                Thanks for the pointer to that setting! I didn't really notice it before

                                                • 21. Re: Lightroom LR4 - Silly RAM usage!!
                                                  John Spacey Community Member

                                                  bob frost wrote:

                                                   

                                                  From: "John Spacey

                                                  I will cotninue to see if there is anything regarding mys system that can

                                                  be done to lessen this ram usage issue though. I'll certainlytry the Open

                                                  GL thing  http://forums.adobe.com/people/jsakhtar jsakhtarmentioned above.

                                                   

                                                  How big is your pagefile?

                                                   

                                                  Bob Frost

                                                  Hi Bob. i'ts 6.2Gb - Could you explain how hard drive setup would affect RAM usage before swapfile is invoked? I can't see how Hard Drives would cause lightroom to not release RAM?

                                                  • 22. Re: Lightroom LR4 - Silly RAM usage!!
                                                    coffeefrog Community Member

                                                    I've seen this behaviour too and periodically have to restart Lightroom to get the process' committed memory back down tom something sensible.   In my case on Vista.  I suspect that something in particular triggers the behaviour because I don't see it every time I use Lightroom. 

                                                    • 23. Re: Lightroom LR4 - Silly RAM usage!!
                                                      bob frost Community Member

                                                      From: "John Spacey

                                                      Hi Bob. i'ts 6.2Gb - Could you explain how hard drive setup would affect

                                                      RAM usage before swapfile is invoked? I can't see how Hard Drives would

                                                      cause lightroom to not release RAM?

                                                       

                                                      Lightroom works fine on my Win7x64 with multiple drives, so I'm wondering

                                                      what is different about your computer that produces your problem.

                                                       

                                                      I do have more RAM than you (16GB) but the system (including LR) only

                                                      usually uses about 2.5-3.5 GB RAM, while Windows uses various amounts for

                                                      cacheing - just over 4GB at present, making 6.5GB in total use (2,5GB 'in

                                                      use', and 4 GB 'on standby' as Windows reports in Resource Monitor),  but I

                                                      have seen Windows fill nearly all the 'free' memory. You talked about 'disk

                                                      thrashing' when the pagefile was in use; an SSD can't thrash, can it? Mine

                                                      works totally silently!

                                                       

                                                      Bob Frost

                                                      • 24. Re: Lightroom LR4 - Silly RAM usage!!
                                                        John Spacey Community Member

                                                        coffeefrog wrote:

                                                         

                                                        I've seen this behaviour too and periodically have to restart Lightroom to get the process' committed memory back down tom something sensible.   In my case on Vista.  I suspect that something in particular triggers the behaviour because I don't see it every time I use Lightroom. 

                                                        Yes I have to keep restarting after a few image edits to bring the memory usage back down. Most annoying

                                                        • 25. Re: Lightroom LR4 - Silly RAM usage!!
                                                          John Spacey Community Member

                                                          bob frost wrote:

                                                           

                                                          From: "John Spacey

                                                          Hi Bob. i'ts 6.2Gb - Could you explain how hard drive setup would affect

                                                          RAM usage before swapfile is invoked? I can't see how Hard Drives would

                                                          cause lightroom to not release RAM?

                                                           

                                                          Lightroom works fine on my Win7x64 with multiple drives, so I'm wondering

                                                          what is different about your computer that produces your problem.

                                                           

                                                          I do have more RAM than you (16GB) but the system (including LR) only

                                                          usually uses about 2.5-3.5 GB RAM, while Windows uses various amounts for

                                                          cacheing - just over 4GB at present, making 6.5GB in total use (2,5GB 'in

                                                          use', and 4 GB 'on standby' as Windows reports in Resource Monitor),  but I

                                                          have seen Windows fill nearly all the 'free' memory. You talked about 'disk

                                                          thrashing' when the pagefile was in use; an SSD can't thrash, can it? Mine

                                                          works totally silently!

                                                           

                                                          Bob Frost

                                                           

                                                          Hi Bob,

                                                           

                                                          so we haven't any explanation as to why a hard drive set up would affect Ram usage, before the swap file is invoked.

                                                           

                                                          On 'disk thrashing', no I hvaen't talked about that. I mentioned vicious disk activity.  And when that starts everything in LR slows down. I can't even adjust the size of the adjustment brush for example

                                                          • 26. Re: Lightroom LR4 - Silly RAM usage!!
                                                            ljhiker2 Community Member

                                                            I'm seeing the same problem ever since moving to LR4. The RAM usage sucks and especially if you are trying to use any Nik plugins.  LR4 just goes out to never never land for no reason on my Win7 32 bit machine. I taken all unnecessary files out of startup and still get poor performance. I love LR4's Basic controls but I'm almost ready to go back to LR3 for faster performance and editing.

                                                            • 27. Re: Lightroom LR4 - Silly RAM usage!!
                                                              coffeefrog Community Member

                                                              Bob,

                                                              I can't see where "thrashing" got introduced into the thread or by who, but some background on the term might be useful.  It refers to lots and lots of disk activity, not to any noise.  Referring to memory, it usually means that the computer is writing virtual memory out to disk (the page file) and reading it back in over and over because it has run out of free RAM and the active part of the memory has gotten much bigger than the RAM can hold.  When this happens the machine can slow down to a complete crawl, screen redraws get very very slow (in the worst case it can be like a blind being pulled down slowly) and the machine appears to lock up because it is spending all of its time reading and writing memory to and from the disk.

                                                               

                                                              Greg

                                                              • 28. Re: Lightroom LR4 - Silly RAM usage!!
                                                                jason almeida Community Member

                                                                Lightroom 4 is a waste of my money ... It is so slow!! ... keep getting a message cannot export image ... I even tried LR 4.1 RC but still the same ... hasn't Adobe done any QC before shipping the product??

                                                                • 29. Re: Lightroom LR4 - Silly RAM usage!!
                                                                  GKN 100 Community Member

                                                                  jsakhtar wrote:

                                                                   

                                                                  Windows 7 will on its own fill all available RAM with cached disk data. You can learn more here:  http://arstechnica.com/microsoft/news/2010/02/behind-the-windows-7-mem ory-usage-scaremongering.ars and http://www.tomshardware.com/reviews/windows-vista-superfetch-and-ready boostanalyzed,1532.html

                                                                   

                                                                  What you really want to watch for is PAGING and . That is all that really matters. You would need to enable the column in the task manager called "Page Faults", and see where those are occuring.

                                                                   

                                                                  Also, you should disable your virus scanner (like MS Security Essentials) for all your raw file types, the directories that contain your raw files, and the lightroom process itself.

                                                                   

                                                                  You can get actual data from Lightroom itself Help|System Info, which will give you more useful information:

                                                                   

                                                                  Lightroom version: 4.1 RC [820174]

                                                                  Operating system: Windows 7 Home Premium Edition

                                                                  Version: 6.1 [7601]

                                                                  Application architecture: x64

                                                                  System architecture: x64

                                                                  Physical processor count: 8

                                                                  Processor speed: 2.6 GHz

                                                                  Built-in memory: 6135.1 MB

                                                                  Real memory available to Lightroom: 6135.1 MB

                                                                  Real memory used by Lightroom: 270.3 MB (4.4%)

                                                                  Virtual memory used by Lightroom: 261.1 MB

                                                                  Memory cache size: 138.1 MB

                                                                  System DPI setting: 96 DPI

                                                                  Desktop composition enabled: Yes

                                                                  Displays: 1) 1920x1200, 2) 1920x1200

                                                                  Sorry for my ignorance - how do you enable all built in memory available to LR? I have 3.25 GB RAM but only 716.8 MB real memory is available to LR

                                                                  • 31. Re: Lightroom LR4 - Silly RAM usage!!
                                                                    coffeefrog Community Member

                                                                    And of course are you advising buying an infinite amount of memory in addition to the new hardware to deal with a software bug?

                                                                    • 32. Re: Lightroom LR4 - Silly RAM usage!!
                                                                      John Spacey Community Member

                                                                      Dorin Nicolaescu-Musteață wrote:

                                                                       

                                                                      Move to 64 bit.

                                                                      Please read the thread.

                                                                      • 33. Re: Lightroom LR4 - Silly RAM usage!!
                                                                        John Spacey Community Member

                                                                        OK, seem to be getting somewhere now

                                                                         

                                                                        As stated in the OP I work in 64 bit Win 7. I have a win 7 32 bitpartition on the same machine I use for various things and also for testing Lightroom updates without upsetting my main LR work partition.

                                                                         

                                                                        Earlier tonight I isntalled 4.1RC2 on my win 7 32 bit partition and ahve been working on a shoot. Interestingly the RAN usage seems much better managed. Instead of progressviely creeping up to a point of ARRGHHH!!!, with RC2 memory is released when switching images. Great news!!   Now bearing mind I still need to stest this in my 64 bit martition and I will isntall RC2 once confident it wont' fall right over, but positive os far.

                                                                         

                                                                        ALSO, which I've just started testing is the negative cache disablement as described by Adfoibe Employee  Julie Kmoch here

                                                                         

                                                                        http://feedback.photoshop.com/photoshop_family/topics/lr4_0_reacts_extremely_slow

                                                                         

                                                                        who said:

                                                                         

                                                                        ******************************************************************

                                                                        Here's an update on what changed in RC2 relative to Develop performance.

                                                                         

                                                                        For starters, in RC1 we experimented with turning off sharpening while sliders were moving. We got a fair amount of negative feedback on that, and have reverted that behavior. Instead, we moved more of the rendering to a background thread, which keeps the sliders moving smoothly. One caveat with the behavior in RC2 is that those background renders can pile up if you're moving fast. The final 4.1 release will do a better job of trimming these when possible.

                                                                         

                                                                        I worked with a number of you who volunteered to try an experiment a couple weeks ago that turned off something we call negative caching. The results were mixed; a couple people said it was a clear improvement, others didn't see a benefit. But I'll offer it here in case it helps others who find performance starts out reasonably then suddenly, consistently goes south until a restart.

                                                                         

                                                                        What the following will do is turn off a cache which saves some of your most recent work done in Develop such that if you revisit a recently touched image, it loads faster. However, if our calculations are off, this cache can sometimes get too big and cause ACR to use virtual memory instead of RAM.

                                                                         

                                                                        To try it:

                                                                        1. Create a text file called “config.lua” and put the following line in it: AgNegativeCache.enabled = false

                                                                        2. Launch Lightroom, go to the Preferences dialog, Presets tab, and hit “Show Lightroom Presets Folder”.

                                                                        3. Close the Preferences dialog, quit Lightroom.

                                                                        4. Drop the attached config.lua file into the Lightroom folder that was opened in step 2 (do not put it in one of the preset subfolders). So the path to the file will look like this:

                                                                         

                                                                        Mac: /Users/[yourname]/Library/Application Support/Adobe/Lightroom/config.lua

                                                                        Win:  C:\Users\[yourname]\AppData\Roaming\Adobe\Lightroom\config.lua

                                                                         

                                                                        You’ll know this switch to turn the cache off is working if you see the “Loading...” symbol even when you revisit the previously edited image in Develop. (When caching is on, you can often revisit a recently edited photo without the Loading warning showing.)

                                                                         

                                                                        ******************************************************************

                                                                         

                                                                         

                                                                        I'll report back laters

                                                                        • 34. Re: Lightroom LR4 - Silly RAM usage!!
                                                                          rjh1007 Community Member

                                                                          John

                                                                          Thanks

                                                                          I tried successfully your negative caching steps.  So far there has been a very decided improvement.  Since each of my raws are 24+ mps every time I touched one I would watch the ram usage climb in task manager/ process/ lightroom.  If I worked on the image using the adjustment tools every stroke increased the ram usage.  I was often well in excess of 6 gb and then if I round tripped to PS for my Nik filters or any other addtional adjustment PS also wouldn't release memory.  As others have complained LR would either freeze for a period of time or become extremely slow.  While I haven't figured out how to release the PS ram your negative caching has help immensely in LR.

                                                                          Question - why on earth isn't this part of the code?

                                                                          Do you know a way to release the same memory problems in CS5?

                                                                          Thanks

                                                                          Bob

                                                                          • 35. Re: Lightroom LR4 - Silly RAM usage!!
                                                                            GKN 100 Community Member

                                                                            Thanks for the details re negative caching - it has worked a treat - seems like a totally different piece of software now - I don't have to restart LR after editing 3-4 images! It had an earth-shattering effect ...... Lightroom started to run fast, and then immediately I then had to endure a 7.0 earthquake!!

                                                                             

                                                                            I also saw this post ....http://photocamel.com/forum/computers-software/162752-help-lightroom-4-1-slow-performance- problems.html which discusses the issue of corrupted preference files and offers a solution

                                                                            • 36. Re: Lightroom LR4 - Silly RAM usage!!
                                                                              ButterFingers Community Member

                                                                              Hi John,

                                                                              I tried the negative cache lua file, and so far as I can tell, it has evened out the performance. I don't seem to be getting a slowdown when doing spot, brush, grads etc.

                                                                               

                                                                              My normal raw file is from a D90 and I even tried messing with a D800 NEF I'd downloaded. Although it was slower (I've just got a dual core 2.6ghz with 8gb ram) it went acceptably.

                                                                               

                                                                              How on earth did you find out about that fix?

                                                                               

                                                                              Interestingly (or not, I suppose it depends on your level of interest), i was looking at the Windows performance monitor and I saw that the CPU went to about 50% even when I was simply moving the cursor around the image. That was the same with any size nef file.

                                                                              My memory has remained fairly stable (I believe some have seen what appears to be memory leak behaviour).

                                                                               

                                                                              I'd tried all other fixes offered in the forum.

                                                                               

                                                                              with thanks,

                                                                              Hans