{"id":207,"date":"2012-07-10T23:54:20","date_gmt":"2012-07-11T04:54:20","guid":{"rendered":"http:\/\/www.p14nd4.com\/blog\/?p=207"},"modified":"2012-07-13T00:47:18","modified_gmt":"2012-07-13T05:47:18","slug":"dell-optiplex-9010-ubuntu-linux-lock-up","status":"publish","type":"post","link":"http:\/\/www.p14nd4.com\/blog\/2012\/07\/10\/dell-optiplex-9010-ubuntu-linux-lock-up\/","title":{"rendered":"Dell OptiPlex 9010 Ubuntu Linux Lock-Up"},"content":{"rendered":"<h3>The History<\/h3>\n<p>I&#8217;ve been waiting for a while to get a new desktop computer at home. Back in 2006, I was biding my time to replace my dead desktop until the Windows Vista <q>buy your computer now and we&#8217;ll give you Vista whenever it comes out<\/q> program to be officially announced by Dell, and finally bought my OptiPlex 745 Small Form Factor PC (with a nearly top-of-the-line Conroe Core 2 Duo E6600 CPU) in October. Since that date, I&#8217;ve been running said computer nearly 24 hours a day, seven days a week, and it&#8217;s held up remarkably well.<\/p>\n<p>While I ran Windows XP full time when I got it, I switched to Ubuntu full time (aside from playing through Portal when it came out) whenever I got my hands on Vista. That&#8217;s not to come as a condemnation of Vista, as everyone is so quick to do, but it just worked out that way: since I was going to do a fresh install on a fresh hard drive for Vista, it was a perfect opportunity to install Ubuntu alongside. And once Ubuntu was installed, I wanted to keep using it (as I had been full time in the months between my old desktop dying and purchasing that new computer). I preferred the desktop environment, window management, and most of the apps were either the exact same ones I used already on Windows (e.g. Opera, Firefox, Pidgin), or had suitable (if not preferable) replacements, with the exception of Foobar2000 and Media Player Classic (MPC). Things worked well, too!<\/p>\n<p><!--more--><\/p>\n<h3>The long wait<\/h3>\n<p>Fast forward to late 2011, and I started to get the upgrade itch. Part of that was inspired by the desire to play the (then-)upcoming Portal 2 game, which I was confident my hardware wouldn&#8217;t be able to handle, and the other part was just my inner geek. I&#8217;d certainly gotten my money&#8217;s worth out of the system that&#8217;d passed its five-year anniversary of arriving on my desk, and technology had advanced quite a bit, mostly in terms of CPU speed and storage technology (i.e. <abbr title=\"Solid State Disk\">SSD<\/abbr>s). I knew that Intel&#8217;s roadmap had another microarchitecture&mdash;Ivy Bridge&mdash;due up around the end of 2011, or early 2012, depending on which rumors and schedule slips were in the press at a given time, so I decided I&#8217;d wait for that.<\/p>\n<p>The retail availability of the first Ivy Bridge desktop CPUs came and went, and there were scant few desktops announced. (My interest in building my own PCs died along with my last self-built desktop, very inconveniently timed to coincide with my last few weeks of college&#8211;hence the Dell in October 2006.) Lenovo was first to the punch with some announced ThinkVantage refreshes on Ivy Bridge, but my stellar experience with the OptiPlex 745 caused me to hold out for Dell&#8217;s OptiPlex refresh. In early-to-mid-June, that finally happened, and I ordered my own OptiPlex 9010 Small Form Factor (with i7-3770) a few days later.<\/p>\n<h3>The Excitement<\/h3>\n<p>The machine arrived on a Monday (a few days ahead of schedule&mdash;woo!), but I had <a href=\"http:\/\/mnmnd.com\/\">Monday Night Dinner<\/a> to attend, so I couldn&#8217;t play with it any more than to open the box and plug in the RAM (Crucial Ballistix 2x 8GB DDR3 1600) and SSD (Intel 520-series 180 GB) I bought separately. I don&#8217;t think I had time to turn the machine on until Wednesday or Thursday, at which point I set about shrinking the Windows partition (which went fine) and installing linux (Ubuntu 12.04). Unfortunately I overcomplicated things a bit, and was a bit naive, so on my first attempt I neglected to provide an EFI partition at the beginning of the SSD, which caused me quite a bit of confusion until I realized that was necessary. Rather than trying to shift data and partitions slightly (since I assume the EFI partition is supposed to go at the beginning of the drive? Maybe that&#8217;s not true&#8230;), I just installed again from scratch, since it&#8217;s a pretty painless procedure. After that, things were peachy. The machine was fast! And I wasn&#8217;t using it enough yet to be terribly mad at Unity yet! But then things went south&#8230;<\/p>\n<h3 id=\"frustration\">The Frustration<\/h3>\n<p>At some point when I was doing an aptitude install of some packages, the machine locked up hard. No disk activity indicator ever blinked on any key presses; I couldn&#8217;t ctrl-alt-F1 to another TTY; I couldn&#8217;t Alt-SysRq-&lt;whatever&gt; to sync the filesystem, etc. This is clearly not what you want to happen on any system, let alone a new system. The same thing happened again another time when I was using the Ubuntu Software Center to install a package. It happened again when browsing a web page. It happened three more times when I was doing an rsync over the LAN.<\/p>\n<p>I ran the included Dell boot diagnostics, which turned up no errors. (I actually first tried Ubuntu&#8217;s hard-drive-installed Memtest86 instance, but that wouldn&#8217;t boot, complaining about &#8216;linux16&#8217; not being a valid boot option, or something.) I later put Memtest86+ 4.20 on a USB stick and ran that, and got some memory errors, but initially suspected it might be an incompatibility with the new Ivy Bridge chips, so didn&#8217;t put too much thought into it. That led me to find the <a href=\"http:\/\/forum.canardpc.com\/threads\/68001-Memtest86-5.00-Beta-available-!-Need-betatesters-!\">Memtest86+ 5.00 Beta 1<\/a> claiming to have added support for Ivy Bridge. Hooray! Right? It <em>did<\/em> successfully detect the <abbr title=\"Serial Presence Detect\">SPD<\/abbr> information for my RAM, unlike 4.20, but still turned up memory errors. I took out the stick of RAM the results indicated was bad &#8230; and still got errors. Ok, so maybe I took out the wrong one, so I swapped them, and &#8230; still got errors.<\/p>\n<p><a href=\"http:\/\/forum.canardpc.com\/threads\/68001-Memtest86-5.00-Beta-available-%21-Need-betatesters-%21?p=5635559&#038;viewfull=1#post5635559\">Much testing later<\/a>, I <a href=\"http:\/\/forum.canardpc.com\/threads\/68001-Memtest86-5.00-Beta-available-%21-Need-betatesters-%21?p=5635593&#038;viewfull=1#post5635593\">finally determined<\/a> what I believe to be some sort of perverse pattern of behavior: When Ethernet is plugged in, Memtest86+ will display errors, when run from a cold boot. If Ethernet is unplugged, Memtest86+ does not show any errors. When run not from a cold boot, Memtest86+ does not display errors (at least, not in the place that it consistently does during all my other tests&mdash;I haven&#8217;t, for instance, let it run for hours).<\/p>\n<h3>Next Steps<\/h3>\n<p>What to do now? Some folks on the ArsTechnica #linux channel are convinced that I just got a lemon, and some lead from the Ethernet controller was laid poorly in the PCB, and is interfering with the memory controller. Based on their advice, I contacted Dell support, and they&#8217;re shipping me a new system.<\/p>\n<p>I&#8217;m less optimistic that the problem I&#8217;m seeing is a single-instance hardware issue. Although I have little to base my theory on, my current musing is that this is a systemic issue, possibly with the vPro implementation or the BIOS\/EFI. My primary support for this is the fact that, in Windows, I&#8217;ve seen no instability during the ~couple-hour ~1.5 MB\/s download of Portal 2, web browsing, installing Windows Updates, etc. If you&#8217;ve ever read <span style=\"text-decoration: line-through\">Michael<\/span> <a href=\"http:\/\/mjg59.dreamwidth.org\/\">Matthew Garrett<\/a>&#8216;s stuff, you might be familiar with the craziness that can exist in BIOS \/ EFI, and the poor state of any reasonable implementation, testing, or support outside of whatever happens to work in Windows. In Windows, of course, there are lots of Intel-written drivers loaded, an Intel vPro\/AMT management toolkit that runs in the system tray to interface with the vPro junk, and who knows what other kind of voodoo going on. In Ubuntu, yes, there&#8217;s some Intel-written driver code in the kernel, but the 3.2.0-23 kernel I&#8217;m running at the time of this writing is a bit outdated relative to whatever fixes they might&#8217;ve put into the current stable 3.4.4 or 3.5-rc6. I think the amount of testing the desktop driver code receives on Linux is probably laughably small compared to their Windows code (which is probably laughably small compared to maybe someone like Nvidia). I also have no idea if there&#8217;s any Linux desktop code to handle the vPro stuff. I may be in a bit over my head.<\/p>\n<p>I&#8217;m not even sure how to start debugging or diagnosing this issue, which I assume will present itself again in 3-8 days, when the replacement system arrives. Writing down what I&#8217;ve done so far, so I can link others to this when I cry to them for help is all I can think of at the moment. I&#8217;ve not been able to turn up any other useful google results for <q>OptiPlex 9010<\/q> and Linux or Ubuntu or Memtest86, so now hopefully at least this puts the issue on the radar, in case anyone else is running into a similar problem.<\/p>\n<p>(As an afterthought, I do want to mention that the OptiPlex 9010 is actually <a href=\"http:\/\/www.ubuntu.com\/certification\/hardware\/201202-10556\/\">Ubuntu Certified<\/a> &#8230; for <q>pre-install only<\/q> of 11.10, anyway. Dell naturally only offers that configuration in <q>certain regions,<\/q> and I&#8217;m relatively confident that gives me approximately zero traction with them for my issue&#8230;in the US&#8230;on 12.04.)<\/p>\n<h3>Edit: A Few Other Notes<\/h3>\n<p>As I was running up against my desired bed-time last night as I composed this, I rushed a bit to publish, and have since thought of a few other details from my experience so far.<\/p>\n<ol>\n<li>I have <em>not<\/em> been able to reproduce a lock-up using nc -l 9999 &gt; \/dev\/null or nc -l 9999 &gt; \/some\/file\/on\/the\/hard\/drive with the other side of a gigabit link piping \/dev\/zero or \/dev\/urandom into netcat (using tcp or udp). My theory behind this is that maybe netcat is too simple of an operation, so it&#8217;s not exercising the cpu or memory enough that the rest of the system trips over it? I don&#8217;t feel especially satisfied by that explanation, though.<\/li>\n<li>I have <em>not<\/em> been able to reproduce a lock-up doing an rsync from my ssd to the spinny hard drive (both internal, sata); I wanted to try to rule out disk activity from being the culprit, so that was my attempt to isolate the symptom a bit further. I don&#8217;t know if it&#8217;s meaningful.<\/li>\n<li>I also got a lock-up one time immediately after I copied text from Thunderbird and was moving my mouse to paste it into Firefox. At the time, the only other active <q>desktop<\/q> process I&#8217;m aware of was Banshee playing music off a cifs mount (though it&#8217;d been doing that with the computer otherwise idle for a few hours up to that point).<\/li>\n<li>Two times I&#8217;ve experienced what seems to be a drop in all my active network connections: SSH sessions unrecoverably stop responding, music playback from a cifs mount stopped, and a Remmina rdp session unrecoverably stopped responding. The only evidence in any logs I can find that something went wrong is: <span style=\"font-family: monospace\">CIFS VFS: Server sark has not responded in 300 seconds. Reconnecting&#8230;<\/span> <strong>Update:<\/strong> I&#8217;m pretty sure this was caused by my computer&#8217;s IP address changing. I noticed that my computer had progressively been marching up through the DHCP lease pool, rather than sticking to its originally allocated address like it should. It&#8217;s my belief this is due to vPro\/AMT trying to poke its head up and get a DHCP lease using the same MAC address. Further investigation is merited. I also don&#8217;t know if this means anything for the bigger problem of the lockups.<\/li>\n<li>Special thanks to some Ubuntu guys who have come to my aid (<a href=\"https:\/\/plus.google.com\/106197668915186183382\/posts\/SSYZWWCwQso\">compliments of johnf<\/a>)!<\/li>\n<\/ol>\n<p><strong>Updated:<\/strong> The replacement system arrived, and <a href=\"\/blog\/2012\/07\/13\/dell-optiplex-9010-uefi-problem\/\">it appears<\/a> that maybe I&#8217;m running into a BIOS\/UEFI bug?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The History I&#8217;ve been waiting for a while to get a new desktop computer at home. Back in 2006, I was biding my time to replace my dead desktop until the Windows Vista buy your computer now and we&#8217;ll give you Vista whenever it comes out program to be officially announced by Dell, and finally [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[27,17,18,28],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-technical","tag-dell-optiplex-9010","tag-error","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/comments?post=207"}],"version-history":[{"count":13,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/207\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/207\/revisions\/223"}],"wp:attachment":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/media?parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/categories?post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/tags?post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}