by Jonnax · 5y ago · 0 comments
But at the same time. 8GB of ram isn't a lot.
Especially when multi tasking.
I know there was a lot of talk about Apple's directly soldered RAM being super efficient.
But if you've got 30 tabs open, playing music and using Photoshop. No amount of optimisation is going to prevent swap usage.
Still though. Terrabytes of usage must be a bug.
Well, whoops. I guess there are some side effects.
Rules of software engineering and engineering in general: you can't break Einstein. RAM is generally slow to begin with, but the disk is slower. RAM should be plenty to be used as disk cache, not vice versa. (edit: omitted the last sentence)
You are not wrong in 2021 but this comment took me back to late 1900s-early 2000s when a few hundred MB of RAM was premium :). How far have we come!!
Its pretty disappointing how little advancement has been made in RAM in recent years. It seems like everything should come with at least 16GB now with 32GB being readily available, but I guess noone is working on the cost of desktop/laptop memory.
2015, MBP13, 8GB ram I bought for $1900.
2018, MBP13, 16GB, $2200.
2020, MBP13, 32GB, $2500.
Pretty sad improvements for 9 years. But the form factor did improve...
So it sounds like Apple has made very little progress in arena.
Running Linux on it. Native apps are okay. Firefox is okay unless I over do it with tabs. Forget about electron apps.
You can still get by on 8GB if you're a lighter user. It's unpleasant for me, but my grandma literally only uses a browser so it works for her.
Hahahahahahahahahaha....
https://www.computerworld.com/article/2534312/the--640k--quo...
I wouldn’t advise anyone to get 128GB (or more) “just in case”. If they have a special need case, then, sure , otherwise no.
Patting yourself on the back for gratuitously wasting resources really, really grates on me.
Sure, I can buy a car that gets 10 miles per gallon for my weekly groceries shopping. I can even afford it, it won't break my bank.
But actually being proud of it? Like it's some sort of sign of social and technological progress?
Whew.
However those numbers seem extreme probably some bad tuning or just neglecting to account for the full cost of writing to disk.
If there is a need for swap, install more RAM.
> Terrabytes of usage must be a bug.
Garbage collection setups with relatively large heaps are extra horrid when it comes to memory pattern usage while running full GC... and respectively swap.
Swap occupancy and swap activity are not the same. The former is fine, the latter should be kept small.
You should be able to that in software anyways - instead of loading to memory entirely, all it has to do is memory map the file dump.
About the need to freeze a process (group). I don't quite see how that's useful on a server. On a desktop machine I have never run into such a case where closing the application would not suffice. Is there an example?
Last - using the swap pretty much means no disk cache.
Should, perhaps. But in practice I have had analyzers gobble up more memory than available.
> About the need to freeze a process (group). I don't quite see how that's useful on a server. On a desktop machine I have never run into such a case where closing the application would not suffice. Is there an example?
Long-running renderjob, preempted by a higher-priority one. Technically they're resumable so we could stop them and resume the other one later from a snapshot file but that isn't implemented in the current workers. So as long as the machine has enough ram+swap it's easier to freeze the current job and start the higher-priority one.
> Last - using the swap pretty much means no disk cache.
I don't know all the tunables of the swap subsystem well enough but I have seen swap being used before running out of physical ram. I assume some IO displaced inactive applications.
Actually yes it is.
True, my 3 year old phone has 8GB ram. On a laptop, 8GB is just anemic.
iOS is obviously a lot stricter on background activity than Android but manages to work great on 3-6GB.
I can comfortably do development work on my laptop with 16GB, and until last year was managing mostly okay on a 5 year-old machine with 8GB.
When you factor in the sort of stuff people actually do on a phone, surely 12-16GB is a massive waste? You can make the argument that it will become more useful as the phone ages, but by that point it will have probably stopped receiving software updates.
Things like having a lot of tabs open. Messaging applications, music streaming etc.
It's not required. But instant switching between apps is a nice user experience.
In the same way a 120Hz monitor is a nicer experience but 60Hz is perfectly reasonable.
I don't think it's fair to compare iOS to Android. Android is quite a bit heaver.
I remember reading a quote from someone at Nvidia saying that hardware is much easier to change than software.
And at the end of the day, as consumers we should demand more for our money. Phone's aren't getting cheaper.
The tricky bit here is actually the SIMD instructions since they can be very long and compiler will often go absolutely bonkers on fairly short code.
That said, very little of most RAM usage is the actual instructions running. It's mostly data.
[1] Such as the image on the Wikipedia article https://en.wikipedia.org/wiki/Apple_M1
There's really no meme to trace here; just a popular misunderstanding of semiconductor terminology.
A chip can contain multiple dies.
Usually chips were just discrete packages basically a die that is packaged for integration onto a PCB.
A die is just the bare silicon that has an IC etched into it.
With interposers and modern multi chip packages things are a bit more complicated.
Since the RAM dies are packages they themselves can be defined as chips too while the CPU needs to be integrated to the substrate first.
At this point it’s a question is the CPU+RAM combo can be defined as a chip on its own or is it a hybrid/compound package I would go with the latter.
If the memory and cpu dies / chips would’ve been stacked like say the raspberry pie one I would call it RAM on chip tho.
Maybe it's a good sign someone is half interested and open to learning more.
Apple themselves are responsible for it, all their promotional material for the chip have included unified memory right alongside all the on-die modules
https://www.apple.com/v/mac/m1/a/images/overview/chip_memory...
[1] dice?
Given what they've done with the M1, I highly suspect Apple will do something like that for their higher end machines.
[0] https://www.anandtech.com/show/16148/amd-ryzen-5000-and-zen-...
I'm mildly annoyed by the tendency of some people to be critical while they're correcting (teaching!) someone.
And besides, memes persist much more readily anywhere where tribalism comes into play e.g. Politics, Apple vs. [Insert your OS here], Any Tesla thread etc.
In the photo below, you can see the inside of the BGA flip-chip showing the M1 SoC itself alongside two Hynix LPDDR4 devices:
I'll up vote you until someone opens the chip package and replaces or upgrades the ram.
I'd watch that.