Hey, I'm having trouble getting blkio.throttle.write_bps_device to
work correctly on a EC2 host running Ubuntu 11.04 w/2.6.38-8-virtual.
I've tested and tested but haven't been able to throttle IO writing.
Hopefully its something I have misconfigured :).  Any help would be
greatly appreciated.  Here we go...

----------------------------------

root@localhost$ dpkg -l | grep cgroup
ii  cgroup-bin                      0.37.1-1ubuntu2
Tools to control and monitor control groups
ii  libcgroup-dev                   0.37.1-1ubuntu2
Development libraries to develop applications that utilize control
groups
ii  libcgroup1                      0.37.1-1ubuntu2
Library to control and monitor control groups

root@localhost$ pwd
/cgroup/i0

root@localhost$ ls
blkio.io_merged                  blkio.throttle.read_iops_device
cpuacct.usage_percpu             memory.memsw.usage_in_bytes
blkio.io_queued                  blkio.throttle.write_bps_device
cpu.rt_period_us                 memory.move_charge_at_immigrate
blkio.io_service_bytes           blkio.throttle.write_iops_device
cpu.rt_runtime_us                memory.oom_control
blkio.io_serviced                blkio.time
cpu.shares                       memory.soft_limit_in_bytes
blkio.io_service_time            blkio.weight
memory.failcnt                   memory.stat
blkio.io_wait_time               blkio.weight_device
memory.force_empty               memory.swappiness
blkio.reset_stats                cgroup.clone_children
memory.limit_in_bytes            memory.usage_in_bytes
blkio.sectors                    cgroup.event_control
memory.max_usage_in_bytes        memory.use_hierarchy
blkio.throttle.io_service_bytes  cgroup.procs
memory.memsw.failcnt             notify_on_release
blkio.throttle.io_serviced       cpuacct.stat
memory.memsw.limit_in_bytes      tasks
blkio.throttle.read_bps_device   cpuacct.usage
memory.memsw.max_usage_in_bytes

root@localhost$ cat blkio.throttle.write_bps_device
202:240 524288

root@localhost$ ll /dev | grep '202, 240'
brw-rw----  1 root disk    202, 240 2011-08-04 20:29 xvdp

root@localhost$ df | grep xvdp
/dev/xvdp            220093440  47379256 172714184  22% /mnt

root@localhost$ cat tasks
31646

root@localhost$ lsof +p31646
COMMAND   PID  USER   FD   TYPE  DEVICE   SIZE/OFF   NODE NAME
dd      31646 user  cwd    DIR   202,1       4096      2 /
dd      31646 user  rtd    DIR   202,1       4096      2 /
dd      31646 user  txt    REG   202,1      51840 393438 /bin/dd
dd      31646 user  mem    REG   202,1     140254 396432
/lib/x86_64-linux-gnu/libpthread-2.13.so
dd      31646 user  mem    REG   202,1    1638120 396398
/lib/x86_64-linux-gnu/libc-2.13.so
dd      31646 user  mem    REG   202,1      31752 396434
/lib/x86_64-linux-gnu/librt-2.13.so
dd      31646 user  mem    REG   202,1     141088 396391
/lib/x86_64-linux-gnu/ld-2.13.so
dd      31646 user  mem    REG   202,1    1534640   1362
/usr/lib/locale/locale-archive
dd      31646 user    0r   REG   202,1 4096000000  16307 /tmp/fourgig
dd      31646 user    1w   REG 202,240 3220992000    186 /mnt/fourgig
dd      31646 user    2u   CHR   136,0        0t0      3 /dev/pts/0

------ 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

----------------------------------

Thanks,


-=Dusty

------------------------------------------------------------------------------
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

Reply via email to