Re:Former Tesla Firmware Engineer Discusses the System
by nickserv on Friday August 24, 2018 @04:06PM
(#17837527)
Any kernel module that's not required (wifi, graphics, sound, USB, etc depending on application), any security system like selinux, any unnecessary libraries, helper utilities, etc etc.
Basically you rip out anything not strictly required for the task at hand.
Running on embedded hardware is quite different from running on server hardware, disk space and memory are measured in megabytes, not gigabytes...
Re:Former Tesla Firmware Engineer Discusses the System
by remoteorbust on Friday August 24, 2018 @06:36PM
(#17838311)
I once ran an "embedded" Linux on a $10 marvel SOC. It was a pretty vanilla kernel running a basic Debian install. 10MB out of 128MB RAM used most of the time.
Obviously you can go much slimmer, but a $10 board is surprisingly capable.
Re:Former Tesla Firmware Engineer Discusses the System
by camtarn on Friday August 24, 2018 @09:32PM
(#17839057)
Not necessarily. I'm working with B&R's range of industrial controllers at the moment, which are Atom processors with a few hundred Mb of RAM and CF cards up to 32Gb, but still running a traditional RTOS with hard timing guarantees. They have built-in web servers and (basic) web browsers...!
Re:Former Tesla Firmware Engineer Discusses the System
by berti on Friday August 24, 2018 @07:51PM
(#17838686)
Those two, particularly Ubuntu, are the opposite of naked. Try something like Arch.
Re:Former Tesla Firmware Engineer Discusses the System
by yjftsjthsd-h on Friday August 24, 2018 @10:06PM
(#17839146)
Arch? Arch ships packages with debug symbols and docs included, and takes over a hundred MB for just a base install! Alpine is way smaller; base image under 10MB, packages broken apart so you only get binaries unless you ask for more, linked with musl to make it even smaller.
EDIT: This is meant to be a bit tongue-in-cheek, but I seriously do prefer Alpine over literally every other Linux distro I've yet seen for minimalism. Also geared towards embedded-type work.
Re:Former Tesla Firmware Engineer Discusses the System
by berti on Friday August 24, 2018 @10:49PM
(#17839270)
Fair enough, and you're quite right about Alpine being geared more for embedded. For general use I find Alpine a bit of a pain due to lack of systemd (bring on the hate ;)), and of course lack of docs hurts usability a bit. With regard to debug symbols, I like what Redhat and Debian are doing with an embedded build id linking binaries to separate debug packages.
Re:Former Tesla Firmware Engineer Discusses the System
by agumonkey on Saturday August 25, 2018 @01:23PM
(#17841645)
yeah come on, don't bring Alpine in the mix, we were talking about Ubuntu, not DamnSmallLinux. Alpine is great, no doubt, but it's in a class of its own.
Re:Former Tesla Firmware Engineer Discusses the System
by hobls on Friday August 24, 2018 @03:31PM
(#17837289)
Ubuntu is certainly not known as a lightweight distro.
Re:Former Tesla Firmware Engineer Discusses the System
by rrcaptain on Friday August 24, 2018 @07:55PM
(#17838698)
That's because "lightweight" to Linux nerds is more like "weight of light" than "light of weight".
Re:Former Tesla Firmware Engineer Discusses the System
by cma on Friday August 24, 2018 @08:00PM
(#17838719)
The Ubuntu message of the day when you log in on a shell runs curl to feed in advertisements. Pretty big attack surface.
Re:Former Tesla Firmware Engineer Discusses the System
by azinman2 on Saturday August 25, 2018 @02:02AM
(#17839774)
? I’ve never seen that. Since what version?
Im asking because I run few instances with very heavy traffic and have no issues whatsoever. Just added nano and fail2ban and it runs with no issues for about 2 years now.