Latest or all posts or last 15, 30, 90 or 180 days.
Capacities up to 56TB and speeds up to 1527MB/s

Talking around the real problem—can’t make use of my RAM

Scott Byer’s blog at blogs.adobe.com is a case of more is less in the discussion of 64-bit applications. He starts out with the outlandish claim that “applications don’t allocate RAM”—which is both true and false (depending on how strictly you define “RAM” and “allocate”). See sidebar.

His statement obfuscates the discussion, while talking around the real issue with Photoshop’s performancethe sluggish swapping of image pixels, history, etc to and from the hard disk for lack of adequate virtual memory (backed by real physical memory).

Today, a 32-bit Photoshop can’t allocate more than 3GB of virtual memory, even if there is 16GB of physical memory installed! So you spend $5000 on 16GB of Mac Pro memory, and Photoshop uses a paltry 3GB—now that’s a bummer. As a practical matter, Mac OS X 10.4 makes it very difficult to write a 64-bit Photoshop, but Mac OS X 10.5 might change that with the availability of all the 64-bit libraries required to produce a 64-bit application (32-bit libraries will still exist). I haven’t followed “Leopard” closely enough to understand if Apple will finally put this problem to rest.

Photoshop CS2 and CS3 exhibit the sluggish disk-swapping behavior today whenever opening a large file with numerous layers, large enough history, etc—all while another 3-4GB of my 8GB memory sits idle (except for its marginal value for disk caching). If one were to stuff 16GB of memory into a Mac Pro, and if there were a 64-bit Photoshop, it could allocate 14 GB or so of virtual memory, most or all of which Mac OS X could readily assign to real physical memory—goodbye disk/memory swapping.

A true 64-bit Photoshop (one having a 64-bit address space) could allocate virtual (aka “pretend”) memory sufficient for any conceivable image that could be stored on a hard disk. Coupling that with sufficient physical memory “backing” the virtual memory, performance-robbing memory<=>disk<=>memory swapping would be eliminated, or at least minimized to an insignificant amount.

Byer’s “lack of any sort of other performance win” argument is specious—the performance gain of keeping the image and associated information in virtual memory (backed by real physical memory) for real-time response is huge compared to having to swap to disk. Any Photoshop user who has experienced Photoshop disk swapping knows this to be true to an extreme—try editing a 1GB image with only 512MB of memory in the system.

To say otherwise is just an excuse—all the yack about how pointers are now 64 bits instead of 32 bits, 64 bit math, etc is a distraction. The real issue is that the code base is probably like most code bases—full of latent correctness bugs that don’t manifest themselves only because pointers and other scalar quantities happen to remain 32 bits. Recompile as a 64-bit application, and all those latent correctness bugs suddenly appear; code that worked fails when 32-bit pointers now occupy 64 bits, data structures suddenly are a different size, optimized loops that made assumptions about sizes now fail, plugins and their APIs break, etc.

So yes, it is a real challenge to move to a 64-bit application. Adobe would have to support multiple combinations of Intel/PowerPC at 32/64 bit. But Adobe could also keep the PowerPC and Intel version at 32 bits for Mac OS X 10.4, and move to 64 bits only for Intel and Mac OS X 10.5. I think that is an acceptable compromise, and it’s 3 builds versus 2 today. The bugs exposed by building a 64-bit version are still bugs, even if they don’t manifest themselves in a 32-bit version, and fixing them will make for a superior code base in the long run. And a thorough test suite, a requirement for releasing any quality software application, should make short work of testing 95% of Photoshop functionality for each version.

The justification for all this is that there is a tiny 64-bit user base—zero for Mac OS X 10.4 and very little for Windows. But with Mac OS X 10.5 expected to ship about the same time as Photoshop CS3, the justification seems a little stretched—the high-end Mac OS X user base is likely to switch over rapidly to 10.5, and any Photoshop user whose time is money will quickly switch if promised a big speedup for huge files—witness the frustration in many online forums. Still, Byer makes a solid point for the next 9 months or so, but by fall of 2007, there are likely to be millions of Mac OS X 10.5 users out there.

 


See also Nikon wishlist

diglloyd Inc. | FTC Disclosure | PRIVACY POLICY | Trademarks | Terms of Use
Contact | About Lloyd Chambers | Consulting | Photo Tours
RSS Feeds | Twitter
Copyright © 2019 diglloyd Inc, all rights reserved.