[PATCH#3] fake data io module for samba
PSOMOGYI at hu.ibm.com
Mon Dec 29 08:25:43 MST 2014
Volker Lendecke <Volker.Lendecke at SerNet.DE> wrote on 12/29/2014 09:11:36
> > >
> > > Yep. One thing this module could test would be some
> > > arbitrary or random delay in the async pread/pwrite
> > > operations in order to test the for example our client-side
> > > crediting algorithm. If we hold back some requests
> > > server-side, the client should fill the pipe according to
> > > the available credits and continue when they become
> > > available.
> > >
> > > Volker
> > Volker, did you mean adding the delay to the beginning of the whole
> > vfswrap_pread_recv/send, or just the async parts
> > [asys_pread_do/asys_pwrite_do] (which are not on the VFS) ?
> > I assume vfswrap_pread_recv/send VFS calls were designed to return
> > immediately.
> Yes, the _send calls are designed to return immediately
> without any delay or blocking. You could pretty easily add a
> tevent_wakeup_send to the pread_send call to wake you up
> after a read delay. This way many outstanding request would
> be handled in parallel with some random timeout.
Okay, next week I'm back and then can continue.
Random timeout is interesting, then it needs some high and low threshold
as extra params.
- add aio support
- "fakeio:destroy data" = yes extra option
- "fakeio:rnd delay hi", "fakeio:rnd delay lo" in microsecs (if hi=lo then
no random effect)
IBM Magyarországi Kft.
Infopark, Neumann János u. 1.
Phone: +36 1 382 5469
More information about the samba-technical