HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
Fixing Apple's Engineering in an Hour

Linus Tech Tips · Youtube · 43 HN points · 9 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Linus Tech Tips's video "Fixing Apple's Engineering in an Hour".
Youtube Summary
Receive an additional $25 credit for Ting today when you sign up at https://linus.ting.com/

The MacBook Air 2020 is a real hot boi... soon it'll be a cool dude. You knew this was coming, we water cooled the MacBook Air.

Buy Macbook Air 2020
On Amazon (PAID LINK): https://geni.us/zsjj7
On Newegg (PAID LINK): https://geni.us/LtadPX1
On B&H (PAID LINK): https://geni.us/z2rQ

Buy Intel Gaming CPUs
On Amazon (PAID LINK): https://geni.us/UuisI9
On Newegg (PAID LINK): https://geni.us/IomL
On B&H (PAID LINK): https://geni.us/ORChLCr

Purchases made through some store links may provide some compensation to Linus Media Group.

Discuss on the forum: https://linustechtips.com/main/topic/1212516-fixing-apples-engineering-in-an-hour/


GET MERCH: http://www.LTTStore.com/
SUPPORT US ON FLOATPLANE: https://www.floatplane.com/
LTX EXPO: https://www.ltxexpo.com/

AFFILIATES & REFERRALS
---------------------------------------------------
Affiliates, Sponsors & Referrals: https://lmg.gg/sponsors
Get Private Internet Access VPN at https://lmg.gg/pialinus2
Get a Mech Keyboard: https://geni.us/RecNBTI
NEEDforSEAT Gaming Chairs: https://geni.us/needforseat
Get a Displate Metal Print at https://lmg.gg/displateltt
Use code LINUSMEDIAGROUP on Epic Games Store: https://lmg.gg/kRTpY
Get a 30-day free trial of Amazon Prime at https://lmg.gg/8KV1v
Our Gear on Amazon: https://geni.us/lmgamazon

FOLLOW US ELSEWHERE
---------------------------------------------------
Twitter: https://twitter.com/linustech
Facebook: http://www.facebook.com/LinusTech
Instagram: https://www.instagram.com/linustech
Twitch: https://www.twitch.tv/linustech

FOLLOW OUR OTHER CHANNELS
---------------------------------------------------
Techquickie: https://lmg.gg/techquickieyt
TechLinked: https://lmg.gg/techlinkedyt
ShortCircuit: https://lmg.gg/shortcircuityt

LMG Clips: https://lmg.gg/lmgclipsyt
Channel Super Fun: https://lmg.gg/channelsuperfunyt
Carpool Critics: https://lmg.gg/carpoolcriticsyt

MUSIC CREDIT
---------------------------------------------------
Title: Laszlo - Supernova
Video Link: https://www.youtube.com/watch?v=PKfxmFU3lWY
iTunes Download Link: https://itunes.apple.com/us/album/supernova/id936805712
Artist Link: https://soundcloud.com/laszlomusic

Outro Screen Music Credit: Approaching Nirvana - Sugar High http://www.youtube.com/approachingnirvana

Monitor And Keyboard by vadimmihalkevich / CC BY 4.0 https://lmg.gg/fxHYK
Mechanical RGB Keyboard by BigBrotherECE / CC BY 4.0 https://lmg.gg/Q9yyQ
Mouse Gamer free Model By Oscar Creativo / CC BY 4.0 https://lmg.gg/8upii
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
> Preference of thin&light vs upgradeability/cooling.

I recently watched something[0] about the Macbook cooling (Intel, at least) and you seem to be right.

[0]: https://www.youtube.com/watch?v=MlOPPuNv4Ec&t=0

The newer ones might, but the older ones seem to have the worst thermal solution of just about any modern laptop if that Linus Tech Tips video is to be believed.

If I opened my computer that was thermal throttling and found that I would demand a refund. An undersized heatsink that wasn't making proper contact to the die. With a fan that 1. Isn't sucking air in from anywhere. And 2. Isn't blowing anything over the heat sink.

"Think different" as in "be dumb". Or smart; Because that makes their new computers that are properly amazing look even better in comparison.

Edit: paste mistake. the video link is here. Can't edit the original commet. https://youtu.be/MlOPPuNv4Ec

They should have had better thermals in the previous 13" Pro, but...

