Live data from Hacker News

Global Kernel Locks in APFS

gregoryszorc.com

31–40 of 47 posts

Re: Global Kernel Locks in APFS

#31
post #28
post #17

Earlier quoted context omitted.

What makes you think it’s a rush job? Perhaps it’s just the lawyer reviews holding it up.

My personal guess is that they wanted to release the printed spec before they released the code. The spec has now been released, the 10.14 source has not, maybe apfs.kext will be in the 10.14 source drop. (also, HFS+ and its fsck have always been open-source with OS X)

HFS+ was first released for Mac OS 8.1 in 1998. The earliest source code I see is from Mac OS X 10.0, which was released in March of 2001 (not sure when the source was released). The first iPod was released in October of 2001 which used HFS+. I imagine by the time that code was released it had been battle hardened quite a bit.

Re: Global Kernel Locks in APFS

#32

Earlier quoted context omitted.

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Unfortunately not the biggest one though. I too have a old 2012 macbook pro with hdd. While it was flying under snow leopard it now grinds to a halt every time i open any app or document. Already ordered an ssd but still dreaming of downgrading it back to snow leopard.

Might also be that newer versions of macOS need more RAM than Snow Leopard and therefore less is available for filesystem caches.

Re: Global Kernel Locks in APFS

#33

Earlier quoted context omitted.

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Unfortunately not the biggest one though. I too have a old 2012 macbook pro with hdd. While it was flying under snow leopard it now grinds to a halt every time i open any app or document. Already ordered an ssd but still dreaming of downgrading it back to snow leopard.

Could be that the rewritten areas for the OS are showing some wear, requiring multiple reads.

Cause and effect is ambiguous because it is so transparent, one doesn’t know what interrupts where are taking the most time.

Re: Global Kernel Locks in APFS

#34
post #32

Earlier quoted context omitted.

Unfortunately not the biggest one though. I too have a old 2012 macbook pro with hdd. While it was flying under snow leopard it now grinds to a halt every time i open any app or document. Already ordered an ssd but still dreaming of downgrading it back to snow leopard.

Might also be that newer versions of macOS need more RAM than Snow Leopard and therefore less is available for filesystem caches.

This might be a factor although IIRC there has been some work after Lion (Mavericks?) where OS RAM usage went down significantly. It was really noticeable on 2GB VMs.

Re: Global Kernel Locks in APFS

#35
post #34
post #32

Earlier quoted context omitted.

Might also be that newer versions of macOS need more RAM than Snow Leopard and therefore less is available for filesystem caches.

This might be a factor although IIRC there has been some work after Lion (Mavericks?) where OS RAM usage went down significantly. It was really noticeable on 2GB VMs.

Mavericks introduced compressed memory, so that may be the improvement you’re talking about.

Re: Global Kernel Locks in APFS

#36

I wonder if this is why recent versions of macOS performs so poorly on old HDD-based MacBooks. The difference between my work's 2012 MacBook (HDD) and my personal 2015 (SSD) MacBook is like night and day. Most apps open in a second on my SSD MacBook yet take up to a minute to open on my employer's HDD MacBook. It's not just this MacBook, I also see the same on a work iMac as well. Such a shame as these older machines…

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Maybe it's analoguous to the old adage "what intel giveth microsoft taketh away". As soon as a critical mass has SSDs, no one cares to test regressions with spinning disk systems...

Re: Global Kernel Locks in APFS

#37
post #36

Earlier quoted context omitted.

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Maybe it's analoguous to the old adage "what intel giveth microsoft taketh away". As soon as a critical mass has SSDs, no one cares to test regressions with spinning disk systems...

Actually, bad I/O patterns are still bad with SSDs. They're just less bad. So, while a HDD user maybe has to wait a week for your app to do its thing, the SSD user may only need to wait an hour or two. But if you bothered to do things the right way, either could be done in a few minutes.

Re: Global Kernel Locks in APFS

#38

Earlier quoted context omitted.

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Unfortunately not the biggest one though. I too have a old 2012 macbook pro with hdd. While it was flying under snow leopard it now grinds to a halt every time i open any app or document. Already ordered an ssd but still dreaming of downgrading it back to snow leopard.

Microsoft Windows used to be notorious for slowing down over time. A fresh OS install would restore performance. Many would recommend doing a fresh Windows install yearly to maintain performance.

I have a late 2012 MacBook Pro Retina with a SSD and unfortunately notice the same decreased performance over time with macOS. A fresh OS install breaths new life into the machine.

When you get your SSD do a fresh OS install instead of restoring the complete HD to the SSD.

Re: Global Kernel Locks in APFS

#39
post #36

Earlier quoted context omitted.

Replacing an HDD with an SSD really is a night-and-day kind of difference for any laptop I've ever seen, regardless of the OS or filesystem. IMO, that's likely to be a much bigger factor than the filesystem.

Maybe it's analoguous to the old adage "what intel giveth microsoft taketh away". As soon as a critical mass has SSDs, no one cares to test regressions with spinning disk systems...

One of the large World of Tanks (online game) patches last year turned 10 second map load times into full minute wait for HDD owners ;-) SSD users didnt notice a thing. Some idiot with dev workstation (xeon, high xx GB ram, NVMe storage) decided to rearrange data structures in files loaded every game round, and nobody has time for testing apparently.

Re: Global Kernel Locks in APFS

#40
post #38

Earlier quoted context omitted.

Unfortunately not the biggest one though. I too have a old 2012 macbook pro with hdd. While it was flying under snow leopard it now grinds to a halt every time i open any app or document. Already ordered an ssd but still dreaming of downgrading it back to snow leopard.

Microsoft Windows used to be notorious for slowing down over time. A fresh OS install would restore performance. Many would recommend doing a fresh Windows install yearly to maintain performance. I have a late 2012 MacBook Pro Retina with a SSD and unfortunately notice the same decreased performance over time with macOS. A fresh OS install breaths new life into the machine. When you get your SSD do a fresh OS install…

Or just clean out your random LoginItems and kexts and whatever now and then. Check Activity Monitor and uninstall anything running that you don’t need.
Post reply on HN