My Assistant
Sol 22 anomaly, File system problem |
Jun 18 2008, 09:39 PM
Post
#1
|
|
![]() Administrator ![]() ![]() ![]() ![]() Group: Admin Posts: 5172 Joined: 4-August 05 From: Pasadena, CA, USA, Earth Member No.: 454 |
Today's press release from the Phoenix mission contained the following nugget of information:
QUOTE Newly planned science activities will resume no earlier than Sol 24 as engineers look into how the spacecraft is handling larger than expected amounts of data. This sounded alarming, and immediately brought the very scary Spirit sol 18 anomaly to mind. (That anomaly, in brief, had to do with too many files being kept in flash memory, which resulted in Spirit descending into a cycle of continuous reboots that might, if not stopped, have depleted the batteries and killed the rover within a day or two. Through heroic efforts Spirit was recovered and obviously returned to perfect health.)I requested an interview with someone from JPL and am happy to say I just got a call from Barry Goldstein. I'm copying here the entire text of what he said to me. I will be blogging this but am wondering if someone here could help expand a bit on the business about APIDs (Application Process Identifiers) and what part they play in an operating system. I started off by asking for more detail on the problem, and for him to compare and contrast with Spirit Sol 18. QUOTE ('Barry Goldstein') When the anomaly happened with Spirit, we lost communication. We never lost communication or control of the vehicle here. It's quite different. On Spirit we had a file management problem that ran amok. --EmilyWhat happened was, at one of the downlinks on sol 22, the engineering housekeeping data was being looked at by the spacecraft team. And they noticed one of the APIDs for a housekeeping data packet, which is normally generated only one to three times every time we do an uplink, was generated 45,000 times. It was a surprise, to say the least. And the reaction of the team was, the obvious which was concern about why the heck did this happen, and the other issue was we were concerned about two things. One, since the APID priority for this data type was very high, would it starve out any of the science data from being saved overnight because it's now so large? And the resolution of that it turned out, yes indeed, it was that large, and we ended up losing very low priority science data from sol 22. But the scientists are not at all concerned about that. The second concern we had yesterday was, we had a restriction on the amount of time it takes for the spacecraft to boot. I can't remember the total value but it's over 60 seconds. If it doesn't boot within a certain amount of time, it will reset and then eventually go over to the B side (it's block redundant, unlike MER). The reason we were concerned is that this data structure, now which is huge because of these 45,000 blocks, it has to pull that out of the flash as part of the boot process. And so we were concerned it would take too long and therefore it would side-swap. So we took some emergency action last night, and I'm happy to say we got the uplinks in due to the following things. Number one, we updated the priority of that APID such that it will restrict the amount of that data type to be saved in flash. Second thing we did is we lost science operations on sol 23. Third thing we did is up the priority of the downlink of that data structure that we generated so often so that we could retrieve what we have so it could help us diagnose the problem. The current state of the spacecraft is as follows. We have the data down, we have the spacecraft under control, we have the size of the file system in control such that we're no longer worried abou tthe size of the file system growing and keeping us from booting appropriately. The second thing is, the only restriction we put on science activity for sol 24, which the science team is planning right now, is that they can't save the data to the flash because we want to keep the flash small, we don't want this thing to eat us alive. So what the team is doing now is planning sol 24. However, there's a little paradox here. Because we were in this anomalous state, we requested and received a bunch of contingency passes from MRO and Odyssey. So what ends up happening is we told the science team you can do whatever you want, because the only thing we are worried about was flash, we just are not going to save it to flash when we turn off. And we then told them we have all these passes. So as it turns out, what the science team is planning is the most data-rich sol we've had to date, because we have all these extra passes. I was joking with Peter that he should pray for these things more often because he gets more data. {What other kind of memory is there besides flash?} We execute out of RAM, and every time we turn the vehicle off to save power at night, charge the batteries, we save off the critical data structures which include this file system with the telemetry that has not been marked as received on the ground. And that's what really ate our lunch is the saving of this to the flash. We ran out of room in the flash and that's what caused them to lose the science data, which was low priority. And then it's the time it takes to read it out of flash and get it down on the ground. {What's generating all these APIDs?} We have a suspect, and I'd prefer not to go into a lot of detail, but the suspect has to do with the packet counter number for each of the packets that are stored. It's been less than 24 hours so I'd like to let the team get a chance to look at this and analyze it completely. At this point it's our prime suspect but that doesn't necessarily mean it will pan out. Even though we have had this anomaly, the vehicle is under control. We lost a sol of operations, because when this occurred we stopped the uplink for that sol. We have the vehicle under control, we understand the problem, we don't know the root cause, but we've taken preventive measures to make sure it's still functional without risking a problem. It's much less scary {than Spirit sol 18} but I'll feel a lot better when we know exactly what's going on. All these things are scary to one degree or another. I'd rather have this problem though; not hearing from a vehicle is disconcerting. -------------------- My website - My Patreon - @elakdawalla on Twitter - Please support unmannedspaceflight.com by donating here.
|
|
|
|
![]() |
Jun 24 2008, 05:08 PM
Post
#2
|
|
![]() Administrator ![]() ![]() ![]() ![]() Group: Admin Posts: 5172 Joined: 4-August 05 From: Pasadena, CA, USA, Earth Member No.: 454 |
An update from Barry Goldstein that I understand a little bit less than the first update. Discuss!
QUOTE ('Barry Goldstein') It was a problem we'd identified a while ago and we were starting to work a fix for it. It was associated with when we saved when we go to sleep at night, the way we save the packet sequence numbers in the file system and what's supposed to happen is we're supposed to mask off the lower 12 bits, and what happened was we had identified that and had started working a patch to fix this, we knew the symptom, when it happened it would generate duplicate packet sequence numbers. We knew the system could operate that way but we were worried about what would happen, all the permutations. So what happened on sol 22, we actually had one of those issues occur where we basically generated duplicate sequence numbers. It just so happened that morning when we uploaded the sequence for that morning we included those same packet deletes, we do that every morning. And we deleted just enough packets such that because of the other problem we ended up having the file system configured where there were two consecutive packets with the same ID. If we hadn't sent up that exact number of packet deletes this wouldn't have happened. When we did that, we had an unintended consequence. It normally shouldn't happen, if we had corrected the masking issue it would not have happened, but when we ended up with two packets with the same sequence number, our team went to work looking at it, we found a bug in the code that generates packets that if that happens, you end up getting into an infinite loop generating the same packet ID. So as you recall we generated over 45,000 packets with the same sequence number, so because of the first bug we generated a condition where the second bug was exposed. So the bottom line is, yesterday we completed the patch for the first problem and we uplinked (I believe) the patch to the system to get rid of the first bug. And we're going to have a discussion today to see if we're ready now to release the use of the flash back to the science team, because we've now eliminated the source of the problem. The consequence is still there until we finish the other patch, but it shouldn't happen now, so we'll have a discussion and make a decision on whether we want to release that or wait another couple of sols until we get the second patch uploaded. --Emily -------------------- My website - My Patreon - @elakdawalla on Twitter - Please support unmannedspaceflight.com by donating here.
|
|
|
|
Jun 24 2008, 06:29 PM
Post
#3
|
|
|
Member ![]() ![]() ![]() Group: Members Posts: 206 Joined: 15-August 07 From: Shrewsbury, Shropshire Member No.: 3233 |
An update from Barry Goldstein that I understand a little bit less than the first update. Discuss! --Emily Masking the lowest 12 bits of the packet sequence number would cause all except the lowest 12 bits of the packet sequence number to be thrown away. The packet sequence numbers 0 and 4096 would both generate a new packet sequence number of 0. This is because decimal 4096 is binary one followed by twelve binary zeros. As a result of the masking operation, the one would be thrown away. It might reasonably take 22 sols for Phoenix to transmit its first 4096 packets. After 22 sols following the "masking" operation, Phoenix would allocate packet 4096 a packet sequence number of 0 which would generate the first duplicated packet sequence number. I find fragments of information about space software problems both interesting and frustrating. It said on twitter that Phoenix's software is not Open Source. From my point of view I would like lander software to be Open Source. I am sure that there would be benefits to both NASA and ESA if Mars Rover software development was turned into an Open Source project. I think that EDL software might be the only software that needs to be classified. |
|
|
|
elakdawalla Sol 22 anomaly Jun 18 2008, 09:39 PM
jmjawors That little blurb caught my eye as well. Thanks f... Jun 18 2008, 09:50 PM
climber An info from AW&ST, june 9th, Craig Covault pa... Jun 18 2008, 10:06 PM
mcaplinger QUOTE (elakdawalla @ Jun 18 2008, 01:39 P... Jun 18 2008, 10:35 PM
helvick Emily,
My understanding is that each spacecraft [... Jun 18 2008, 10:38 PM
jekbradbury Why is nobody looking on the bright side? We get ... Jun 18 2008, 10:45 PM
Deimos The current problem is within an engineering APID,... Jun 19 2008, 12:04 AM
ugordan QUOTE (Deimos @ Jun 19 2008, 02:04 AM) In... Jun 19 2008, 07:34 AM
Cargo Cult QUOTE (Deimos @ Jun 19 2008, 02:04 AM) Ho... Jun 19 2008, 03:18 PM

PaulM QUOTE (Cargo Cult @ Jun 19 2008, 04:18 PM... Jun 19 2008, 04:25 PM

mcaplinger QUOTE (Cargo Cult @ Jun 19 2008, 08:18 AM... Jun 19 2008, 04:51 PM

lastof7 QUOTE (mcaplinger @ Jun 19 2008, 12:51 PM... Jun 19 2008, 11:17 PM

mcaplinger QUOTE (lastof7 @ Jun 19 2008, 03:17 PM) .... Jun 20 2008, 03:25 AM

lastof7 It's mostly the bug fixes along with the fact ... Jun 20 2008, 03:53 AM

Greg Hullender QUOTE (lastof7 @ Jun 19 2008, 08:53 PM) I... Jun 20 2008, 03:28 PM


lastof7 QUOTE (Greg Hullender @ Jun 20 2008, 11:2... Jun 20 2008, 05:59 PM


Reed QUOTE (Greg Hullender @ Jun 20 2008, 07:2... Jun 20 2008, 08:42 PM


Greg Hullender QUOTE (Reed @ Jun 20 2008, 12:42 PM) the ... Jun 21 2008, 11:24 PM

PaulM QUOTE (lastof7 @ Jun 20 2008, 04:53 AM) I... Jun 23 2008, 11:45 AM
hendric QUOTE (Deimos @ Jun 18 2008, 06:04 PM) Th... Jun 19 2008, 07:34 PM
helvick 45000 data items is a lot of data. Now you can gen... Jun 19 2008, 11:34 PM
ElkGroveDan Good catch Gordan. More on red shirts here. Jun 19 2008, 01:33 PM
MahFL I loved the series Startrek, you always waited wit... Jun 19 2008, 01:57 PM
glennwsmith Hendric, you're idea of a debug message as the... Jun 19 2008, 10:45 PM
Airbag One model of SUV has a badge on the back that stat... Jun 20 2008, 05:07 PM
imipak No need for mad RE skillz; just license it from MS... Jun 22 2008, 07:57 PM
djellison QUOTE (PaulM @ Jun 24 2008, 07:29 PM) . F... Jun 24 2008, 06:40 PM
mcaplinger QUOTE (djellison @ Jun 24 2008, 10:40 AM)... Jun 25 2008, 01:51 AM
PaulM QUOTE (mcaplinger @ Jun 25 2008, 02:51 AM... Jun 25 2008, 11:31 AM
mcaplinger Presumably people who are interested in flight sof... Jul 11 2008, 03:50 AM
nprev Interesting article; thanks for posting it, Mike... Jul 11 2008, 04:22 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 13th December 2024 - 05:42 PM |
|
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |
|