Saturday, May 02, 2009

Pogoplug performance

Now that I've hooked pogoplug onto a fully non-blocking gigabit switch, the network shouldn't be the bottleneck anymore (or if it still is, I'd be really happy) and so finally I have the setup to test pogoplug's performance. Feeling lazy about it, I decided to just run some file copy operations :)

Here's what I got:

First, I wanted to see pogoplug + Maxtor OneTouchPlus 750GB disk performance. The disk is formatted in NTFS, and is hooked up to pogoplug through a USB2 hub. 

I first ran a file copy inside pogoplug, that copies a single 1GB file onto the same disk (hence there's 1GB of read traffic and 1GB of write traffic onto the same disk). It took 232 seconds - this is sooooooo slow (only 2GB/232 ~= 8MB/sec). So I measured only the read speed by running "cat file > /dev/null" with the same 1GB file, and it only took 44s -- 1GB/44 > 20MB/s. 20MB/s read speed is quite reasonable :)

Now across the network, I ran "scp" from a windows box - this doesn't really test the pure network copy performance, as scp would require quite a bit of CPU power to encrypt the traffic. With scp, I got only about 2.2MB/s which I thought is somewhat abyssmal (this is on a gigabit network).  However, it turns out it isn't that bad, compared to samba. 

I tried copying over samba and gave up after waiting about a minute (at that point, the copy progress bar said 15 minutes left - this would mean nearly 1MB/s). So I tried pogoplug device (you know, the pogoplug's software that makes any drives on pogoplug show up as windows' local disk). It took 146 seconds to copy 1GB file from pogoplug to a Windows box - that's about 7MB/s. When I asked about samba to pogoplug support, they mentioned that their software is much faster than samba, and now I can believe that :)

While it's still not fast enough to hit 20MB/s disk speed bottleneck, 7MB/s is fast enough to saturate my 802.11g wireless network and probably fast enough to stream HD contents - I'll have to try that later to confirm. So all in all, I'm reasonably happy about the performance - when using pogoplug device directly at least - and looking forward to using it as a media streaming box :)


6 comments:

Unknown said...

내가 이걸 소시적에 해봐서 하는 말인데... 기가빗을 풀로 돌리는건 레이어에 수직갱이라도 뚫지 않는 이상 무리지... -_-; 그런게 없는 보통 어플이었을 때는 잘해봐야 300 Mbps정도가 한계였던듯 싶다.

- JS

Spark said...

수직갱...ㅋㅋㅋ. 300Mbps 씩이나 나오면 투덜거릴 일두 없쥐. Disk IO가 20MB/s면 이래저래 protocol overhead랑 치고 나면 wire에서는 한 200Mbps 근처는 될텐데, 고만큼이 안나오는거쟈너.

Dave said...

Have you tried running NFS on the pogoplug? I got it working and find the performance to be very nice, but I max out at 100 mbit due to my network.

Spark said...

@Dave
Not yet, but now that you've asked, I'll have to find some time in the weekend to do that :)
Given scp ran "only" up to 20MB/s, I suspect I won't see much better mileage out of it (though probably better than 100Mbps), but we'll have to see...

Dave said...

scp has the encryption overhead (on both ends), so I would expect NFS to be better. If dropbear supported it, I suppose I'd be happy with sshfs.

Spark said...

Yes, scp needs more CPU, but then again, it's only a single tcp stream, and minimal interaction, whereas NFS involves much more interaction. But we'll see which wins :)