Skip navigation

Found a significant LR4 speedup - regenerate ACR cache

Mar 21, 2012 7:40 PM

Tags: #performance #lr4
  Latest reply: ashleykaryl, Mar 31, 2012 1:24 AM
Replies 1 2 Previous Next
  • Currently Being Moderated
    Mar 22, 2012 3:05 PM   in reply to B r e t t

    Interesting - I just checked my cache - old entries are very big - new entries are very small. How about that?

     

    Perhaps there were some significant changes in what the cache does in Lr4???

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:16 PM   in reply to Rob Cole

    Hi Rob,

     

    Since I use DNG with fast load data embedded the ACR cache seems to be used much less.

    That is a new LR4-feature.

     

    Cornelia

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:30 PM   in reply to Cornelia-I

    Hi Cornelia,

     

    Right - I had forgotten about that. I wish they would have allowed non-DNG users to take advantage of that technology too, but since I don't use DNG, I wonder what the deal is in my case.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:34 PM   in reply to jfriend0

    Something has definitely changed or is screwed up now.

     

    Like you, my cache entries used to run about 5MB for 13MB D300 file. Now they are in the 400K range - whoa, that's quite a difference!

     

    Haven't done any benchmarks since noticing this difference.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:39 PM   in reply to Rob Cole

    And my largest is only 3.9 with an overwhelming majority closer to 500k. 12mp .arw raw files. All over the map from 99k to 999k for 95% of them.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:44 PM   in reply to jfriend0

    I have cache going way back and the max is 3.9mb, with the average being 350k. In any case it is somehting like 75-95% smaller than the file, not 3 to 4 times bigger.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 3:57 PM   in reply to B r e t t

    13 sounds big. 500k sounds about right for a standard preview. Have you been doing a lot of 1:1 preview recently? They should be bigger.

     

    I'm moving to a DNG workflow for the Fast Load Data. Older non selects will go to Lossy DNG. They're already backed up as Raw and right now, I've probably mere thousands of shots I'd be lost without.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:03 PM   in reply to B r e t t

    Pre Lr4, all cache entries were exactly the same size (and big), given the same preview settings (I can't remember if it was quality or resolution that affected it, but it was not what one might think), and the same model camera. Now, the sizes are image dependent, and small. Something has definitely changed, ACR-cache-wise, a lot, in my copy/system. Not using DNG.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:03 PM   in reply to B r e t t

    I was used to seeing cache entries in the 17mb range for my circa 25mb raw files. However a few days ago I purged my ACR cache, deleted my preview cache, then rebuilt 1:1 previews. Checking on the cache this evening I was surprised to find average cache entry size well below 1mb, probably about 400k. Just ran a quick test:

     

    Copied 9 raw files, all more or less identical night shots (around 25mb each, hardly any variation) to my desktop. Then imported 3 each into LR2, LR3, and LR4, then checked the cache.

     

    For the 3 LR2 imports, the cache entry was 17,404kb for each one, no variation

    For the 3 LR3 imports, the cache entries were 497kb, 942kb, 942kb

    For the 3 LR4 imports, the cache entries were 1218kb, 932kb, 327kb

     

    Go figure. I have no idea of the significance of the huge difference between LR2 versus LR3&4.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:07 PM   in reply to jim01403

    Somebody needs to do some benchmarking!

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:07 PM   in reply to Rob Cole

    Just had a look. I've a mix of 500k and 8.8Mb files recently.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:13 PM   in reply to Seán McCormack

    All small for me since purging recently (minutes ago) - regardless of process version.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 4:11 PM   in reply to Seán McCormack

    Purged.. some of them were well old and despite the 50 gig limit I entered, it was 56Gb..

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 5:35 PM   in reply to jfriend0

    I purged the cache and increased it to 50GB - no significant improvement - if I try to scroll through the catalog, I may get a few that load quickly, (or not), then it will bog down, and take over a minute just to preview (load).  Develop seems to work okay once I get to it. I don't even dare to try to load or export, because that was even worse previously - either locked up or exceedingly slow. 

     

    I am on a severe time crunch, so at this point, LR4 is unusable, so I want to revert back to 3.6 - how do I do that?  I fear just removing LR4 from my system will cause more problems....any idea about that?  I am so incredibly frustrated with Adobe,  with the only support from Adobe requires me to pay to fix what I believe to be is their problem, unless I am missing something.  I do appreciate the replies as to how to try to fix this.

     

    Thanks in advance

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 5:44 PM   in reply to rosalynsam

    I would definitely try to get to some ground zero, then work back up if possible, which means:

     

    New catalog

    import one new photo - same problem? import a half dozen more - problem now?

     

    If it works when you have a freshly created catalog, catalog was the culprit.

     

    Else:

     

    Reboot machine

    Reinstall Lightroom

    Reboot machine

    Try again... try other things...

     

    R

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2012 6:07 PM   in reply to Rob Cole

    To know whether this cache change improved things, I would recommend purging the cache, then do some operation to an entire directory of images (I chose to change sharpening by one unit) and then tell it to regenerate previews.  This will cause it to access every image in the directory and will rebuild the cache for that directory... If you don't cause it to rebuild the cache by doing some operation that causes it to recache everything, then it will be hard to know whether things are slow just because it has to recache every RAW file on each access or because you have some other issue.

     

    Render 1:1 previews. It does the cache also

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 3:26 PM   in reply to B r e t t

    Man....I'm confused. I'm on a Mac, OSX 10.6.8 and always shoot and convert RAW CR2 files to DNG (Canon 5Dmk2) when importing to LR. I set my ACR cache to 35.0 GB and also purged it.

     

    I edited a bunch of photos and synchronized them, just to make sure I had some changes. I generated some standard previews and also half a dozen 1:1 previews. My cache is totally empty....as in "NADA". There is not a single file there. I double checked to make sure I had the right folder and drive. Could the files be hidden or invisible? Could it be that I am shooting DNG files?

     

    Even on the 1:1 previews, there is a delay when showing the image at 100% magnification. Going from one image to the next initially shows the image sharply, but just for a split second, and then it defocuses as if there was no cached preview at all. After 2-3 seconds, it comes back into sharpness. This is a brand new catalog (I decided to start from scratch, since the original transfer was a total dog).

     

    Does this sound right??

     

    Thx,

     

    Lou

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 4:19 PM   in reply to Lou Dina

    I've been complaining about this for years - it's how Lightroom has always worked.

     

    The develop module shows you, if not cached in ram, but cached on disk (ACR):

     

    1. The present Library preview: good.

    2. An initial develop view based on the cache: bad.

    3. A final develop view: best.

     

    If I had my way, it would just skip phase 2 altogether, unless there is no library preview avaliable.

     

    Better still, invent a disk caching scheme that does more good - ACR caching makes for only very minimal performance improvement, at best < 15%.

     

    Note: if cached in ram, then it's lightening fast.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 4:29 PM   in reply to Lou Dina

    Lou,

     

    I experienced something similar. Nothing appeared in the cache folder.

     

    Try hitting the "Choose" button in your preferences and then choosing the folder that you want your cache kept in. I did that and that folder started filling up as I brought various raw files up in the Develop Module.

     

    Hal

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 5:22 PM   in reply to Hal P Anderson

    Try hitting the "Choose" button in your preferences and then choosing the folder that you want your cache kept in. I did that and that folder started filling up as I brought various raw files up in the Develop Module.

     

     

    Hal, thanks for the comment.

     

    I did select "Choose" before I posted and again after reading your message (just to be sure), but nothing at all is being written to my cache folder, even after editing images. These are all DNG files.

     

    Are you on a Mac or PC?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 5:28 PM   in reply to Lou Dina

    Lou,

     

    PC, and I did it with NEF files. If you have DNG and created them with fast load data, I think the ACR cache won't be used.

     

    Hal

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 5:33 PM   in reply to Lou Dina

    Lou,

     

    I'd be very interested in the results if you benchmark improvements resulting from fast-load data.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 6:02 PM   in reply to Rob Cole

    Just a reminder that the ACR cache is used in a few places, mostly for read only. All you have to do is scroll through grid mode in the Library against some photos you haven't looked at in awhile, and you will see new entries. If you are like me and have a 4x4 grid in the library as a default, you will see 16 new cache files. You will know it is doing this if the grid previews are greyed-out at first.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 6:09 PM   in reply to clvrmnky

    Sounds like there has been some significant new handling of ACR cache. It used to only be used in develop module (or exports) - big entries written (or read) when switching to develop view, or creating 1:1 previews using Library menu, but otherwise never created in Lib module.

     

    Now it's creating much smaller files, when browsing in Lib module too...

     

    How about one of you go-getters mastermind, benchmark, and report, eh?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 7:03 PM   in reply to clvrmnky

    Hey all....thanks for the responses.

     

    First, I knew nothing about "fast load data" for DNG files. I looked in my LR4 Prefs and found that I do have fast load data checked for DNG files, but I am not sure when that happened. I assume it is checked by default when you install LR4. However, most of my DNG files were created when importing raw files using LR2 and LR3. I typically import all my images into my "5D Images" folder for initial review, and after playing with these images for a few days or weeks, I move them to other folders for final storage and organization. 

     

    I can click view any image in my 5D Images folder, in either the Library or Develop module, and no entries are written to my cache file—not a single one.

     

    Next, I went to Library mode and navigated to different folder, then clicked through some images, and every DNG file I clicked on did then write to the cache file. I'm not sure why that doesn't happen in my 5D Import folder—maybe because the images are more current, have had previews recently created, etc? Beats me. Anyway, the average size of the cache entries seems to be about 400kb in size, plus or minus about 50kb.

     

    If I set my magnification level to 100% view (1:1) and move from one DNG image to another, it seems to take 2-3 seconds for a sharp final image to appear. I'm using a 240 GB SSD drive for programs, OS, LR catalog & previews and my cache at the moment. All my 40,000 images are on a different 7200 RPM, 1TB HDD. I'm running OSX 10.6.8, 16 GB RAM, (two) 2.26 4-core GHz processor (total of 8 cores). Sometimes when I navigate back to a previously cached image and click on it again, it comes up sharp instantaneously, but sometimes it takes another 2-3 seconds to display sharp (all this is at 1:1 preview).

     

    In the Develop module, a previously cached image (or one where I created 1:1 preview manually) will immediately come up sharp at 1:1 magnification, but then it gets fuzzy  for 2-3 seconds while the little hour glass spins, and returns to being sharp again. That's crazy. I am not sure what is going on, but wanted to report back on what I am finding.

     

    Lou

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 7:15 PM   in reply to Lou Dina

    Thanks for the update Lou.

     

    How long does it take to get a finished develop view with fast-load data disabled?

     

     

    Lou Dina wrote:

     

    1: Sometimes when I navigate back to a previously cached image and click on it again, it comes up sharp instantaneously...

     

    2: In the Develop module, a previously cached image (or one where I created 1:1 preview manually) will immediately come up sharp at 1:1 magnification, but then it gets fuzzy  for 2-3 seconds while the little hour glass spins, and returns to being sharp again. That's crazy. I am not sure what is going on, but wanted to report back on what I am finding.

     

    See 8 posts up for the answer to these questions (1: its cached in ram, 2: lib preview - crude dev rendering - final dev rendering).

     

     

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 7:23 PM   in reply to Rob Cole

    Thanks, Rob.

     

    Is there any way to keep it cached in RAM so it is faster and skips that slow, fuzzy 2nd stage? I have 16 GB RAM, 35 GB dedicated to ACR Cache (most of which is empty since I recently purged the cache) and a 240 GB SSD drive that has about 130 GB free.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 7:57 PM   in reply to Lou Dina

    Hi Lou - no way to speed it up that I know of, and thus I complain too...

     

    How much of a speed-up are you getting from the fast-load data? Anybody else noted a difference with/without fast-load data?

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 28, 2012 8:16 PM   in reply to Rob Cole

    Thanks, Rob. I was afraid that would be your answer.

     

    "How much of a speed-up are you getting from the fast-load data? Anybody else noted a difference with/without fast-load data?"

     

    I'm not sure how to answer your question. I am assuming, (perhaps incorrectly), that only the DNG images I have imported since the fast load data checkbox was checked use the fast load data and have the slightly larger file size. I am guessing that all my previously imported/converted CR2 > DNG files are slightly smaller size and do not have the fast load data built into them. How can one tell?

     

    At any rate, I just imported three raw images from my 5Dmk2, and told LR4 to convert to DNG and create 1:1 previews upon import. (The import was pretty slow too). When moving between images displayed at 1:1 maginification in the Develop module, the new files (imported with fast load data and 1:1 previews) take about 1-1/2 to 2 seconds to show up sharply. Some older DNG images imported with LR3 take 3-4 seconds to show up sharply. Not very scientific. All these DNG files have a file size in the 20-25 MB range.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 1:57 AM   in reply to Lou Dina

    Hi All,

     

    I have exactly the same problem that Lou had . NO writes to the cache at all. I've purged the cache, set it to 50Gb, chosen a location on a different local drive to the catalog and images, made changes to 150 DNGs with fast load data, re-written 1:1 previews for those 150 files and still no writes to the cache.

     

    This has only been happening since I installed the trial, prior to that, with the same set-up, I had LR4beta installed and it was writing to the cache as it always had done with 1,2 and 3! I didn't uninstall the beta before installing the trial.

     

    Nex step going to try to re-install and see what happens!

     

    Intel dual processor 3GHz, 8Gb RAM (max available on this motherboard) + 16Gb readyboost RAM, Win7 64bit, OS,LR and catalog on 7200rpm hdd with 30% space, cache on separate 320Gb drive 7200 rpm, DNGs on 640Gb 7200rpm hdd.

     

    Message was edited by: paul-w - added extra info

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 3:52 AM   in reply to paul-w

    Instead of re-installing I dismounted the ReadyBoost RAM and again purged the cache, made a change to about 150 7.5Mb DNGs and again created 1:1 previews. Let that process finish and then checked the cache. Still no writes.

     

    Next stop re-install and see what happens

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 4:57 AM   in reply to paul-w

    I apologize in advance if this has already been answered, but has anybody confirmed that the cache is still supposed to be used for DNGs when fast-load data is enabled?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 5:07 AM   in reply to Rob Cole

    In post 37 above Hal said he didn't think that the cache would be used with DNGs and Fast Load Data. But nobody has confirmed this.

     

    Still reinstalling and generating 1:1s of 200+ files. Will get back as soon as I can.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 5:11 AM   in reply to Lou Dina

    Lou Dina wrote:

     

    Thanks, Rob. I was afraid that would be your answer.

     

    "How much of a speed-up are you getting from the fast-load data? Anybody else noted a difference with/without fast-load data?"

     

    I'm not sure how to answer your question. I am assuming, (perhaps incorrectly), that only the DNG images I have imported since the fast load data checkbox was checked use the fast load data and have the slightly larger file size. I am guessing that all my previously imported/converted CR2 > DNG files are slightly smaller size and do not have the fast load data built into them. How can one tell?

     

    At any rate, I just imported three raw images from my 5Dmk2, and told LR4 to convert to DNG and create 1:1 previews upon import. (The import was pretty slow too). When moving between images displayed at 1:1 maginification in the Develop module, the new files (imported with fast load data and 1:1 previews) take about 1-1/2 to 2 seconds to show up sharply. Some older DNG images imported with LR3 take 3-4 seconds to show up sharply. Not very scientific. All these DNG files have a file size in the 20-25 MB range.

     

    Hi Lou,

     

    Since I don't use DNG, I haven't done my homework, but one way to check:

     

    1. Enable fast-load data.

    2. Make a copy of a virginal photo file (outside of Lightroom).

    2. Import as new photo.

    3. Check time to switch to photo after it's already been selected once in develop view, and therefore the fast-load data has been written, but select a half dozen other photos first, to assure develop module is not fetching develop view from ram.

    4. check file size.

     

    5. Disable fast-load data.

    6. Re-import virginal copy of same photo again, but with different filename.

    7. Check time to switch to photo after it's already been selected once in develop view, but select a half dozen other photos first...

    8. check file size - it should be considerably smaller than in the previous test, since it definitely won't have the fast-load data.

     

    The difference between times is the performance advantage of using fast-load data.

     

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 5:33 AM   in reply to paul-w

    Paul-w....

     

    Whenever I display ANY DNG image in my main import folder (this is the folder into which I always import my images for temporary evaluation), I do NOT get any writes to cache. Some of these images were imported after LR4 was installed with fast load data enabled. Some of these images were imported months ago using LR3, so fast load data was not enabled. All are DNG files (no proprietary raw files....ie, CR2). There are some PSD, TIf and JPG files, but they do not trigger a write to cache. Even the DNG files do not trigger a write to cache.

     

    Since LR4 was performing so sluggishly, I did at one time create 1:1 previews for my entire import folder. Perhaps this is the reason nothing is written to cache? I'm not sure. Like I said, some were imported and converted to DNG by LR4 with fast load enabled, and some were imported and converted to DNG by LR3. But no files in this folder trigger a write to cache, not even DNG files.

     

    If I switch to another folder, clicking on a DNG file DOES trigger a write to cache. In these other folders did not manually create 1:1 previews. I am guessing, perhaps mistakenly, that manually creating 1:1 previews writes this data to the LR image preview file and perhaps eliminates the need to use cache. PSD, TIF, JPG and other formats don't seem to trigger a write to cache no matter where they are located. I don't have any native CR2 files on my machine, so cannot comment on them.

     

    Just wanted to be clear what my situation is, since it may be different from yours. Even with 1:1 previews manually generated and previously cached images, I still find the display at 100% magnification to be fairly slow. If an image was just viewed (within the last half dozen images), it pops up fast and in focus. But, even if I created 1:1 previews and it was cached, it comes up in 2-4 seconds if viewed awhile back.

     

    Lou

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 2:11 PM   in reply to Lou Dina

    I think I've been seeing the same sort of problem as Lou for a considerable time. In fact it was slow with LR3 as well and never gave the impression that data was being saved to the cache, even though the designated folder was full of files. Curiously if I try to view the same images large inside Bridge they pop into sharp focus at large size in a fraction of a second but in Lightroom (now version 4) it takes 2-3 seconds. I'm on a new 8 Core Mac Pro with 32 Gigs of Ram and it's not really any better than on my 5 year old iMac.

     

    I've just tried purging the cache, which I've never tried before and I've allowed up to 200 gigs of space but the drive itself has over 600 gigs of space left and the cache was only 8 gigs.

     

    All files from my 1DsII are converted to DNG with 1:1 previews created at time of import but it just doesn't feel like that data is being properly saved. This is a catlogue that was upgraded from LR3 and I just selected all the images with the idea of rendering 1:1 previews again. For some reason it picked out 639 images from over 11,000 that needed rendering. Once that's finsihed I'll try to update DNG Previews & Metadata. I'm clutching straws here because I just don't know why it's like this.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 2:28 PM   in reply to ashleykaryl

    It's really strange but after clearing the cache most images are popping into sharp focus quickly now but some still take a few seconds. Do I try re-rending previews for the whole lot?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 3:26 PM   in reply to ashleykaryl

    Ashley,

     

    I'm not finding much improvement no matter what I do. The best improvement I got was creating a new catalog from my files. Rendering new previews, clearing cache, etc, sometimes helps and sometimes it doesn't. I think most of the problem is poor coding, poor caching, poor usage of computer power and cores, probably some inefficient algorithms, etc. Why it takes 3-5 seconds for sharpening to show up when toggling the sharpening on and off is a mystery to me. I'm sure some tweaking will improve performance somewhat, but Adobe needs to address the bottlenecks at the coding level. It's sad that paying consumers have to jump through hoops to get LR4 to perform even acceptably. I have loaded LR4.1 RC1, which is also a beta release, but don't see much difference. It's much slower than LR3.6. Hopefully, they will get it right soon and address these bottlenecks.

     

    I did a paid job today and uploaded about 75 images from my 5Dmk2. I used LR4 to upload, convert to DNG, had fast load data turned on, and had it create 1:1 previews. In the develop module, there is still an unacceptable delay when moving from image to image. Library module is fast, but develop module is slow. I have plenty of HDD space, reasonably fast drives, SSD for OS, programs and my cache, 16 GB RAM and 8 cores. It's not the fastest computer on the block, but it's no dog either. I pity the poor people with older computers.

     

    Given some time, I hope Adobe finds a way to process these images efficiently.

     

    Lou

     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points