News for hackers. Stuff that matters.
Re:Former Tesla Firmware Engineer Discusses the System by JumpCrisscross on Friday August 24, 2018 @02:52PM (#17837012)
> Why Linux instead of an RTOS?

Same reason SpaceX eschews radiation-hardened processors for redundant off-the-shelf cores: supplier competition. There aren't many RTOS engineers on the market; there are many Linux engineers. Once they got over the cost of hardening the kernel, SpaceX found itself at a scaling advantage versus RTOS-based competitors.

Re:Former Tesla Firmware Engineer Discusses the System by shittyadmin on Friday August 24, 2018 @02:59PM (#17837068)
Not just that but holy shit some of those commercial RTOSes have major issues. I work in aerospace and we recently used one where the whole system would crash after ~230 days of uptime.

At least with Linux you're getting a system that's been used so much that all major issues like that are ironed out. Nothing beats a few million testers.

Re:Former Tesla Firmware Engineer Discusses the System by jtwaleson on Friday August 24, 2018 @03:16PM (#17837189)
248 days of uptime by any chance?

edit: I saw the same on a fleet of thousands of JVMs which hung on 100% CPU after 248 days very consistently. Closest thing to an explanation I ever got was perhaps it is storing uptime in hundredths of a second (why not ms???) in signed 32 bit integers, see: https://ma.ttias.be/248-days/ In the end we solved it by restarting with a cronjob between 2am and 4am after 247 days...

Re:Former Tesla Firmware Engineer Discusses the System by LinuxBender on Friday August 24, 2018 @04:34PM (#17837708)
One thing to look at is the sum of Anonpages if you have THP enabled. That was enabled by default after CentOS6.2. The usage itself isn't an issue, but there is a known memory leak in THP and the fragmentation can get wedged after a couple hundred days based on usage characteristics of the server.
Re:Former Tesla Firmware Engineer Discusses the System by SEJeff on Friday August 24, 2018 @05:46PM (#17838082)
Million? For linux perhaps billion :)
Re:Former Tesla Firmware Engineer Discusses the System by blub on Friday August 24, 2018 @03:21PM (#17837232)
Ubuntu Linux has millions of testers, your custom version has only been tested by you and your customers :)
Re:Former Tesla Firmware Engineer Discusses the System by yitchelle on Friday August 24, 2018 @05:25PM (#17837979)
Hmm, doubt that there are millions of folks testing Ubuntu controlling a car.
Re:Former Tesla Firmware Engineer Discusses the System by eeZah7Ux on Friday August 24, 2018 @04:48PM (#17837788)
Unless you patch the kernel very heavily, no.
Re:Former Tesla Firmware Engineer Discusses the System by vonmoltke on Friday August 24, 2018 @06:25PM (#17838241)
> There aren't many RTOS engineers on the market; there are many Linux engineers.

There aren't many Linux engineers who have experience with resource-constrained systems or real-time programming requirements.

Re:Former Tesla Firmware Engineer Discusses the System by mellow-lake-day on Friday August 24, 2018 @06:58PM (#17838434)
What about people who make video games? There is a great video on YouTube called "Software powering Falcon 9 & Dragon - Simply Explained" which goes more into this topic.
Re:Former Tesla Firmware Engineer Discusses the System by da02 on Friday August 24, 2018 @02:58PM (#17837060)
(I don't have any experience with real-time applications.) What are some things they had to do to harden the kernel?
Re:Former Tesla Firmware Engineer Discusses the System by coldtea on Friday August 24, 2018 @03:02PM (#17837089)
>Same reason SpaceX eschews radiation-hardened processors for redundant off-the-shelf cores

A devil-may-care throw-caution-to-the-wind cavalier attitude?

>supplier competition

I stand corrected. And I'm never buying a Tesla or property even remotely close to SpaceX launch sites...

Re:Former Tesla Firmware Engineer Discusses the System by fsloth on Friday August 24, 2018 @03:38PM (#17837329)
I would imagine commoditization generally increases - those variables which market values. In this case I presume the variables include reliability since that stuff is probably used in IoT systems where minimizing maintenance can be probably considered am asset.

Although I don't know the market. It might screwed by some weird market dynamic.