On Mon, Aug 08, 2011 at 10:42:50AM -0500, Dusty Hall wrote: > That worked, thanks! What are my options for throttling data via cp? > ie: cp /tmp/fourgigfile /mnt/fourgigfile > > FWIW, I'm trying to copy files from one filesystem to another without > sacrificing system performance. This maybe where I should be using > blkio.weight but I'd like to be able to put a hard limit on the speed > of the copy. >
You might want to put limit on root cgroup. Though its not a very good idea as any system process/thread also doing IO will be blocked on that disk. Still you can give it a try. Thanks Vivek > Thanks again, > > > -=Dusty > > > > On Mon, Aug 8, 2011 at 8:21 AM, Vivek Goyal <vgo...@redhat.com> wrote: > > On Sun, Aug 07, 2011 at 11:39:33AM -0700, Dhaval Giani wrote: > >> [Adding vgoyal to the cc] > > > > [..] > >> > ------ process 31646 ------ > >> > > >> > user@localhost$ dd if=/tmp/fourgigfile of=/mnt/fourgigfile bs=4k > >> > count=1000000 > >> > 1000000+0 records in > >> > 1000000+0 records out > >> > 4096000000 bytes (4.1 GB) copied, 58.6709 s, 69.8 MB/s > > > > Currently blkio throttle does not control the buffered writes. So try > > above commnad with oflag=direct and it should help. > > > > Thanks > > Vivek > > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel