**** BEGIN LOGGING AT Sun Nov 22 02:59:57 2009 Nov 22 18:01:23 hey guys Nov 22 18:01:43 does anyone know how to test the speed of your SD card on the sheeva plug Nov 22 18:01:51 dd Nov 22 18:02:15 dd bs=1024 count=1M if=/dev/zero of=/path/to/sdcard/speedtest.txt Nov 22 18:02:18 that'll do a 1-gig file Nov 22 18:02:20 adjust accordingly Nov 22 18:02:35 then copy a couple of big files to clear the cache Nov 22 18:02:44 and then dd if=/path/to/sdcard/speedtest.txt /dev/null Nov 22 18:02:56 the first creates the file and tests write speed, the latter tests read speed Nov 22 18:03:08 so you make a file and then copy the file to null Nov 22 18:03:14 that's what I do Nov 22 18:03:20 ok will try that not Nov 22 18:03:23 now Nov 22 18:03:24 can't comment on whether there are better ways, but this works and it's simple Nov 22 18:03:34 remember to delete the file when done :) Nov 22 18:05:38 will try now Nov 22 18:11:58 say if i want to do a 50MB file instead of 1GB would this be correct Nov 22 18:12:06 dd bs=50 count=1M if=/dev/zero of=/path/to/sdcard/speedtest.txt Nov 22 18:12:26 dd bs=50 count=1M if=/dev/mmcblk0p1 of=/path/to/sdcard/speedtest.txt Nov 22 18:12:46 cause my sd card is on 500MB Nov 22 18:13:03 yep, but a small file won't give very accurate timing Nov 22 18:13:07 still, it'll give you an idea Nov 22 18:13:21 err Nov 22 18:13:23 I wouldn't do it that way Nov 22 18:13:47 dd bs=1024 count=50K Nov 22 18:13:49 etc Nov 22 18:13:55 ok Nov 22 18:13:59 1 KB blocks, 50K times Nov 22 18:14:03 = 50M Nov 22 18:14:07 my way was ... 1 G Nov 22 18:14:12 ok Nov 22 18:14:19 bigger blocks are somewhat more efficient, more accurate Nov 22 18:14:20 to a point at least Nov 22 18:16:46 got some thing like Nov 22 18:16:46 892108+0 records in Nov 22 18:16:46 892108+0 records out Nov 22 18:16:46 44605400 bytes (45 MB) copied, 261.118 s, 171 kB/s Nov 22 18:17:01 171 kB/s to write, then Nov 22 18:17:03 that's not fast Nov 22 18:17:06 i know Nov 22 18:17:09 try reading now Nov 22 18:17:15 cheap flash media often has very slow write speeds Nov 22 18:17:22 don't know if your media is cheap but if it is, that's no surprise Nov 22 18:17:46 sorry i did it the proper way there. i did 100MB Nov 22 18:17:46 892108+0 records in Nov 22 18:17:46 892108+0 records out Nov 22 18:17:46 44605400 bytes (45 MB) copied, 261.118 s, 171 kB/s Nov 22 18:17:55 sorry this is it Nov 22 18:17:56 102400+0 records in Nov 22 18:17:56 102400+0 records out Nov 22 18:17:56 104857600 bytes (105 MB) copied, 48.0403 s, 2.2 MB/s Nov 22 18:18:02 that's better, still not fast Nov 22 18:18:17 when i had the BS=50 then i got the slow speed Nov 22 18:18:26 yep, smaller packets = less efficiency Nov 22 18:18:37 it is a cheap SD card, just finding out how to test them when i recieve my new one Nov 22 18:18:43 will try read Nov 22 18:19:01 write speed isn't crucial, though Nov 22 18:22:11 are you sure this is right dd if=/path/to/sdcard/speedtest.txt /dev/null because it is giving me Nov 22 18:22:37 dd: unrecognized operand `/dev/null Nov 22 18:23:01 did you put a ` before /dev/null? Nov 22 18:23:10 no Nov 22 18:23:12 to see for sure that it exists: Nov 22 18:23:18 ls -l /dev | grep null Nov 22 18:23:24 you should see a line for null Nov 22 18:23:26 null is there Nov 22 18:23:32 then it should work Nov 22 18:23:37 try it again Nov 22 18:23:40 of=/dev/null Nov 22 18:23:45 dd if=.../speedtest.txt of=/dev/null Nov 22 18:23:53 if you're where speedtest.txt is Nov 22 18:24:00 dd if=./speedtest.txt of=/dev/null Nov 22 18:24:13 oh yea the was it Nov 22 18:24:16 needed of= Nov 22 18:24:23 204800+0 records in Nov 22 18:24:23 204800+0 records out Nov 22 18:24:23 104857600 bytes (105 MB) copied, 0.849923 s, 123 MB/s Nov 22 18:24:30 that's very fast. Nov 22 18:24:46 of course that could be cached. Nov 22 18:24:54 oh right Nov 22 18:24:55 do this to clear the cache: Nov 22 18:24:57 it might be Nov 22 18:25:01 dd if=/dev/random of=/dev/null Nov 22 18:25:06 then hit control-c after 30 or 60 seconds Nov 22 18:25:14 and try it again Nov 22 18:25:25 it being the read from speedtest.txt Nov 22 18:26:40 same speed Nov 22 18:26:40 dd if=/dev/random of=/dev/null Nov 22 18:26:46 104857600 bytes (105 MB) copied, 0.857745 s, 122 MB/s Nov 22 18:26:47 well, there you go. Nov 22 18:26:59 it is like instance read Nov 22 18:27:21 i will update the plug wiki on how to do this cause i could not find out it there Nov 22 18:27:35 i am sure everyone like to know how to test their sd card Nov 22 18:27:36 sure, good idea Nov 22 18:27:49 works on any device btw Nov 22 18:29:45 I cheated, I put a hard disk on my SheevaPlug :) Nov 22 18:38:30 just updated the wiki http://plugcomputer.org/plugwiki/index.php/SD_Card_As_Root_File_System Nov 22 18:38:43 let me know if i went wrong any where Nov 22 18:39:02 what? you have an external hard drive attached to it Nov 22 18:40:18 I do. Nov 22 18:40:24 I'm using mine as an off-site backup device. Nov 22 18:40:29 so I needed a terabyte of space. Nov 22 18:40:38 only way to do that is with a hard disk, or a ton of flash drives :) Nov 22 18:41:03 so I have 1.5 TB of space, a 500 GB /, 1 TB for the backup partition, the leftover space (~750 MB) is for swap Nov 22 18:41:58 wow Nov 22 18:42:03 that is alot of space Nov 22 18:42:09 can the sheeva plug handle that Nov 22 18:42:15 more than I need, but if you want more than 1 TB of space, 1.5 is the next step up Nov 22 18:42:18 Yep, no problem Nov 22 18:42:29 jim@toowoomba:/proc$ df -h Nov 22 18:42:29 Filesystem Size Used Avail Use% Mounted on Nov 22 18:42:29 /dev/sda1 459G 11G 425G 3% / Nov 22 18:42:29 tmpfs 252M 0 252M 0% /lib/init/rw Nov 22 18:42:29 udev 10M 132K 9.9M 2% /dev Nov 22 18:42:31 tmpfs 252M 0 252M 0% /dev/shm Nov 22 18:42:34 /dev/sda3 183G 85G 89G 49% /adelaide/home Nov 22 18:42:37 /dev/sda2 734G 426G 271G 62% /adelaide/public Nov 22 18:42:41 500 GB for / is a bit overkill, as it turns :) Nov 22 18:42:54 but that's ok Nov 22 18:43:10 you have to go into console mode and reconfigure it to boot off USB, but it handles it fine Nov 22 18:44:41 i have a 500MB card and 500MB on the plug. nothing compared to yours Nov 22 18:44:59 what kind of speeds do you get on the hard drive through usb Nov 22 18:44:59 mine uses more power than yours :) Nov 22 18:45:00 it's not all good Nov 22 18:45:06 but for what I want to do, it's perfect Nov 22 18:45:16 I haven't tested precisely, but I've read that it's in the 20-25 MB/s range Nov 22 18:45:46 alright Nov 22 18:45:58 just wondering is the usb faster than the sd card Nov 22 18:46:15 but then the usb will use more power then the sd card Nov 22 18:46:28 total consumption is about 10 watts at full load Nov 22 18:47:01 a 2.5" laptop hard disk in an enclosure would use less power but be smaller Nov 22 18:47:10 write speed is 22.3 MB/s Nov 22 18:48:31 32.3 MB/s reading Nov 22 18:48:34 quite respectable Nov 22 18:48:51 thinking of hooking my plug up to a battery with a solar panel Nov 22 18:49:05 so adding a hard drive might be too much Nov 22 18:49:06 certainly viable Nov 22 18:49:41 I run flash on my router (PC Engines Alix 2D3) to keep it silent. plus I don't need tons of space. I used an 8G CF card but it only is using about 800MB. Nov 22 19:02:55 800MB for a router?! Nov 22 19:04:45 well, it's a fancy router. Nov 22 19:04:50 does a bunch of OpenVPN tunnels too. Nov 22 19:05:06 plus I might have put screen, irssi, etc. on it. :) Nov 22 19:05:12 Yeah, but you can do that in about 16MB Nov 22 19:05:20 692 MB actually. Nov 22 19:07:47 640k! Nov 22 19:09:25 Heh. Nov 22 19:09:33 I'm sure I could pare it down. Obviously not much need :) Nov 22 19:09:41 A router doesn't need a quarter gig of RAM either, and yet it has it :) Nov 22 19:09:53 It can be my router until my broadband is faster than 100 Mbps :) Nov 23 01:47:35 installing lighttpd + php5 + ampache Nov 23 01:47:38 preparing to rock the fuck out Nov 23 01:47:46 and end my tyranny over the house music Nov 23 01:49:08 oh, this bastard requires MySQL. tragic. Nov 23 01:51:09 i'm going to have to start using an overlay FS Real Soon Now (tm).... running out of nand space mighty quick, with only "minimal" audio server kit Nov 23 01:51:26 pulse audio + mpd + avahi + ampache + lighttpd + mysql Nov 23 01:55:01 external USB :) Nov 23 01:55:10 or stick a huge SD card in the slot. Nov 23 01:55:17 i can do either Nov 23 01:55:33 just need to actually get off my ass and figure out how to overlay /usr Nov 23 01:56:01 right now i'm hoping there are still some good openwrt docs for that Nov 23 01:56:04 i.e. move /usr to another device? Nov 23 01:56:48 no Nov 23 01:57:15 unionfs lets you do more "adventurous" things Nov 23 01:57:20 i want /usr to stay where it is Nov 23 01:57:23 ahh Nov 23 01:57:38 but any changes henceforth get backed on a different device Nov 23 01:57:39 I've not played with unionfs Nov 23 01:57:45 gotcha Nov 23 01:59:01 might try aufs2 Nov 23 01:59:21 I can be of no help on any of this :) Nov 23 01:59:30 honestly its something i've "heard about" for a long time (via my openwrt history) but havent really messed with personally thusfar Nov 23 01:59:47 I left the default installation on the nand device, and hooked up a USB drive. I needed a ton of capacity for what I wanted to do so it made sense to do that. Nov 23 01:59:58 * PhotoJim nods Nov 23 02:00:02 worth experimenting with I suppose Nov 23 02:03:04 it was an inevitability Nov 23 02:05:24 ugg aufs is another pita module Nov 23 02:05:25 fuck git Nov 23 02:05:34 git has caused everyone who used to make modules Nov 23 02:05:39 to now instead developer kernels Nov 23 02:06:35 heh. **** ENDING LOGGING AT Mon Nov 23 02:59:56 2009