Re: [9fans] Inducing artificial latency

2010-06-22 Thread John Floren
On Tue, Jun 22, 2010 at 2:53 PM, John Floren wrote: > On Tue, Jun 15, 2010 at 10:14 PM, Gorka Guardiola wrote: >> On Wed, Jun 16, 2010 at 12:07 AM, erik quanstrom >> wrote: Last time I needed something similar, I just run a modified iostats. >>> >>> how does iostats add latency? >>> >> >>

Re: [9fans] Inducing artificial latency

2010-06-22 Thread John Floren
On Tue, Jun 15, 2010 at 10:14 PM, Gorka Guardiola wrote: > On Wed, Jun 16, 2010 at 12:07 AM, erik quanstrom > wrote: >>> Last time I needed something similar, I just run a modified iostats. >> >> how does iostats add latency? >> > > hence the modified. > Hi Gorka Do you still have your modifie

Re: [9fans] Inducing artificial latency

2010-06-16 Thread erik quanstrom
> > i don't think you would. if you're using the latency device as your > > ethernet device, no muxing is required. > > Yes, if you dedicate a port. A reasonable tradeoff in some cases. you don't need to dedicate a port. just open protocol -1. > > > Something like a tap device would allow you

Re: [9fans] Inducing artificial latency

2010-06-16 Thread Bakul Shah
On Wed, 16 Jun 2010 20:10:49 EDT erik quanstrom wrote: > > You'd need some plumbing in devether to demultiplex incoming > > packets addressed to this device (assuming it has its own MAC > > address). > > i don't think you would. if you're using the latency device as your > ethernet device, no m

Re: [9fans] Inducing artificial latency

2010-06-16 Thread erik quanstrom
> You'd need some plumbing in devether to demultiplex incoming > packets addressed to this device (assuming it has its own MAC > address). i don't think you would. if you're using the latency device as your ethernet device, no muxing is required. > Something like a tap device would allow you to

Re: [9fans] Inducing artificial latency

2010-06-16 Thread Bakul Shah
On Wed, 16 Jun 2010 18:31:17 EDT erik quanstrom wrote: > On Wed Jun 16 18:17:45 EDT 2010, n...@lsub.org wrote: > > On programs where I control the client and the server, I simulated > > it by spawning a process that did sleep and then do the write. > > > > That is, you could send many things at

Re: [9fans] Inducing artificial latency

2010-06-16 Thread EBo
> the ethernet, or shim ethernet, device seems like a better place for this. > ip is not the only protocol! that's what loopback(3) does, but without > the real network. it would be good to plug loopback or similar into a real > ethernet. it's also worth looking at loopback's implementation str

Re: [9fans] Inducing artificial latency

2010-06-16 Thread erik quanstrom
On Wed Jun 16 18:17:45 EDT 2010, n...@lsub.org wrote: > On programs where I control the client and the server, I simulated > it by spawning a process that did sleep and then do the write. > > That is, you could send many things at once (i.e., same bandwidth) > but you could pretend the thing was d

Re: [9fans] Inducing artificial latency

2010-06-16 Thread Francisco J Ballesteros
On programs where I control the client and the server, I simulated it by spawning a process that did sleep and then do the write. That is, you could send many things at once (i.e., same bandwidth) but you could pretend the thing was delayed. One tricky point was to be sure that sends were still in

Re: [9fans] Inducing artificial latency

2010-06-16 Thread John Floren
On Tue, Jun 15, 2010 at 9:45 PM, Devon H. O'Dell wrote: > 2010/6/15 John Floren : >> I'm going to be doing some work with 9P and high-latency links this >> summer and fall. I need to be able to test things over a high-latency >> network, but since I may be modifying the kernel, running stuff on >>

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Skip Tavakkolian
any reason loopback(3) wont work? it has options for delay and latency. > I'm going to be doing some work with 9P and high-latency links this > summer and fall. I need to be able to test things over a high-latency > network, but since I may be modifying the kernel, running stuff on > e.g. mordor i

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Devon H. O'Dell
2010/6/15 John Floren : > On Tue, Jun 15, 2010 at 5:45 PM, Devon H. O'Dell > wrote: >> 2010/6/15 John Floren : >>> I'm going to be doing some work with 9P and high-latency links this >>> summer and fall. I need to be able to test things over a high-latency >>> network, but since I may be modifyin

