Slashdot Mirror


Mars Rover Curiosity: Less Brainpower Than Apple's iPhone 5

Nerval's Lobster writes "To give the Mars Rover Curiosity the brains she needs to operate took 5 million lines of code. And while the Mars Science Laboratory team froze the code a year before the roaming laboratory landed on August 5, they kept sending software updates to the spacecraft during its 253-day, 352 million-mile flight. In its belly, Curiosity has two computers, a primary and a backup. Fun fact: Apple's iPhone 5 has more processing power than this one-eyed explorer. 'You're carrying more processing power in your pocket than Curiosity,' Ben Cichy, chief flight software engineer, told an audience at this year's MacWorld."

39 of 256 comments (clear)

  1. Just goes to show. . . by MagusSlurpy · · Score: 5, Insightful

    . . . how wasteful most commercial software packages are.

    --
    My sister opened a computer store in Hawaii. She sells C shells by the seashore.
    1. Re:Just goes to show. . . by Anonymous Coward · · Score: 4, Insightful

      Yeah, good comparison.

      Hundreds of millions of dollars spent on code for a very specific purpose compared to anything else.

    2. Re:Just goes to show. . . by smittyoneeach · · Score: 4, Insightful

      Or how bloody-minded comparisons tell you little. The reason you need horsepower on the board is not because computations are bearish. Rather, all the human interface code.
      I worked on government systems two decades ago that had four-decade old technology and worked great. Why? All the user interface agony was offloaded to dedicated consoles.
      Case in point: which is harder to code against: a command line interface, or a full-on GUI?

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    3. Re:Just goes to show. . . by Jane+Q.+Public · · Score: 4, Insightful

      ". . . how wasteful most commercial software packages are."

      That's certainly true. And the huge volume of our data, too, but mostly software. I have programs on my computer that are easily 20 times the size of entire hard drive of one of our office computers back in 1994... and that hard drive contained a complete install of Microsoft Office as well as Lotus 1-2-3 for those who didn't like Excel. With lots of room to spare. As a long-time programmer, I celebrate the increases in capability we have seen over the years, but I decry the bloated inefficiency of much of our modern software. I would go so far as to say I am dismayed by it sometimes.

    4. Re:Just goes to show. . . by smash · · Score: 4, Informative

      Nah, it just goes to show how far behind the performance card the radiation hardened, military/aerospace grade equipment is.

      Plus, you really don't want to be bleeding edge on this sort of stuff. Discovering a mission ending critical CPU bug when you're astronomical scale distance away = bad.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    5. Re:Just goes to show. . . by Charliemopps · · Score: 5, Insightful

      Well, if you're doing it in a modern software package like C# for example, there's little to no difference at all. I could write a stopwatch app... and the gui would have a single button and a display. The console version of which would be a lot harder to write. It all depends on what you're doing. Most GUIs make it easy to write for them, and offload a lot of their load onto the GPU.

      By the way, Curiosity's UI is still on earth... and on dozens of different computers at Nasa. It's kind of silly to say curiosity is only powered by this tiny processor.... that processor is just accepting and implementing commands. All the data crunching is happening back here on earth by massive banks of computers.

      P.S. Apple probably paid them to say this.

    6. Re:Just goes to show. . . by X0563511 · · Score: 5, Insightful

      ... and where do you think the code to display that button came from? Not from C#, but from the .NET or Mono environment... which is... more code!

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    7. Re:Just goes to show. . . by tbird81 · · Score: 5, Funny

      After a mistake like that, you've got to hand in your geek curve.

    8. Re:Just goes to show. . . by martin-boundary · · Score: 3, Informative
      That's still graphical/visual programming in text mode, not command line programming in the conventional sense.

      A typical command line program simply reads data from STDIN, parameter values from argv[], and writes some values to STDOUT, maybe some error messages to STDERR. Command line programs don't care if the user is a human being or a script, unlike a ncurses program, whose fancy display formatting is all about human interactivity, but is often difficult to script.

    9. Re:Just goes to show. . . by maxwell+demon · · Score: 3, Funny

      I handed that in long ago when i started sleeping with women and being gainfully employed :D

      You're lying. Otherwise, what would you still do here on Slashdot? :-)

      --
      The Tao of math: The numbers you can count are not the real numbers.
    10. Re:Just goes to show. . . by Sulphur · · Score: 3, Informative

      and 12 lines of machine code that are actually running.

      I've never seen a processor whose machine code had lines.

      Segments.

  2. So... by sootman · · Score: 4, Funny

    ... not enough power to run Angry Birds then?

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    1. Re:So... by sco08y · · Score: 5, Funny

      Not even enough power for Mildly Peeved Birds, Canadian edition.

  3. iPhone 5 is faster.. for a few minutes maybe. by ZorinLynx · · Score: 5, Insightful

    Sure, the iPhone 5 may have more processing power... But I bet if you put that thing in space, the first cosmic ray that comes along will happily crash the OS. Game over.

    Hardware in spaecraft has to be hardened big time against radiation. Off the shelf junk will NOT work. Just sayin'.

    1. Re:iPhone 5 is faster.. for a few minutes maybe. by jfdavis668 · · Score: 5, Funny

      That is why the Spirit rover got stuck, it was using Apple Maps.

    2. Re:iPhone 5 is faster.. for a few minutes maybe. by Anonymous Coward · · Score: 4, Informative

      Cosmic rays go straight through the earths atmosphere.

      They absolutely do not, as the article you cite makes clear in its second sentence. Sheesh.

    3. Re:iPhone 5 is faster.. for a few minutes maybe. by WWJohnBrowningDo · · Score: 5, Informative
      Did you even read the article you linked?

      Cosmic rays go straight through the earths atmosphere.

      No, it doesn't. If that were true we'd be all dead. Comic radiation in interplanetary space is 400 to 900 mSv annually, which is 1000 to 2200 times stronger than dosage at sea level on Earth (0.4 mSv). Earth's atmosphere blocks most radiation below 1 GeV.

      Off the shelf computer hardware does indeed work just fine in space. You can watch people on the ISS using normal laptops and cameras all the time.

      That's because ISS is in LEO and thus is still protected by the thermosphere and Earth's magnetic field. On a trip to Mars neither of those protections would be available.

    4. Re:iPhone 5 is faster.. for a few minutes maybe. by dgatwood · · Score: 3, Informative

      So only 16 years, then.... The PPC750 was introduced in 1997. Not quite 20, but closer to 20 than to "recent"....

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    5. Re:iPhone 5 is faster.. for a few minutes maybe. by Anonymous Coward · · Score: 3, Funny

      Things I like about your comment

      6 digit UID
      Giving a citation that is contrary to your post
      Being moderated offtopic
      Your sig bemoaning 'unfair' modding

      I'm lovin' it.

    6. Re:iPhone 5 is faster.. for a few minutes maybe. by TubeSteak · · Score: 5, Informative

      This is the computer chip in the Mars Rover: https://en.wikipedia.org/wiki/RAD750
      Specifically, they're using two *133Mhz chips rated for 1 Megarad.
      1 Megarad is about double the hardening they actually required,
      but I'm guessing they overspecced so that the Mars Science Laboratory will outlast its planned mission length.

      Anyways, if you're in low earth orbit (like the space station) you can get away with radiation tolerant electronics.
      But out in cold hard space, without the earth's atmosphere, you need radiation hardened electronics.
      *Not 200Mhz as so many articles are quoting

      Most satellites and space based processors are no more successful at
      hardening than your garden variety laptops. They just program them better and watch for memory errors.

      What? If it was that simple, we'd be using modern processes, instead of technology that debuted in 1997.
      Instead, it's quite the opposite, where a modern 24nm process is impossible to harden to the same strength as an old 150nm process.

      --
      [Fuck Beta]
      o0t!
    7. Re:iPhone 5 is faster.. for a few minutes maybe. by Anonymous Coward · · Score: 3, Informative

      Actually its not a Myth. I work for an aerospace company, specifically in electronics HW design, and specifically for satellites (we built some of the instruments on Hubble as well as the spacecraft bus for several DigitalGlobe birds).

      Its not immediate "cosmic rays" that get you.. its the long term rad exposure that a satellite gets over its intended life. The problem is aging effects and end of life performance. We do rad testing on all our flight level parts and derate the performance and then design so at the end of life point you still get intended operation.

      For example, we use Actel one time programmable FPGAs, SRAM parts like Xilinx can get random bit flips from radiation. And even in the Actel parts, we "scrub" memory in use frequently. We can fix single bit errors, and detect double bit errors, etc etc.

      On many programs we use low performance CPUs... something like 66MHz is common, and 16MB ram. But thats all you need for most applications. Remember, no GUI, no touch screen. Data processing is typically done on the ground, so you just have to get the data out the downlink... not hard to stream data fast.

      Anyway, there are rad hard or rad tolerant higher performance solutions that are in development. Tilera (MIT spin off) has 64 and 49 core chips that will have a rad hard varient for space. Xilinx is starting to ship a rad tolerant Virtex6. So thats great.. the problem is, if you are someone buying a $1bn bird and you have basicalyl one shot at getting the HW right, much less appetite for super cutting edge in the electronics. Better to use tried and proven that will get the job done and squirt data out of downlink for later use...

    8. Re:iPhone 5 is faster.. for a few minutes maybe. by tibit · · Score: 3

      There's space, and then there's space. LEO is not really much of space, because you're in the magnetosphere bubble. Get into interplanetary space and things change very drastically. Radiation (cosmic ray) doses go up by 3-4 orders of magnitude. You have no clue what you're talking about.

      --
      A successful API design takes a mixture of software design and pedagogy.
  4. Misleading by Tourney3p0 · · Score: 3, Informative

    This is misleading. The rover has dozens of LRUs, all individually computing sensory input, crunching it, and sending it across the bus for the main computer to process. Yet it's only taking into account the main computer's processing power.

    1. Re:Misleading by Orion · · Score: 5, Informative

      Line Replaceable Unit, meaning it's an unit that can be swapped out quickly.

      Somehow I don't think that term really applies here...

  5. power use and battery life have to be deal with as by Joe_Dragon · · Score: 3, Insightful

    power use and battery life have to be dealt with as well.

  6. That shouldn't impress anyone. by gTsiros · · Score: 4, Insightful

    Voyager 1/2 could run about 100K instructions per second, maybe less.

    It's about the objective, not raw processing power.

    And this is a fine opportunity! to pour some of my bile about the miserly state in which modern software is.

    --
    Looking for people to chat about multicopters, coding, music. skype: gtsiros
  7. Lots more eyes than one by sighted · · Score: 3, Informative

    Nitpick with the summary: the rover is not 'one eyed'. It uses a bunch: http://mars.jpl.nasa.gov/msl/mission/rover/eyesandother/ That said, it does have that one big laser on its head: http://mars.jpl.nasa.gov/msl/mission/instruments/spectrometers/chemcam/ Robots on Mars with lasers. It doesn't get much better.

    --
    Saddle up: Riding with Robots
  8. heh yea but by Osgeld · · Score: 5, Funny

    Curiosity's computer(s) can handle extreme cold and radiation of space while keeping radio communication for millions of miles, An iPhone is prone to overheat during normal use and has had trouble sending a radio signal though your hand.

  9. So? by JasoninKS · · Score: 5, Funny

    I'll give Curiosity the gold medal any day.

    Lets compare, shall we?

    iPhone - sometimes flaky signal. Curiosity - working from millions of miles away. WIN Curiosity.
    iPhone - works on Earth within range of cell towers. Curiosity - working on frakking Mars. WIN Curiosity.
    iPhone - 1 day power life. Curiosity - radioactive power pack. WIN Curiosity.
    iPhone - plays games, makes calls, takes pictures of girls making duck faces. Curiosity - scientifically explores and photographs another planet. WIN Curiosity.
    iPhone - will shatter if you handle it wrong. Curiosity - dropped onto another world and still going. As designed. WIN Curiosity.

    Curiosity, doing way the hell more, with way the hell less.

  10. way back in 2008... by mschaffer · · Score: 3, Interesting

    Way back in 2008 most of the hardware and software development was complete, so it should be compared to the original iPhone or the iPhone 3G.

  11. Re:The title is so obvious by JasoninKS · · Score: 3, Informative

    Better double check your figures. Curiosity launched November of 2011. Just landed August of 2012.

  12. Not needing a foolproof UI is most of it by spiritplumber · · Score: 4, Insightful

    I've written an universal autopilot in 2007 that fits in 32K of eeprom. I say that not to brag, but to mean that these things are not unusual. Software on PLCs and so on is often very small -- it also has to be very good at not crashing. Fortunately that's all it has to be: nobody cares if the scroll bar doesn't glow when it's hit the end and so on, it just has to keep the power plant working :)

    --
    Liberty - Security - Laziness - Pick any two.
  13. Re:Why do they always have to refer to the iPhone? by XxtraLarGe · · Score: 5, Insightful
    Maybe it's because of the fact that the speaker was addressing a crowd at Macworld...

    'You're carrying more processing power in your pocket than Curiosity,' Ben Cichy, chief flight software engineer, told an audience at this year's MacWorld.

    --
    Taking guns away from the 99% gives the 1% 100% of the power.
  14. space qual/rad tolerant by Anonymous Coward · · Score: 5, Informative

    You're conflating serveral things..
    Space Qualification doesn't have a lot to do with rad hardening. It's more about manufacturing processes, reliability, and testing to work over wide temps. That off the shelf computer probably won't work at -40C or +75C, while the processors in most spacecraft do. ISS or shuttle isn't a good example: it's basically an office environment: it even has *air*.

    Rad hardening is something else. And the space processors *ARE* more successful at hardening than garden variety CPUs. Take a look at the LEON3FT SPARC core, for instance (Available commercially as the Atmel AT697 or the Aeroflex UT699, or you can burn it into an Actel RTAX2000, if you like). It has register paths that have error correction, etc. The demonstrated performance in a radiation environment *is* better than the non FT version.

    There's single event upsets (SEU) aka "bit flips" which EDAC or parity works nicely for. Your laptop flipping a bit might not be a big deal.. most consumer software has enough bugs and things that you just restart and move on. If the processor controlling the rocket motors during entry descent and landing screws up it's a $2.5B hole in the ground. So internal registers in the space CPUs tend to be triple redundant or other upset mitigations.

    But that's really not the big issues. There are things like Latch-Up.. that particle going through causes a latchup, and the resulting high current at a small location melts the chip. Oops, dead. There are latchup immune designs and processes, and there are latchup monitor/reset circuits, but it's not universal.
    There's single event gate rupture (SEGR) which is where a MOSFET gate gets punctured because the normal charge on it is close to the failure level in normal operation, and the particle deposits just enough more to push it over the edge. Would you notice this on a modern CPU? Maybe it's in the microcode for calculating square root or something and you wouldn't for a long long time.
    We use a lot of FPGAs in spacecraft these days.. If it's a xilinx, that particle can flip a configuration bit, and now you've just programmed your FPGA to have two outputs connected to the same "wire" and they have opposite values. Oops some dead gates now, or if it's bad enough dead chip.

    ISS is a benign radiation environment.. about a Rad(Si) per year or so. There are *humans* on ISS, after all. After all 600 Rad will kill someone in days, 100 Rad will make them pretty sick. A typical design dose for a Mars mission might be 20kRad. For going to Jupiter, maybe a MegaRad?

    But even in that benign radiation environment, a lot of COTS equipment will fail, and there's no way to predict, short of test. So they take all those COTS widgets and run them in a proton beam and figure out what the mean time til failure is. If it's long enough, you send it up to ISS and have at it. There's an awful lot of stuff that has "expected life on ISS" of something like 90-180 days. Google for the papers or look at the website http://www.klabs.org where a lot of this stuff is collected. 180 days on ISS is plenty if you're sending new stuff up on a regular basis. Even at $100k/kilo, that's pretty inexpensive to just send a new iPad up every few months if one dies.

    If you're sending a billion bucks to Mars for 10 years, I think you might want something a bit better.

  15. Re:what about the cost? by Molochi · · Score: 4, Funny

    Well you have to factor in the shipping cost...

    --
    "The Adobe Updater must update itself before it can check for updates. Would you like to update the Adobe Updater now?"
  16. Re:Just goes to show. . .People are stupid by aaronb1138 · · Score: 3, Interesting

    Indeed, I kept laughing at the MHz / GHz wars in the smartphone arena the last 18 months and couldn't help but nearly choke when I looked at solid integer / floating point performance and saw most of this wiz-bang 1 GHz Dual core stuff still getting stomped by stuff in the PII-450 / PIII-600 range (as I recall Atom started as more or less a process shrunk and trimmed down PIII with some of the Core series improvements and modularity grafted in).

    It's a little weird to consider how much I wish there was a popular Atom x86 based Android in the US. Seriously, running Android and doing ARM emulation, they still stomp the ARM stuff. I wish Intel marketing would have some of their late 90's spirit and push themselves into the US smartphone industry with slogans like, "faster than ARM... at running ARM." Mind you, I actually mostly hate Intel. Nothing to inspire hatred like their GPU driver mess on Windows and Linux.

    (From a year back) http://www.anandtech.com/show/5365/intels-medfield-atom-z2460-arrive-for-smartphones

  17. Re:Just goes to show. . .People are stupid by AmiMoJo · · Score: 5, Informative

    The reason is that integer performance isn't worth wasting the silicone on in a mobile processor. It is already well beyond "good enough". What does count is power consumption, where ARM is still in another league to x86, and in floating point operations. ARM has NEON SIMD instructions for that and they are pretty good for audio/video processing and games. In addition a lot of stuff is handed off to the GPU now anyway (transform and lighting, video decoding) which is always going to be far more efficient.

    There is a reason there are not many x86 mobile devices. Atom is more expensive and hard to get good battery life from. Raw performance is good but having four low power cores and a good GPU is better for providing a smooth user experience and mobile games.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  18. Indeed, why not compare batteries as well? by SmallFurryCreature · · Score: 4, Funny

    Mars rover: lasts for years. iPhone barely makes it through the day.

    Or how about speed? Mars rover several meters a day. iPhone, just sits there.

    User upgrades in the field? Mars rover: zero. iPhone: zero.

    Yeah yeah, you have more computing power in your pocket then in NASA machine. That was a fun stat for voyager news briefings. A decade ago. It is not funny anymore, it is just sad and a sign the reporter in question has no idea about tech. This stuff is for morning tv.

    --

    MMO Quests are like orgasms:

    You may solo them, I prefer them in a group.

  19. Re:Just goes to show. . .People are stupid by iamhassi · · Score: 3

    The A6 and A6X are in the same speed range as the high-end G5's and low end CoreSolos (and a few CoreDuos) from 6 years ago. And yes, it is very impressive, especially when you consider the power, heat, size, cooling, and price differences between them. It also makes you wonder about the future, in 6 years will we have Sandy Bridge i5 level performance in our phones?

    It's truly phenomenal. And then you realize that this power, heat, size, price, cooling savings also includes an impressive GPU as well.

    Sure, there are various sorts of things to consider beyond benchmarks and such, but it's quite impressive no matter how you look at it. And even if the specific details for the story in question, PPC 750 (I'm assuming that because you are referencing it, that's what's in Curiosity), vs an A6 SoC isn't a fair fight, I do think most people (including most Slashdot nerds) would either be surprised, or at least find it an interesting tidbit, that the processing power of the solar system's most advanced robot is dwarfed by an everyday consumer phone used by millions. Even those of us who understand the process through which technology is tested, selected, hardened, and programmed for, how reliability and consistency is preferred over raw performance, how embedded processors aren't taxed in the same way desktop, or even mobile, systems are taxed, etc., how even we can see the unique and notable dynamic here.

    The impressive part isn't the speed, it's the fact the A6 in the iPhone 5 is running with the same 3.7v 1400mah battery in the original 412mhz iPhone. That's like throwing the supercharged V8 in your car but still getting 50mpg Prius numbers.

    --
    my karma will be here long after I'm gone