Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-14-2011, 06:53 AM   #1
LQ Newbie
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
dm-ioband : limiting bandwidth for specifics jobs

Hello everybody,

This is my situation:
--I'm working with only one partiton so i made:
echo "0 $(blockdev --getsize /dev/sda3) ioband /dev/sda3 1 0 0 none weight 0 :100" | dmsetup create ioband1
mkfs.ext3 /dev/mapper/ioband1
mount /dev/mapper/ioband1 /mnt
2) Now I have two job to assign on the same partition:

---job_1: I want to assign to this job the 80% of bandwidth
---job_2: have the 20% of BW.

I've tried to get the PID of both the job and made:

arg="--size=30m --rw=randrw --numjobs=2 --group_reporting "

./fio $arg --name=$! --directory=/mnt --output=io1.log & 

dmsetup message ioband1 0 type user
dmsetup message ioband1 0 attach $pid_1
dmsetup message ioband1 0 weight $pid_1:80
echo $pid_1

./fio $arg --name=$! --directory=/mnt --output=io2.log &

dmsetup message ioband1 0 attach $pid_2
dmsetup message ioband1 0 weight $pid_2:20
echo $pid_2


But I think that somethings doesn't work as I wish...
Anyone can help me please??

Thank you...

Last edited by markos87; 09-14-2011 at 06:56 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Limiting bandwidth - PLEASE HELP lukeiam Fedora 3 07-20-2006 09:52 AM
bandwidth limiting gubak Linux - Networking 1 03-02-2005 06:51 AM
bandwidth limiting help!!! jojo1031 Linux - Networking 1 08-23-2004 09:05 AM
Bandwidth Limiting boundless Linux - Networking 2 04-15-2003 02:07 PM
Bandwidth Limiting hawkpaul Linux - Networking 1 01-01-2002 01:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:04 AM.

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