From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 15 Jun 2010 17:39:57 -0400 To: 9fans@9fans.net Message-ID: <7390b81f52bc8af2a1925fa45b039597@kw.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [9fans] Inducing artificial latency Topicbox-Message-UUID: 33cf50c8-ead6-11e9-9d60-3106f5b1d025 > 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/remote/somefile .". If it's a control message, that gets > sent to the file immediately, but if it's a data write, that data > actually gets held in a queue until some amount of time (say 50ms) has > passed, to simulate network lag. After that time is up, the fs writes > to the underlying file, the data goes out, etc. instead, why don't you create a simulated ethernet device that adds in a delay before sending the packet along to a real ethernet device. 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