Re: [9fans] Inducing artificial latency

2010-06-15 Thread John Floren
On Tue, Jun 15, 2010 at 5:45 PM, Devon H. O'Dell wrote: > 2010/6/15 John Floren : >> I'm going to be doing some work with 9P and high-latency links this >> summer and fall. I need to be able to test things over a high-latency >> network, but since I may be modifying the kernel, running stuff on >>

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Gorka Guardiola
On Wed, Jun 16, 2010 at 12:07 AM, erik quanstrom wrote: >> Last time I needed something similar, I just run a modified iostats. > > how does iostats add latency? > hence the modified. -- - curiosity sKilled the cat

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Enrique Soriano
On Tue, Jun 15, 2010 at 11:39 PM, Jorden M wrote: > On Tue, Jun 15, 2010 at 5:29 PM, John Floren wrote: >> I'm going to be doing some work with 9P and high-latency links this >> summer and fall. I need to be able to test things over a high-latency >> network, but since I may be modifying the kern

Re: [9fans] Inducing artificial latency

2010-06-15 Thread erik quanstrom
> Last time I needed something similar, I just run a modified iostats. how does iostats add latency? - erik

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Gorka Guardiola
On Tue, Jun 15, 2010 at 11:29 PM, John Floren wrote: > I'm going to be doing some work with 9P and high-latency links this > summer and fall. I need to be able to test things over a high-latency > network, but since I may be modifying the kernel, running stuff on > e.g. mordor is not the best opti

Re: [9fans] Inducing artificial latency

2010-06-15 Thread erik quanstrom
> > the only trick will be getting the simulated ethernet to > > grab the real ethernet during setup. i imagine that you'll > > need something like > >ether0=type=fake > >fake=real=#l1/ether1 i=10 iσ=20 o=5 oσ=0 > > in plan9.ini > > > > - erik > > > > Could one write a filesystem s

Re: [9fans] Inducing artificial latency

2010-06-15 Thread David Leimbach
On Tue, Jun 15, 2010 at 2:39 PM, erik quanstrom wrote: > > I've come up with a basic idea, but before I go diving in I want to > > run it by 9fans and get opinions. What I'm thinking is writing a > > synthetic file system that will collect writes to /net; to simulate a > > high-latency file copy,

Re: [9fans] Inducing artificial latency

2010-06-15 Thread erik quanstrom
> I've come up with a basic idea, but before I go diving in I want to > run it by 9fans and get opinions. What I'm thinking is writing a > synthetic file system that will collect writes to /net; to simulate a > high-latency file copy, you would run this synthetic fs, then do "9fs > remote; cp /n/re

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Devon H. O'Dell
2010/6/15 John Floren : > I'm going to be doing some work with 9P and high-latency links this > summer and fall. I need to be able to test things over a high-latency > network, but since I may be modifying the kernel, running stuff on > e.g. mordor is not the best option. I have enough systems here

Re: [9fans] Inducing artificial latency

2010-06-15 Thread Jorden M
On Tue, Jun 15, 2010 at 5:29 PM, John Floren wrote: > I'm going to be doing some work with 9P and high-latency links this > summer and fall. I need to be able to test things over a high-latency > network, but since I may be modifying the kernel, running stuff on > e.g. mordor is not the best optio

[9fans] Inducing artificial latency

2010-06-15 Thread John Floren
I'm going to be doing some work with 9P and high-latency links this summer and fall. I need to be able to test things over a high-latency network, but since I may be modifying the kernel, running stuff on e.g. mordor is not the best option. I have enough systems here to do the tests, I just need to