LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-14-2011, 07:53 AM   #1
markos87
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:
Code:
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:

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

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

pid_1=$!
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 &

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

wait

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 07:56 AM.
 
  


Reply


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 10:52 AM
bandwidth limiting gubak Linux - Networking 1 03-02-2005 07:51 AM
bandwidth limiting help!!! jojo1031 Linux - Networking 1 08-23-2004 10:05 AM
Bandwidth Limiting boundless Linux - Networking 2 04-15-2003 03:07 PM
Bandwidth Limiting hawkpaul Linux - Networking 1 01-01-2002 02:45 PM


All times are GMT -5. The time now is 02:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration