TonidoPlug2 Network speed sucks :(

Support for your TonidoPlug
singh.gurjeet
Rookie Tonidoid
Rookie Tonidoid
Posts: 4
Joined: Sun Nov 06, 2011 1:19 pm

TonidoPlug2 Network speed sucks :(

Postby singh.gurjeet » Sun Nov 06, 2011 2:20 pm

I recently bought the TonidoPlug2 and am facing _very_ low network speeds within the LAN :(

I did some research and found a post that predates TonidoPlug2's release [1]. In that post it is claimed that the OP got almost 18 Mb/s (I am not sure if he meant mega-Bits or mega-Bytes per sec; I am assuming megabytes, since he says the speed is almost as if the USB drive was connected to the laptop directly).

Originally I had configured the plug to connect over the wireless, and I got around 0.5 MBytes/s. In the hopes of improving network transfer, I moved the plug to wired connection and not it clocks 1.5 MBytes/s, which is still pretty low; so low that I cannot play movies stored on my 1 TB USB drive, attached to the plug. (Surprisingly, the same movies play nicely on my XBoz, using Tonido's utility to expose files, "My Media Files" -> "Media Folders" )

Here's my setup:

Plug connected to the router with a wire.
1 TB Western Digital drive connected to the plug using USB.
Linux laptop connected over the wireless
Windows laptop connected over the wireless.
XBox 360 connected over the wireless.

The 1 TB drive is capable of 30 MBytes/s transfers, which I had tested in the paste when I used to connect it directly to my Linux Laptop.

For the same drive, when connected to the plug, I can get 22 MBytes/s read rate, using the method listed in [2].

Using Linux's scp commend to copy data from one machine to another machine (TonidoPlug not involved), both machines over the wireless, I can get 8.7 MBytes/s. So I conclude that the wireless of my router is capable of at least 8.7 MB/s sustained throughput. Command used listed in [3]

Now if I use a similar scp command to copy a file from the Plug's own storage (listed in [4]), I get a throughput of just 1.7 MB/s

And if I use the same scp command to copy a file from the attached 1 TB drive, I get slightly worse 1.5 MB/s. See command in [5].

As noted earlier, surprisingly, the XBox 360 can play the same movies pretty smoothly, while the media players on my Linux and Windows machines are too glitchy! Using `iptraf` utility, I can see that the outgoing rate of bytes on eth0 is between 135 and 150 kBytes/s. Probably XBox is optimizing the transfers.

These speeds a literally not acceptable since the primary purpose of the plug for me is to server my 1 TB drive as a NAS storage device. Yesterday when my wife tried to copy 400 MB of music from that drive to her MP3 player connected to Windows, the copy process estimated it'll take a few hours to copy the files.

So my question is, am I doing something wrong? Can I tune something to speed things up?

Please let me know if you'd like to some other tests performed; I'd like to see the same 18 mb/s (if it is megabytes units) as reported in [1].

Thanks,

[1] http://www.tonido.com/forum/viewtopic.php?f=32&t=3041

[2] # dd if=/media/disk1part1/Movies/xyz of=/dev/null bs=1024
710330+0 records in
710330+0 records out
727377920 bytes (727 MB) copied, 31.9485 s, 22.8 MB/s

[3] $ scp gurjeet@192.168.0.105:~/some_file_250_MB_long /dev/null
gurjeet@192.168.0.105's password:
ppasmeta-8.4.7.20-linux.bin 100% 268MB 8.7MB/s 00:31

[4] $ scp root@192.168.0.100:/var/cache/apt/pkgcache.bin /dev/null
pkgcache.bin 100% 13MB 1.7MB/s 00:08

[5] $ scp root@192.168.0.100:/media/disk1part1/Movies/xyz /dev/null
xyz 5% 40MB 1.5MB/s 06:53 ETA

Paladine
Regular Tonidoid
Regular Tonidoid
Posts: 14
Joined: Thu Oct 20, 2011 9:57 pm

Re: TonidoPlug2 Network speed sucks :(

Postby Paladine » Sun Nov 06, 2011 6:19 pm

scp encrypts the data for transfer. This involves heavy CPU use. Since the Tonido2 has a lousy CPU, my guess is that you're saturating the CPU - not the I/O layer. Try using an uncompressed transfer mechanism, samba or other, and see if you get faster speeds. FTP is ideal because FTP has no transfer overhead.

singh.gurjeet
Rookie Tonidoid
Rookie Tonidoid
Posts: 4
Joined: Sun Nov 06, 2011 1:19 pm

Re: TonidoPlug2 Network speed sucks :(

Postby singh.gurjeet » Mon Nov 07, 2011 8:35 am

Paladine,

The copy attempts I made from Windows and Linux GUI was over the samba exports, and I see this slow-speed over there too!

FWIW, here's my /etc/fstab line that mounts the samba export from the plug:

//192.168.0.100/disk1part1 /media/1TB cifs username=,password=,file_mode=0777,dir_mode=0777 0 0

I'll give FTP a try when I find time, but I don't think that'll be a solution since most of the times I want to be able to access the USB drive from the GUI.

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: TonidoPlug2 Network speed sucks :(

Postby madhan » Mon Nov 07, 2011 10:33 am

What exact format is your file system on your drive?

singh.gurjeet
Rookie Tonidoid
Rookie Tonidoid
Posts: 4
Joined: Sun Nov 06, 2011 1:19 pm

Re: TonidoPlug2 Network speed sucks :(

Postby singh.gurjeet » Mon Nov 07, 2011 11:11 am

Madhan,

It is NTFS; not sure of the version though. But I don't think it matters, because I have done the test showing that accessing a file from within the plug I get a read rate of 22 MB/s

For the same drive, when connected to the plug, I can get 22 MBytes/s read rate, using the method listed in [2].


Oh, BTW, I think I forgot to mention this in my original post: I love the plug :)

Regards,

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: TonidoPlug2 Network speed sucks :(

Postby madhan » Mon Nov 07, 2011 11:21 am

It is not fully clear why the speed is slow.

When you download the file using Tonido's web interface what is the download speed you get?

For best performance, we suggest using an EXT3 formatted filesystem. If you have a thumb drive you can try it out.

singh.gurjeet
Rookie Tonidoid
Rookie Tonidoid
Posts: 4
Joined: Sun Nov 06, 2011 1:19 pm

Re: TonidoPlug2 Network speed sucks :(

Postby singh.gurjeet » Mon Nov 07, 2011 11:30 am

Madhan,

I am not sure I agree with you. The dd command is able to read data from the same NTFS formatted USB disk at a rate of 22 MB/s

[2] # dd if=/media/disk1part1/Movies/xyz of=/dev/null bs=1024
710330+0 records in
710330+0 records out
727377920 bytes (727 MB) copied, 31.9485 s, 22.8 MB/s


This implies that the plug can read the NTFS data at a pretty decent rate just fine. So I *think* it is either the network link or something else above the NTFS driver that is slow/throttling the transfer.

I'll try your EXT3 theory in the evening when I get home.

Regards,

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: TonidoPlug2 Network speed sucks :(

Postby madhan » Mon Nov 07, 2011 11:48 am

I actually meant to write "It is *not* fully clear why the speed is slow"
(missing not).

Yes, so I agree that you should be getting higher speeds than what you are seeing.

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: TonidoPlug2 Network speed sucks :(

Postby madhan » Mon Nov 07, 2011 1:42 pm

Just as a sanity test, with a SATA Hard Drive connected to my Wired TP2 (formatted EXT3) downloading a file via Tonido Web interface (via my LAN), I get above 15 MB/s via Chrome. See screenshot.

2011-11-07_124119.png
2011-11-07_124119.png (7.21 KiB) Viewed 3452 times


Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 5 guests