https://www.youtube.com/watch?v=MlOPPuNv4Ec&t=3m56s https://www.youtube.com/watch?v=MlOPPuNv4Ec&t=5m30s

That's just a headscratcher.

reader_mode
I have an 2018 MBP with an i9/Vega20 - I can testify how terrible their thermals are. But given that this thing can be passively cooled - even apple crappy venting will probably do a decent job with this chip. Need to see what happens when the reviews land.
Sure, if by "more creative" you mean handicap the CPUs by not delivering them any power because they know they can't cool them.

https://www.youtube.com/watch?v=MlOPPuNv4Ec

kube-system
Intel processors use Intel designed throttling solutions... which exist to keep their own processors from overheating because they have no control over the final implementation.

These new M1 laptops are the first laptops that have complete thermal solutions designed by a single company.

As an example, there is the potential to design a computer with no throttling at all if you are able to control the entire thermal design.

dahfizz
> As an example, there is the potential to design a computer with no throttling at all if you are able to control the entire thermal design.

This is not true. A laptop needs to work in a cold room, in a hot room, when its radiator is dusty, etc. If your CPU is not willing to throttle itself then a company with Apple's scale will have machines overheating and dying left and right.

For a computer to never _need_ to throttle, either (1)the cooling system has to be good enough to keep up with the max TDP of the CPU, or (2) you "pre-throttle" your CPU by never delivering it more power than the cooling system could handle. Apple refuses to accept solution 1, so they went with solution 2. If you watch the video I posted, it shows that even when there is adequate cooling, the new macbooks will not deliver more power to the CPU. In effect, the CPU is always throttled below its limit.

https://www.youtube.com/watch?v=MlOPPuNv4Ec

This is a video from Linus Tech Tips that demonstrates that no matter how much you cool it, they've physically prevented the chip from taking advantage of it.

And if it could be fixed with software, they would have worked out how, they're into that kinda tweaking.

How it compares to normal i9 device. Linus took apart a macbook air and the cooling was so bad that it may be the reason the i9 cooling so badly designed. It may be badly designed on purpose to show that the performance of arm chips in macbooks is comparable to an i9 without cooling https://youtube.com/watch?v=MlOPPuNv4Ec
rowanG077
The i9 is not in an Macbook air. It's in a Macbook pro 16 inch which has a completely different design. But you are right that all ultra mobile laptops on the market have way too shitty cooling. You could easily get an additional 10% of performance if the OEM would stop the insane thinness war.
tonyedgecombe
Interestingly the latest MacBook Pro did get thicker than its predecessor. Not a lot but perhaps they have got to the point where they are thin enough.
the_lucifer
The added thickness was attributed to the keyboard changing back to the Scissor mechanism from the Butterfly mechanism that was plagued with issues
Not really, Apple's CPU/GPU teams are very good, hey chaps and chapesses, but their primary advantage comes from the fact that Apple is looking at revenue for the entire device, the SOC is not the product. They can afford a little more cache etc. It's also right to point out that the margin is pretty narrow in A13 and Snapdragon 865 guise. So saying they are year(s) ahead is hyperbole, perhaps 6 months! In anycase the relatively close performance of the current SOCs makes me eager to see what they do with Apple Silicon in order to bridge the gap to Desktop/Laptop class performance? I do wonder whether the current cooling solutions in Apple's laptops are more about delivering the best product to the consumer or creating a favourable comparison to their own silicon. I found this LTT, https://youtu.be/MlOPPuNv4Ec?t=321, intriguing and wonder if this is deliberate or a manufacturing defect. Note the gap between the CPU lid and the die. It's a fairly entertaining video, the things they try but that gap, the entire cooling solution actually, are a little hard to understand.
Jun 22, 2020 · 41 points, 31 comments · submitted by devxpy
rattyc
I came here expecting an in depth view of Apple's Software Engineering practices... I am disappointed.
ToniCipriani
That would be Louis, not Linus.
eqvinox
Consumer hardware engineering these days is all about getting away as close to the edge as possible. And that'd be fine, if there was an option for better margins at a higher price. But there isn't...
jam3sn
Can't have that MBA beating the base spec MBP... -_-
ScottFree
Watch the whole video. They managed to keep the laptop ice cold with a custom heatsink, but even then only managed to eek out a 12% performance improvement. As it turns out, Apple actually knows what they're doing.
Nextgrid
From what I understand it's the CPU power management/frequency profile that is limiting it. Even when satisfying the thermal requirements they were still getting sub-par performance because presumably the CPU was being limited in software anyway.

