{"id":633,"date":"2008-11-20T23:47:05","date_gmt":"2008-11-21T07:47:05","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=633"},"modified":"2008-11-20T23:48:08","modified_gmt":"2008-11-21T07:48:08","slug":"sd-and-me","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/sd-and-me\/","title":{"rendered":"SD And Me"},"content":{"rendered":"<p>When <a href=\"http:\/\/multimedia.cx\/eggs\/eee-pc-multimedia\/\">I got my Eee PC last December<\/a>, I was exposed to 2 computer things I had never dealt with before: wireless networking and <a href=\"http:\/\/en.wikipedia.org\/wiki\/Secure_Digital_card\">SD memory<\/a> (<em>yeah, I&#8217;m behind the curve technologically; what of it?<\/em>). The Eee PC &#8212; at least the 701 &#8212; is not outfitted with a great deal of storage, only 4 GB SSD. An easy way to expand the capacity is to add an SD card. I did my homework on the technology because I saw that there were varying prices among many brands. Plus, they all seemed to be rated using an &#8220;X&#8221; speed. It turns out that this speed is the same as for compact discs (X = 150 kilobytes\/sec, the minimum speed needed to play an audio CD).<\/p>\n<p>I settled on a 133X PNY brand 2GB SD card for my Eee PC. The Xandros-based OS recognized it right away and it seemed to work just fine&#8230; except for one minor detail&#8211; its write speed was mind-bogglingly slow, about 350 kilobytes\/sec, so about 2.5X. The read speed was fine, though. I clocked it in the range of at least 120X. This colored my perception of SD cards for much of this year &#8212; really fast to read and ludicrously slow to write &#8212; and I mainly used the SD card for storing large multimedia samples and other data that didn&#8217;t need to change often. I wondered how SD could be so widely used with such an abysmal write speed. It seems to be quite popular with cameras. I decided maybe that&#8217;s why cameras pack absurd amounts of RAM&#8211; to cache pictures until they can finally be dumped to storage. I asked other people about their experiences with SD memory but no one had thought to profile the stuff. Maybe they were fine with the slow write speeds?<\/p>\n<p>I just bought a new digital camera and a 150X Transcend brand 2GB SD card. I couldn&#8217;t get the card to work in my camera (though the piddly 32 MB card included with the camera works fine). Before I returned the card, I decided to try it in my Eee PC. It worked pretty handily in there, so I proceeded to copy the data off of the PNY card and onto the Transcend card so I can perhaps use the PNY card in the camera. Large files were being written to the Transcend card in no time and so I profiled it a little more carefully. I saw write speeds of over 7 MB\/sec. Okay, so this card definitely gets to live in my Eee PC.<\/p>\n<p>But do I really want to put this slow PNY card in my camera? I decided to try the PNY one last time in the Eee PC. Suddenly, I saw outrageously high (compared to before) write speeds on the PNY. What&#8217;s going on?<\/p>\n<p>One thing has changed in the interim: I have moved from using <a href=\"http:\/\/multimedia.cx\/eggs\/mini-considerations\/\">the Xandros-based Eee PC Linux to using Ubuntu-Eee<\/a>. The only explanation I have at this point based on the available data is that the original OS had a <em>really<\/em> substandard SD card driver.<\/p>\n<p>What have I learned from this exercise? I don&#8217;t know, maybe that I shouldn&#8217;t have such low expectations. If anyone cares about my precise methodology:<\/p>\n<pre>\r\n # create a file of random garbage that is roughly 768 MB large\r\n $ dd if=\/dev\/urandom of=randomfile bs=1024 count=768000\r\n # this Eee PC has 512 MB of RAM; the file will not be cached in RAM\r\n $ dd if=randomfile of=sdcard\/randomfile\r\n<\/pre>\n<p>The SD cards are formatted with ext2. This methodology is a little different than the one I found on <a href=\"http:\/\/ossguy.com\/?p=27\">ossguy&#8217;s blog<\/a> where he profiled by reading and writing raw sectors. He did an undeniably thorough job, though, testing 5 cards against 3 different interfaces.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I got my Eee PC last December, I was exposed to 2 computer things I had never dealt with before: wireless networking and SD memory (yeah, I&#8217;m behind the curve technologically; what of it?). The Eee PC &#8212; at least the 701 &#8212; is not outfitted with a great deal of storage, only 4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-633","post","type-post","status-publish","format-standard","hentry","category-general"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=633"}],"version-history":[{"count":4,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/633\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/633\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}