Live data from Hacker News

How can Apple deal with the memory shortage?

asymco.com

141–150 of 202 posts

Re: How can Apple deal with the memory shortage?

#141

Earlier quoted context omitted.

Apple? Sure. What about other developers? Firefox, Chrome already use gigabytes of RAM.

It's the websites that use that RAM, not the browsers. (Often the ads on the websites.)

No, it's the browsers. Check how much memory they commit and how much is actually resident. Firefox often commits 2x more memory than it is actually using.

Re: How can Apple deal with the memory shortage?

#142
post #118

Earlier quoted context omitted.

100% agree the problem is modular RAM can't handle the timings of the SoC. There is a new modular RAM standard for precisely that but knowing Apple they will want to make their own. SSD should be easy but since RAM does not last that much longer you still need to resolder that after 5-10 years!

you can have a mix- 4gb embedded ram + 1-2 slots of slower layer

Pretty difficult to code OS to take advantage of that. Basically need NUMA, which increases overall overhead.

Otherwise, you may end up filling up your fast memory with some cold data.

Re: How can Apple deal with the memory shortage?

#143
post #66

Earlier quoted context omitted.

SpaceX/xAI is investing in creating their own fab. If they can, Apple certainly can.

They can’t. Operating a FAB requires employing PhDs that are willing to work 8 hours shifts with no breaks (each removal of a bunnysuit is an expensive exercise), and there’s no reason to believe SpaceX is capable of hiring such people.

So what? Maybe a hand full of full bunnies per shift, and another dozen or two half-bunnies. There aren't more. This can be seen/validated by some older yt-videos, where something went wrong in the fab, for instance a https://en.wikipedia.org/wiki/FOUP ejecting a wafer in wrong ways into a machine, then being ejected by that onto the floor, and shattering. Causing all systems to stop, and all the warning lights beginning to blink in an expanding cascade. At about 4:30AM. Maybe 20 seconds later two half bunnies with face masks appear, another 10 seconds later a full bunnie. Some gesticulating ensues, full bunnie opens his suit, gets his flip phone, half bunnies downing their masks. All looking very concerned and exasperated. Having a really bad day. No more bunnies appear over several minutes. Video ends.

Re: How can Apple deal with the memory shortage?

#145

Earlier quoted context omitted.

I disagree, there is low-hanging fruit Firefox is leaving on the table. The main thing that comes to mind is tab unloading. They don't unload tabs automatically like chrome can. I was pleasantly surprised at the tab unloading settings under "memory saver" in ungoogled-chromium.

I believe that Firefox does it but not as frequently as Chrome does, but don't quote me on it. However, I am using a "tab suspender" addon on firefox to control how fast the unloading happens on tabs that are not active.

Indeed, I am using something similar "auto tab discard".

Re: How can Apple deal with the memory shortage?

#146

Earlier quoted context omitted.

I disagree, there is low-hanging fruit Firefox is leaving on the table. The main thing that comes to mind is tab unloading. They don't unload tabs automatically like chrome can. I was pleasantly surprised at the tab unloading settings under "memory saver" in ungoogled-chromium.

Firefox unloads tabs under memory pressure since more than 4 years: https://hacks.mozilla.org/2021/10/tab-unloading-in-firefox-9...

It is a naive and suboptimal implementation, they even describe it in the link you posted

"We have now approached the problem again by refining our low-memory detection and tab selection algorithm and narrowing the action to the case where we are sure we’re providing a user benefit: if the browser is about to crash."

I would prefer FF to be more proactive in unloading tabs way before "its about to crash" to keep system level memory pressure lower. Firefox is the main memory hog on my M1 mac.

Chrome can do this, there is no reason we should be stuck with "manual tab unload" and "unload when the browser is about to crash".

I am using an extension, but that just reinforces the argument: they could be doing much more here.

Re: How can Apple deal with the memory shortage?

#147

Earlier quoted context omitted.

you can have a mix- 4gb embedded ram + 1-2 slots of slower layer

Pretty difficult to code OS to take advantage of that. Basically need NUMA, which increases overall overhead. Otherwise, you may end up filling up your fast memory with some cold data.

If apple cant support NUMA ill eat my hat

Re: How can Apple deal with the memory shortage?

#148

Just a thought - stop bloody soldering the RAM and the SSDs. That partially transfers the burden on to the customers and makes their product more repairable ... Mac Minis (with un-soldered RAM and HDD / SSDs) used to be sold with minimum 4 GB RAM, if I remember right). This, way, you can still sell devices with lower RAM, and customers can upgrade in the future when supply increases.

This makes everyone’s computer slower, more expensive, and less power efficient, and 95-99% of people will never open their computer anyway.

95-99% of first owners, maybe. But when you make devices that can be affordably repaired / expanded, they will be - and then they gain another 5-10 years of useful lifespan for a second owner.

If we ever want computers to be sustainably made - instead of scorching the earth with each new device - we need to stop thinking the way people treat their devices is some natural law of how things will always be.

Re: How can Apple deal with the memory shortage?

#150
post #115

Earlier quoted context omitted.

It's the websites that use that RAM, not the browsers. (Often the ads on the websites.)

Browsers still have a lot of memory usage on their own. I am running Arch Linux here. When I boot my machine into a full desktop environment it uses 1.1 GB of memory total, for everything. If I open Firefox, it in itself uses about 1.3 GB to have Firefox open with just HackerNews in 1 tab. I have no extensions except uBlock Origin.

Read about:memory then.
Post reply on HN