A combination of good cooling + a tweaked power management profile to accommodate the better thermals should give a substantial performance increase.

dfobfdc
Apple ran that experiment for you. It’s called a 13” MBP.
ScottFree
> A combination of good cooling + a tweaked power management profile to accommodate the better thermals should give a substantial performance increase.

Give it a try and report back.

edit: Wow, HN has changed. There was a time when experimentation was encouraged here.

Nextgrid
> Give it a try and report back.

Modifying the thermal & power management profile is very difficult as it would require reverse-engineering the firmware.

I guess a temporary hack would be to mess with the current sensing circuitry to make the machine believe the CPU is drawing less current that it actually is and encourage it to give it more power.

eqvinox
I don't think that's terribly useful. Regardless of how much processing power you can extract from the CPU, there is the parallel question of CPU lifetime.

You can see in the video how hot the CPU runs. If I remember correctly, a 20°C temperature increase halves the lifetime of electronics. "Normal" laptops tend to stick around 60°C-70°C. Apple apparently decided that halving or even quartering the CPU lifetime compared to that is fine.

That said, most MBA CPUs probably spend their CPU lifetime closer to idle. It'd be interesting to get temperature numbers for that. Still, it's worse than it could - and IMHO should - be.

ScottFree
> I don't think that's terribly useful.

The entire overclocking community would disagree with you.

eqvinox
The entire overclocking community also decided lifetime is secondary to performance, yet I still feel rather displeased with Apple deciding to make lifetime secondary to saving a few cents on a better cooling solution :D
ScottFree
If the CPUs on your macbook pros are dying, you're doing something very wrong. If they're not, then you're creating an issue where none exists.
slantyyz
> presumably the CPU was being limited in software anyway

Would this be in the OS or the bios (or whatever they call it on a Mac)?

If it's the former, I wonder if the test would have been more interesting if the MBA was running a different OS.

kalium-xyz
Firmware, good luck overclocking a macbook
Nextgrid
Firmware.

Doing it within the operating system is suicidal as a malfunction of the OS (whether accidental or due to malware) would force the machine to operate beyond its thermal limits and potentially damage itself.

cassianoleal
The thermal management is done in userland. This is probably the same.

- https://twitter.com/tomcoates/status/1255170545366097922

eqvinox
This is another misunderstanding/misconnection. "kernel_task" is used to report "missing" CPU time so the CPU usage accounting remains consistent even when the CPU is throttled. That does not mean either the kernel or userland have any input to the thermal throttling functions.

There's also multiple levels of protection and throttling. At the lowest level, various ICs on the board (e.g. power regulators) will turn themselves off if they overheat. Somewhere above that, firmware will definitely exert /some/ control, to cover odd situations like the machine hanging while booting. Above that, the kernel or userspace can add another layer — but like each of the layers before, that layer can only lower the limits further.

Having thermal management in userland (and nowhere else) would be legal suicide. Imagine the lawsuits from people accidentally burning their legs...

cassianoleal
Thanks for this.

I believe you are correct, although I did think that kernel_task was there to help cool the components down, and not simply as a devide to report throttled CPU usage consistently with unthrottled.

That said, I didn't mean to say that thermal throttling only happened in userland but rather that it did happen there, even though it might also happen elsewhere.

Within the context of this thread, this is relevant since in this case the CPU was not being thermally throttled as it was running cool, but something was still throttling the amount of power going to it.

I was merely suggesting that Nextgrid's affirmation that it must have been the firmware throttling the CPU is not necessarily true. Given that there is a software component to thermal management (or at least I thought so), it's only logical to assume that there may be a software component of whatever other throttling was occurring without it necessarily being suicidal as suggested.

Lunrtick
They dropped the temperature under load by a good 10 degrees C just by milling a few mm off the heatsink so it actually made contact with the CPU... sure, that didn't increase the performance drastically, but it seems like a massive oversight on Apple's part
jam3sn
I have, but the fact the heatsink didn't event mount properly is kind of annoying... I agree, they know what they're doing, but I also wish they'd have designed better cooling.
carlosrg
12% is a pretty decent improvement.
bluedino
The problem is that the 13" MBP is over twice as fast in many benchmarks, but people think "if they had just put a better fan/heatsink on the air" they would be the same speed.

