LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-05-2011, 10:20 AM   #1
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Rep: Reputation: 0
Question dm-ioband


Hello guys,

I'mt trying to test dm-ioband my machine. I managed to compile the patch successfully on a 2.6.36 as the official patch was only for 2.6.32.

Well the problem with now is how to test it.

My current scenario is:

Create 2 iobands and mount them
Code:
echo "0 $(blockdev --getsize /dev/sdb1) ioband /dev/sdb1 1 0 0 none weight 0  :40" | dmsetup create ioband1 && echo "0 $(blockdev --getsize /dev/sdb2) ioband /dev/sdb2 1 0 0 none weight 0  :80" | dmsetup create ioband2 && mkfs.ext3 /dev/mapper/ioband1 && mount /dev/mapper/ioband1 /mnt1 && mkfs.ext3 /dev/mapper/ioband2 && mount /dev/mapper/ioband2 /mnt2
Use fio to test speed and I/Os
Code:
cd /mnt1
fio  --direct=1 --rw=randwrite --bs=4k --size=10m --numjobs=10 --runtime=10 --group_reporting --name=file1&
cd /mnt2
fio  --direct=1 --rw=randwrite --bs=4k --size=10m --numjobs=10 --runtime=10 --group_reporting --name=file2&
Well i don't understand why things don't work as they should.

The results are:
Code:
file1: (g=0): rw=randwrite, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
...
file2: (g=0): rw=randwrite, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
fio 1.55
...
file1: (g=0): rw=randwrite, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
fio 1.55
Starting 10 processes
file2: Laying out IO file(s) (1 file(s) / 10MB)
Starting 10 processes
file1: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file1: Laying out IO file(s) (1 file(s) / 10MB)
file1: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file1: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file2: Laying out IO file(s) (1 file(s) / 10MB)
file1: Laying out IO file(s) (1 file(s) / 10MB)
file1: Laying out IO file(s) (1 file(s) / 10MB)K /s] [0 /0  iops] [eta 49710d:06h:28m:01s]
file1: Laying out IO file(s) (1 file(s) / 10MB)K /s] [0 /0  iops] [eta 49710d:06h:27m:47s]
file1: Laying out IO file(s) (1 file(s) / 10MB)K /s] [0 /0  iops] [eta 49710d:06h:27m:40s]
file1: Laying out IO file(s) (1 file(s) / 10MB)K /s] [0 /0  iops] [eta 49710d:06h:27m:35s]
file1: Laying out IO file(s) (1 file(s) / 10MB)K /s] [0 /0  iops] [eta 49710d:06h:26m:44s]
Jobs: 10 (f=10): [wwwwwwwwww] [60.0% done] [0K/0K /s] [0 /0  iops] [eta 00m:04s]        s]
file2: (groupid=0, jobs=10): err= 0: pid=524
  write: io=40960 B, bw=424 B/s, iops=0 , runt= 96508msec
    clat (usec): min=92884K, max=96506K, avg=96427419.48, stdev= 0.00
     lat (usec): min=92884K, max=96506K, avg=96427422.48, stdev= 0.00
    bw (KB/s) : min=    0, max=    0, per=nan%, avg= 0.00, stdev= 0.00
  cpu          : usr=0.00%, sys=0.00%, ctx=16, majf=0, minf=307
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued r/w/d: total=0/10/0, short=0/0/0

     lat (msec): >=2000=100.00%

Run status group 0 (all jobs):
  WRITE: io=40KB, aggrb=0KB/s, minb=0KB/s, maxb=0KB/s, mint=96508msec, maxt=96508msec

Disk stats (read/write):
  dm-1: ios=1/23107, merge=0/0, ticks=1580/24842300, in_queue=24836720, util=100.00%, aggrios=2/1851, aggrmerge=0/41514, aggrticks=1300/811220, aggrin_queue=812430, aggrutil=100.00%
    sdb: ios=2/1851, merge=0/41514, ticks=1300/811220, in_queue=812430, util=100.00%
Jobs: 2 (f=2): [________ww] [13.7% done] [0K/16K /s] [0 /3  iops] [eta 01m:28s]         s]
file1: (groupid=0, jobs=10): err= 0: pid=534
  write: io=40960 B, bw=3023 B/s, iops=0 , runt= 13545msec
    clat (usec): min=11008K, max=13543K, avg=13505616.44, stdev= 0.00
     lat (usec): min=11008K, max=13543K, avg=13505620.37, stdev= 0.00
    bw (KB/s) : min=    0, max=    0, per=0.00%, avg= 0.00, stdev= 0.00
  cpu          : usr=0.00%, sys=0.06%, ctx=20, majf=0, minf=303
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued r/w/d: total=0/10/0, short=0/0/0

     lat (msec): >=2000=100.00%

Run status group 0 (all jobs):
  WRITE: io=40KB, aggrb=2KB/s, minb=3KB/s, maxb=3KB/s, mint=13545msec, maxt=13545msec

Disk stats (read/write):
  dm-0: ios=1/23122, merge=0/0, ticks=200/30848620, in_queue=30769510, util=100.00%, aggrios=2/1916, aggrmerge=0/43317, aggrticks=1300/816520, aggrin_queue=816730, aggrutil=100.00%
    sdb: ios=2/1916, merge=0/43317, ticks=1300/816520, in_queue=816730, util=100.00%
400 B vs 3000??? How come?
 
Old 07-21-2011, 07:44 AM   #2
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Original Poster
Rep: Reputation: 0
Nada?
 
Old 08-22-2011, 07:58 AM   #3
bluewhale009
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Smile hi,help me

i wanted to use dm-ioband on kernel-2.6.38, how do i handle this?
please help me in details,such as, what package and the order
 
  


Reply



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
DM-ioband sethusubbiah Linux - Newbie 1 09-08-2010 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:13 PM.

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
Open Source Consulting | Domain Registration