News for hackers. Stuff that matters.
Re:Apple Silicon M1: A Developer's Perspective by steipete on Saturday November 28, 2020 @12:40PM (#25238994)
I’ve read the reports but I’m not seeing this. Normal workflow and already over 11 GB that swaps.
Re:Apple Silicon M1: A Developer's Perspective by chongli on Saturday November 28, 2020 @12:50PM (#25239065)
I think the point is that memory bandwidth and SSD bandwidth and latency have improved so much that M1-based Macs are really fast at swapping. Combine that with compression (which macOS has done for a long time) and I could imagine iPadOS-like performance.

For normal users (such as people not compiling V8), swapping may be virtually unnoticeable.

Re:Apple Silicon M1: A Developer's Perspective by kllrnohj on Saturday November 28, 2020 @02:28PM (#25239818)
Macs have had fast SSDs for a while and as you say compression has also been done for a long time. M1 made no difference whatsoever to memory usage. The posts similar to above seem to just be an attempt to fanfic-justify what's an actual regression for some.

For many people 16GB is absolutely enough, and Apple had to start somewhere. But if 16GB wasn't enough for you yesterday, it isn't enough for you now.

Re:Apple Silicon M1: A Developer's Perspective by chongli on Saturday November 28, 2020 @04:49PM (#25240846)
The reviews of the M1 MacBook Air and Pro show a dramatic increase in SSD read/write speeds over the 2020 Intel models.
Re:Apple Silicon M1: A Developer's Perspective by kllrnohj on Saturday November 28, 2020 @06:48PM (#25241605)
Do you have a link? MKBD just said it was "slightly faster" than his comparison system and the numbers for the M1 appear to be around 3GB/s reads and 2.7GB/s writes in disk speed test, which is pretty typical of a last generation NVME drive (current pcie gen4 drives are hitting 7GB/s reads & 5GB/s writes)
Re:Apple Silicon M1: A Developer's Perspective by chongli on Sunday November 29, 2020 @08:27AM (#25245003)
which is pretty typical of a last generation NVME drive

Those numbers are about 2-3x as fast as what my 2020 Intel-based MacBook Air gets.

Re:Apple Silicon M1: A Developer's Perspective by kllrnohj on Sunday November 29, 2020 @10:12AM (#25245538)
Then sounds like Apple put some really garbage SSDs in the 2020 Intel-based Air, not sure what you're looking for here?

But 2-3x won't change swap from grinding to a halt to perfectly smooth, either. It's still over 20x slower than RAM.

More significant for swap usage though is random reads and read latency, neither of which are going to be particularly impressive on the M1's SSDs. You need something like Optane to make that a compelling case.

Re:Apple Silicon M1: A Developer's Perspective by foldr on Saturday November 28, 2020 @03:11PM (#25240133)
It's possible that M1 has enabled the use of better memory compression algorithms.
Re:Apple Silicon M1: A Developer's Perspective by rsynnott on Saturday November 28, 2020 @01:16PM (#25239287)
I do wonder if it’s taking advantage of the cheap CPU power and memory bandwidth to be much more aggressive about memory compression. That could reduce swapping for some workloads, though probably not a v8 build.
Re:Apple Silicon M1: A Developer's Perspective by shawnz on Saturday November 28, 2020 @04:22PM (#25240663)
What do you mean exactly? It is normal for swapping to happen even if you are using less than the physical memory, so as to trade rarely-used RAM for frequently-used disk cache which improves overall throughput
Re:Apple Silicon M1: A Developer's Perspective by aledalgrande on Saturday November 28, 2020 @12:44PM (#25239016)
Thanks for reporting! Bummer, for me I think I will have to wait for an M2.