News for hackers. Stuff that matters.
Re:Apple introduces M4 chip by dmitrygr on Tuesday May 07, 2024 @01:16PM (#40288616)
> The secret is heavy reliance on swap

You are entirely (100%) wrong, but, sadly, NDA...

Re:Apple introduces M4 chip by lynndotpy on Tuesday May 07, 2024 @01:37PM (#40288928)
I do admit the "reliance on swap" thing is speculation on my part :)

My experience is that I can still tell when the OS is unhappy when I demand more RAM than it can give. MacOS is still relatively responsive around this range, which I just attributed to super fast swapping. (I'd assume memory compression too, but I usually run into this trouble when working with large amounts of poorly-compressible data.)

In either case, I know it's frustrating when someone is confidently wrong but you can't properly correct them, so you have my apologies

Re:Apple introduces M4 chip by ethanwillis on Tuesday May 07, 2024 @01:26PM (#40288762)
How convenient :)
Re:Apple introduces M4 chip by sudosysgen on Tuesday May 07, 2024 @01:33PM (#40288865)
Memory compression isn't magic and isn't exclusive to macOS.
Re:Apple introduces M4 chip by dmitrygr on Tuesday May 07, 2024 @02:08PM (#40289350)
I suggest you go and look HOW it is done in apple silicon macs, and then think long and hard why this might make a huge difference. Maybe Asahi Linux guys can explain it to you ;)
Re:Apple introduces M4 chip by sudosysgen on Tuesday May 07, 2024 @02:28PM (#40289643)
I understand that it can make a difference to performance (which is already baked into the benchmarks we look at), I don't see how it can make a difference to compression ratios, if anything in similar implementations (ex: console APUs) it tends to lead to worse compression ratios.

If there's any publicly available data to the contrary I'd love to read it. Anecdotally I haven't seen a significant difference between zswap on Linux and macOS memory compression in terms of compression ratios, and on the workloads I've tested zswap tends to be faster than no memory compression on x86 for many core machines.

Re:Apple introduces M4 chip by monsieurbanana on Tuesday May 07, 2024 @01:30PM (#40288824)
Regardless of what you can't tell, he's absolutely right regarding Apple's claims: saying that a 8gb mac is as good as a 16gb non-mac is laughable.
Re:Apple introduces M4 chip by Zanfa on Tuesday May 07, 2024 @03:59PM (#40290806)
My entry-level 8GB M1 Macbook Air beats my 64GB 10-core Intel iMac in my day-to-day dev work.
Re:Apple introduces M4 chip by dmitrygr on Tuesday May 07, 2024 @02:08PM (#40289360)
That was never said. They said 8gb mac is similar to a 16gb non-Mac