I wonder how much faster the 13" Pro would be if they did a similar setup.

jedieaston
In this[0] iFixit teardown (of last year's 13-inch, they don't have one for this year yet, but I assume the inside layout hasn't changed much), the cooling setup is a lot more traditional with a heatpipe from the CPU to the fan. I don't think it'd get a lot of benefit from the watercooling that LTT did (at least, without Apple's power profile taking over and throttling).

The only reason I can think of that Apple set up the MacBook Air like that was because it was supposed to be fanless and at the last second they couldn't figure out a way to eek out performance, so they added a fan where it would fit. That doesn't sound much like Apple's engineering though, so I don't know why they did it.

0: https://www.ifixit.com/Teardown/MacBook+Pro+13-Inch+Two+Thun...

glitchc
Yeah, I was kinda disappointed by the end. They really didn't gain that much performance.
netsharc
Because Apple limited the CPU to only be able to use x amount of Watts, because otherwise the cooling/the power consumption would be outside of their "product design goals".

But they probably still advertise "latest Intel CPU with xyz GHz and blah blah amount of cores.". But that would be like buying a Ferrari with advertised "an engine capable of gazillion horsepowers", but having it limited to only be able to go up to 2000 RPM...

II2II
> But they probably still advertise "latest Intel CPU with xyz GHz and blah blah amount of cores."

From what I have seen of LTT, their biggest criticism of Apple is their tendency to emphasize the turbo boost clock speed when the CPU is nearly always being throttled (presumably below the base clock speed) due to the machine being unable to dissipate the heat.

If you want to see an example of Apple advertising the turbo boost speed in very large print, check out the "Overview" page on the 13" MacBook Pro.

eqvinox
I think you misunderstood that. They hit the power limit, which just means after deciding the thermal limit Apple saw no reason to give it a CPU power supply that can go much beyond that. (Which might be either a hardware or a software limitation.)
OldTechSucks
I found it unreasonable that ipad keyboard is only $300. simultaneously, Windows is very bad OS: bitlocker, updates, userland, no solution for game anti cheats so every game has to run a special program to create anti cheat program, visual studio is terrible.

yet, in the long run I think the OS itself is beast!

code4tee
To be fair isn’t this probably the case with just about every laptop? Kit it out with some crazy totally impractical cooling setup and you can squeeze out a bit more performance. Even after all the craziness they edged out enough performer to detect it on a stress test but probably not enough to materially impact user experience.

This video sort of misses the point that real-world design is balancing multiple factors, not just over-optimizing one factor at the cost of others.

People don’t buy a MacBook Air because their looking for the fastest processor performance processor. That’s not the point of the product or the market it’s made for.

devxpy
Hmm, fair point, but I do expect the CPU and the fan to at least be to be connected!

The machine quickly jumps to 100 degrees on load, which is something I do care about, from a usability perspective. I have to regularly turn on the aircon to make the keyboard on my MacBook Pro even usable -- something I did not have to do on a ThinkPad T440p.

And then there's the chance of damaging internal components because of the sustained high heat over a long time.

I think the intention of the video, initially, was to "squeeze out a bit more performance.", but it ended up demonstrating some arguably obvious oversights in the thermal solution of a rather expensive machine.

Jun 22, 2020 · dijit on ARM Mac Impact on Intel
Everything you said is echoed in this LTT video from yesterday[0].

It does appear to be a very poor thermal design, but you can see that most of the issues appear to be from trying to make the user not feel the heat.

It feels a bit icky to leave performance on the table like that; since you paid for a CPU and are getting a marginal performance from it. But I remember Jobs giving a talk before about how "Computers are tools, and people don't care if their tools give them all it can, they care if they can get their work done with them well"

That's not a defense of a shitty cooling solution, but it is a defence of why they power limit the chips. When I got my first (and only) Macbook in 2011, it had more than twice the real battery life of any machine on the market. That meant that I was _actually_ untethered. That's what I cared about at the time much more than how much CPU I was getting.

[0]: https://www.youtube.com/watch?v=MlOPPuNv4Ec

Jun 21, 2020 · 2 points, 0 comments · submitted by benologist
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.