LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-09-2019, 12:36 AM   #1
kcmetercec
LQ Newbie
 
Registered: Oct 2019
Posts: 1

Rep: Reputation: Disabled
zynq7020 usb2.0 in mass storage device mode with emmc,and it's speed is too slow


version of kernel: 4.4.0-xilinx

Hi guys,
I have followed https://xilinx-wiki.atlassian.net/wi...+Device+Driver to config zynq7020 usb2.0 as mass storage device,it worked.

The problem is:

If i use SDRAM as storage media(which means i use dd if=/dev/zero of=/tmp/mydev count=200 bs=1M),the speed of PC send file to zynq is about 27MB/s.

But if i use emmc as storage media(which means i use dd if=/dev/zero of=/home/root/mydev count=200 bs=1M),the speed of PC send file to zynq is only about 500KB/s.

What have i tried:
I used iozone to test emmc's read and write performance,below it's result(write speed is about 9MB/s,read speed is about 20MB/s):

Quote:
./iozone -a -n 512M -g 1G -i 0 -i 1 -i 5 -f /mnt/data/iozone -Rb ./iozone.xls

The top row is records sizes, the left column is file sizes
Writer Report
4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
524288 0 0 0 0 9695 9508 9758 9546 9365 9651 9770 9511 9299
1048576 0 0 0 0 9132 9054 9110 9035 8826 9206 8903 9261 8837
Re-writer Report
4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
524288 0 0 0 0 9729 9863 9820 9766 9697 9614 9906 9661 9541
1048576 0 0 0 0 9263 9054 9131 8997 8933 9315 8986 9166 9058
Reader Report
4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
524288 0 0 0 0 19682 19809 19871 19824 19534 19915 19983 19781 20078
1048576 0 0 0 0 19662 19954 19775 19982 19823 19845 20067 20129 20270
Re-reader Report
4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
524288 0 0 0 0 20102 20110 20128 20112 20121 20198 20219 20353 20704
1048576 0 0 0 0 20140 20132 20135 20137 20155 20169 20204 20277 20441
Stride Read Report
4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
524288 0 0 0 0 25346 31185 32514 33926 34923 34402 33168 30944 31275
1048576 0 0 0 0 18271 18272 20404 21027 21280 21323 21223 21556 21400
so the emmc's driver is correct.

Is usb's driver something wrong?I'm not family with linux usb's framework.How can i fix this issue?

Thanks.

Last edited by kcmetercec; 12-09-2019 at 06:21 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: My Nerd Life: Too Loud, Too Funny, Too Smart, Too Fat LXer Syndicated Linux News 0 01-24-2014 05:21 AM
Help!!! after go to deep sleep mode, eMMC consumes more power than idle. apollocheun Linux - Mobile 1 10-10-2012 02:07 AM
Help! after go to deep sleep mode, eMMC consumes more power than idle. apollocheun Linux - Embedded & Single-board computer 1 10-09-2012 09:29 PM
usb mass storage too slow all4tux Linux - Hardware 3 12-09-2005 05:52 AM
pci usb2 card and mass storage. Er how??? BashTin Linux - Hardware 2 10-17-2003 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration