How can I limit USB2.0 transfer rate on linux?

I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they want, let say 10 Mbps. But I don't know where to start or what to do. I will be very glad if you have any idea. An useful library or function or whatever. Thanks in advance for any help.

-------------Problems Reply------------

If you want to limit GLOBAL USB2.0 rate on the whole system, then you must probably write a Linux Kernel module. Learning kernel programming is very hard and not something that is considered a "simple project".

If you want to do it for a simple application then just put some timers in the program that "throtte" data writing/reading according to user selection. Notice that this code has to be in the application itself.

Category:linux Views:1 Time:2010-08-10

Related post

  • wxWidgets Socket Transfer Rate 2011-07-25

    What is the best way to figure out the transfer rate of a wxWidgets socket. Is there a built in way to do this, or would I be better getting the time before a transfer of data and then after its done and comparing them? I ask because I want to be abl

  • How to limit transfer rate using HttpHandler 2008-12-06

    I'm programming a file transfer handler with speed limit feature, the rate based on user level. How do I control/calculate transfer rate in HttpHandler?. Some asp.net resource tell me that use Thread.Sleep will block asp.net thread pool. ------------

  • Programatically determining maximum transfer rate 2010-05-07

    I have a problem that requires me to calculate the maximum upload and download available, then limit my program's usage to a percentage of it. However, I can't think of a good way to find the maximums. At the moment, the only solution I can come up w

  • Preloaded Acer Aspire V5 VERY slow data transfer rates 2013-04-08

    I just purchased an Acer Aspire V5.571 w/ 8Gig of RAM and a 750 Gig HD, i5 processor. I am seeing some horribly slow transfer rates. I copied about 3 gigs to a new NTFS partition and it took about 10 minutes. I copied about 7 gigs to a USB2 device an

  • what is disc data transfer rate 2013-09-14

    When I check my score for my computer I notice that disc data transfer rate is the smallest number. Could someone tell me what this means, and also how I improve it. Thank you --------------Solutions------------- Hello June, Without getting overly de

  • Transfer Rate to external usb hard drive is very slow. 2014-06-22

    Original Title: message of can perform faster is attached to usb 2.0 port but ones that show cannot be selected__ Freecom 400GB hard drive usb 2.0 very very slow transfer rate (946Kb < 1Mb) --------------Solutions------------- Hey barry75, What is

  • How can I determine the transfer rate ? 2008-09-19

    Can I determine from an ASP.NET application the transfer rate, i.e. how many KB per second are transferd? --------------Solutions------------- You can set some performance counters on ASP.NET. See here for some examples. Some specific ones that may h

  • Using TeraTerm to send a file, transfer rate, time 2009-05-07

    I'm using TeraTerm to transfer a file through a dial up connection, for this I will use ttl scripts in both ends to automatize it. I would like to measure the time it takes to transfer the file, or the transfer rate... but I don't know how to do it?

  • How to get current Transfer Rate in Commons HttpClient 3.x 2009-11-16

    I have some code that does a bunch of HTTP GETs, POSTs, and PUTs using Commons HttpClient 3.1. I'd like to provide a current transfer speed indicator in my GUI, but was unable to find any methods for determining the transfer rate of a HttpMethod bein

  • Asp.net fileupload transfer rate 2009-12-02

    Is there any way to easly know Transferrate between server/client during un filupload upload? Because uploading a file of 4,13Mb take about 5 or 6 minutes.... Is there anyway we can track it, by writing it in flatfile, email, response.write anything!

  • Determining a computer's maximum hard drive data transfer rate programmatically with C# 2010-06-30

    I have written a small WPF widget using C# that displays the current CPU activity, RAM used and disk activity as three small percentage type bars. I have used the following PerformanceCounters for this: (diskCounter PerformanceCounter returns current

  • android data transfer rate 2010-11-23

    how to find out the data transfer rate while sending and recieving the data from server in android application. --------------Solutions------------- You could add some code within your download/upload code such as for instance: InputStream is = ...;

  • Measure data transfer rate over tcp using c# 2011-01-09

    i want to measure current download speed. im sending huge file over tcp. how can i capture the transfer rate every second? if i use IPv4InterfaceStatistics or similar method, instead of capturing the file transfer rate, i capture the device transfer

  • is there anyway of monitoring the transfer rate of a urllib2 transfer? 2011-02-20

    Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file with urllib2. I have the timeout set but i believe it wont go off if my transfer stalls. I'm wondering if there's anyway of monitoring the urllib2 transfer and make

  • Improving Data Transfer Rate on Amazon EC2 2011-05-06

    I've got a 1-Gig EBS Volume mounted to an EC2 instance, I am copying 600MB of binary data from a Local Hard Drive (via RDS Connection) and the copying process windows is showing 10 Hours remaining. Though I have a High Speed connection (100+Mbps) Wha

  • Transfer-rate of flash drive vs hard drive 2011-11-22

    There is no doubt that USB Flash drive is much faster than hard disk drive (except solid state) as a typical HDD contains moving parts. But the fact is that transmission of data from USB flash drive to system is slower than hard drive's. When my syst

  • Transfer Rate behavior of increasing request sizes 2011-11-29

    I've implemented a simple multi-threaded HTTP server for my programming assignment a couple weeks ago. In this assignment users specified a document size via browser (like localhost:port/250 for a 250 bytes long document) and my program created a htm

  • how to calculate the transfer rate speed kb/s SOCKETS c# 2012-01-15

    How to calculate the transfer rate speed in kilobyte per second, i used stopwatch but it doesnt work , because it gives me an error about div on zero ( count / 0) public void sendFile(string filePath) { Stopwatch stopWatch = new Stopwatch(); FileInfo

  • RabbitMQ transfer rates speed up? 2012-03-05

    I look for ideas how to speed up message transfers through RabbitMQ. I installed the latest version on Windows 64 bit, running a server on my local machine on which I also publish and consume to/from through a C# implementation. I initially maxed out

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.165 (s). 11 q(s)