Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MItri
Novice
1,978 Views

USB performance with X1000

Hi everyone,

for a new project we need a CPU with maximum USB Datarate / we need to copy two USB Memory Devices - 8GByte each to an Ethernet interface (GB Ethernet connected to PCIe) in minimum time. Are there any benchmarks available? Has anyone experiance with USB on Galileo? Can anyone do a quick test (copy a big file of 8GB size to /dev/null, measure time) - my gratitude would chace you eternal ;-)

Thanks Marc

Tags (1)
9 Replies
idata
Community Manager
126 Views

Hi Marc,

 

 

Thank you for contacting us. I haven't tested the Galileo's data transfer but we'll be happy to run the test for you. Just to make sure I understand your request correctly, you want to transfer a big file ~8GB from an external USB to /dev/null and measure the time it takes for it to be completed, right?

 

 

I'll be waiting for your response.

 

 

-Sergio

 

MItri
Novice
126 Views

Hi Sergio,

yes - you are right. Transfer a big file to /dev/null and measure the time.

Later on the data has to be transfered to the network but I expect that the 100MBit Interface is to slow. At least I have to reach a datarate of about 17 to 20 Mbyte per second. So if we overcome this hurdle in the first step I will get me a Galileo Board and a mPCIe GB Ethernet card and do the further test on my own.

Thanks in advance - Marc

idata
Community Manager
126 Views

Hi Marc,

 

 

I tried to run the test and did several attempts but was unsuccessful. I tried moving both directories and files to the /dev/null folder and each time the result was mv: write error: No space left on device. I did some research on the /dev/null directory and it is in fact not a directory but a file. It was also explained that you can't actually move things to /dev/null. How did you perform this test on different systems, were you successful when moving files to /dev/null?

 

 

I'll be waiting for your response

 

 

-Sergio

 

FTinetti
Honored Contributor I
126 Views

Intel Corporation wrote:

Hi Marc,

 

 

I tried to run the test and did several attempts but was unsuccessful. I tried moving both directories and files to the /dev/null folder and each time the result was mv: write error: No space left on device. I did some research on the /dev/null directory and it is in fact not a directory but a file. It was also explained that you can't actually move things to /dev/null. How did you perform this test on different systems, were you successful when moving files to /dev/null?

 

 

I'll be waiting for your response

 

 

-Sergio

Hi Sergio,

What's the actual program/command you are trying to run?

Fernando.

idata
Community Manager
126 Views

Hi FGT,

 

 

To run the test I used both the mv and cp commands. I tried to move folders and files to /dev/null. The syntax I used was cp folder_or_file_name /dev/null and mv folder_or_file_name /dev/null. The contents were transferred from a USB drive. Have you moved files to /dev/null? If you have information about this, feel free to share it with the community.

 

 

-Sergio

 

FTinetti
Honored Contributor I
126 Views

Hi Sergio,

Intel Corporation wrote:

Hi FGT,

 

 

To run the test I used both the mv and cp commands. I tried to move folders and files to /dev/null. The syntax I used was cp folder_or_file_name /dev/null and mv folder_or_file_name /dev/null. The contents were transferred from a USB drive. Have you moved files to /dev/null? If you have information about this, feel free to share it with the community.

 

 

-Sergio9

I've only used /dev/null to discard command output (usually verbosity and/or uneeded terminal output). Thus, I've never used cp or mv to /dev/null (it does not make practical sense, except for cases as the one requested by Marc).

I've tested in Galileo, and it is possible only to cp single files to /dev/null, I'll send my experiments as a reply to Marc, just in case they are useful.

Fernando.

FTinetti
Honored Contributor I
126 Views

Hi Marc,

My experiment: I think a 1.4 GByte file could provide a "good" insight in USB read performance, so I used a 4.0GB USB thumbdrive (actually, the one I had at hand...), connected to an USB OTG via the Intel Galileo USB host (where it's recognized as /dev/sda).

root@galileo:~# cd /mnt/

root@galileo:/mnt# mkdir usbdrive

root@galileo:/mnt# mount /dev/sda usbdrive/

root@galileo:/mnt# ls -lh usbdrive/

total 1.4G

...

-rwxr-xr-x 1 root root 1.4G Jun 1 2016 file.bin

...

root@galileo:/mnt# date; cp usbdrive/file.bin /dev/null; date; umount /dev/sda; date

Thu May 12 15:13:25 UTC 2016

Thu May 12 15:15:06 UTC 2016

Thu May 12 15:15:06 UTC 2016

i.e. about 1.4GB in about 101 seconds.

HTH,

Fernando.

MItri
Novice
126 Views

Hi Sergio, hi Fernando,

sorry - the community server was not reachable for me yesterday -so my answer is late. The command we used in the end is:

dd if=/dev/sda of=/dev/null bs=512 count=204800

14MByte/sec is in the range I have expected - so I think now is up to me to get me a Galileo and do the further test.

Many Thanks to you - Marc

idata
Community Manager
126 Views

Hi,

@Fernando-Thanks again for all your help and remaining involved in the community!

@Marc-Thank you for confirming you got the information you needed. Feel free to ask again in case you need further assistance.

-Sergio

 

Reply