All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: diglloyd.com photography and WindInMyFace.com

Thank you for buying via links and ads on this site,
which earn me advertising fees or commissions.
As an Amazon Associate I earn from qualifying purchases.

Other World Computing...
B&H Photo...
Amazon
As an Amazon Associate I earn from qualifying purchases.
Memory Upgrades for 2019 Mac Pro - Save Up to 65% vs Factory Costs
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$2798 $2198
SAVE $600

$348 $278
SAVE $70

$389 $299
SAVE $90

$322 $222
SAVE $100

$2098 $1298
SAVE $800

$1480 $1080
SAVE $400

$322 $222
SAVE $100

$1480 $1080
SAVE $400

$1299 $949
SAVE $350

$330 $330
SAVE $click

$498 $398
SAVE $100

$180 $140
SAVE $40

$1902 $1400
SAVE $502

$500 $275
SAVE $225

$180 $136
SAVE $44

$2997 $2497
SAVE $500

$3498 $2998
SAVE $500

$370 $280
SAVE $90

$4899 $4499
SAVE $400

$1000 $700
SAVE $300

$1699 $1149
SAVE $550

$280 $230
SAVE $50

$1899 $1499
SAVE $400

$4499 $3499
SAVE $1000

$2198 $1998
SAVE $200

$3998 $3498
SAVE $500

$1799 $1649
SAVE $150

$18599 $16599
SAVE $2000

$1149 $799
SAVE $350

$650 $450
SAVE $200

$199 $119
SAVE $80

$280 $200
SAVE $80

$1399 $1399
SAVE $click

$1199 $779
SAVE $420

$250 $200
SAVE $50

$1699 $1149
SAVE $550

$200 $125
SAVE $75

$70 $40
SAVE $30

$120 $30
SAVE $90

$189 $159
SAVE $30

$3899 $1499
SAVE $2400

$2999 $1999
SAVE $1000

$1699 $849
SAVE $850

$1698 $1198
SAVE $500

$1149 $799
SAVE $350

$1399 $1399
SAVE $click

$1498 $998
SAVE $500

$2797 $2497
SAVE $300

$280 $230
SAVE $50

$799 $449
SAVE $350

$899 $549
SAVE $350

$1699 $1149
SAVE $550

OWC Black Friday Deals

Upgrades, sound, iPad/iPhone, computing, storage, more!

Does macOS Have a Rare but Stupefyingly Nasty Multithreading Bug in the Unified Buffer Cache?

macOS caches files up the wazoo, using all available memory to do so. On my system with 384GB memory, I have seen it cache nearly 350GB, an idiotic performance bug that degrades everything else with the system.

With 350GB cached, it can take up to 90 seconds to clear the cache (!!!), with program performance being hurt everywhere else as the system pauses to reclaim the cache. You can see this as apps stutter or are delayed at launch or any similar circumstances. The greater the number of files in the cache, the greater the performance hit, e.g., 250K files occupying 350GB hits it hard.

Performance is one thing but incorrect operation is the kiss of death

I hope I have just repeatedly had hallucinations and/or that there is a perfectly good explanation I have not thought of. But I didn’t write multithreaded code for 30 years as a professional software engineer to be easily fooled.

I’ve seen the following behavior with several programs now and I’ve seen it several times in several months. This bug is SO BAD with potential consequences so severe that I thought I must have imagined it when I had seen it before.

It’s a simple behavior, but I don’t know what makes for a reproducible test case—it happens when it happens but what triggers it is a mystery:

  1. Make use of a file in Program A. For example, run a script in Terminal.
  2. Save a CHANGE to the file in Program B, such as BBEdit, Dreamweaver, etc.
  3. Make use of the file again.
  4. Observe that Program A sees the OLD FILE, the one before the save.

Two days ago, I watched a script fail to update as I repeatedly invoked it and repeatedly hit Save in BBEdit to confirm I had saved the file. That it was wrong was obvious: an output folder name repeated a few hundred times. NO CHANGE as seen by Terminal as I repeatedly invoked the script and saw it fail over and over with the wrong folder name, the name having been changed in BBEdit. I switched back and forth several times to save and try again—NO CHANGE. The file was apparently cached somewhere (presumably by macOS though I cannot be certain).

The seriousness of a bug like this cannot be overestimated. It bears on data destruction for starters, but also could be a serious security hole.

I am having the same problem EVERY DAY saving files in DreamWeaver and then having the new page not show up for a second or two or half a minute; I often have to make a change and save again or again... 2 or 3 or even 4 times.

The frequency of this increased with macOS Catalina, but I saw it in Mojave too.

I suspect that it is a multithreading bug since I now have 16 CPU cores in the 2019 Mac Pro (28 cores starting today). Therefore, any threading bugs are likely to be far worse with 16 cores versus 8 as on the 2019 iMac 5K.

Paul W writes:

I've seen this bug many times since 10.12 at least. Frustratingly annoying. Sometimes I reboot, sometimes I wait until I start seeing the "correct" copy. Sometimes I copy the file to a new file and work with that. I've never bothered to try to diagnose it further. Also, I spent lots of time at the command line.

DIGLLOYD: I keep wondering if something else is involved than the unified buffer cache, but I don't quite see how.

B&H Photo Black Friday Deals

Photo, video, television, far more!.
OWC Envoy Pro EX SSD
Blazingly fast Thunderbolt 3 SSD!

Up to 4TB capacity, USB-C compatible.

USB-C model also available


Great for travel or for desktop!
OWC Thunderblade Thunderbolt 3 SSD

Blazing fast, up to 16TB.

YEE HAH!



√ No more slow and noisy hard drives!
OWC Accelsior 4M2 PCIe SSD
6000 MB/sec!
Mac or PC.


Ideal for Lightroom, Photoshop, video.
Capacity up to 16TB!
OWC Envoy Express

World’s first Thunderbolt 3 M.2 NVME SSD enclosure.

Super fast, bus-powered, 3.3 oz, DIY easy, rugged and compact!


See also OWC Express 4M2
√ No more slow and noisy hard drives!

Save the tax, we pay you back, instantly!
View all handpicked deals...

Sony WH-1000XM4 Wireless Noise-Canceling Over-Ear Headphones (Black)
$348 $278
SAVE $70

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__