dm-slow , a slow down dm ( dm-error alike )
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
I'm looking for the same feature as Bernd
(http://www.redhat.com/archives/dm-devel/2006-February/msg00014.html),
for different purpose:
We need to slow down a disk access to be able to monitor some events, for testing.
There is already a dm-error (faulty.c) to simulate a defective device, why not a dm-slow for a slow device ?
I have written yet a simple unix filter to slow transfer but it can be used only in specific cases. In the same way dm-slow would accept a bandwidth parameter to limit read/write speed. Maybe it could also be changed after the device setup ( slow down speed, and then resume to full speed once finished monitoring ).
I thought that making a fork from dm-linear or dm-error would be a good start, since I'm completly new to kernel devel.
I just wonder if my idea isn't flawed by a misunderstanding of the general dm framework ?
Do you have any comment on this idea, or some advice ?
Thank you,
David G.M.
PS: this is a text-only repost, previous mail maybe caught by anti-spam
Alasdair G Kergon
maintainerQuoted 2 lines · David Guyon Martin
We need to slow down a disk access to be able to monitor some events, for testing.
Take a look at dm-delay.
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/
Alasdair
Signature · 1 line
[email protected]
Quoted 7 lines
Quoted 2 lines
We need to slow down a disk access to be able to monitor some events, for testing.
Take a look at dm-delay.
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/Alasdair
So great ! I dreamt it and it was done by Heinz Mauelshagen, who is also working on dm-loop now after Bryn Reeves. Thanks! Those two dm filters are both a must-have to me.
Hum, dm-delay accept a miliseconds parameter but I don't see the chunk size for this delay, do you have any clue ?
David