Linux - Kernel This forum is for all discussion relating to the Linux kernel.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-05-2011, 10:20 AM
#1
Member
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45
Rep:
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?
07-21-2011, 07:44 AM
#2
Member
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45
Original Poster
Rep:
Nada?
08-22-2011, 07:58 AM
#3
LQ Newbie
Registered: Aug 2011
Posts: 1
Rep:
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
All times are GMT -5. The time now is 07:32 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News