From: Michael Vrable Date: Tue, 5 Apr 2011 20:50:08 +0000 (-0700) Subject: Merge branch 'master' of git+ssh://niniel.sysnet.ucsd.edu/home/mvrable/local/bluesky X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=commitdiff_plain;h=5ab537ebebcb0abef91bd032c822d466a2e898e1;hp=2118f99b4ae6d63cd72e94295e744401133911b7 Merge branch 'master' of git+ssh://niniel.sysnet.ucsd.edu/home/mvrable/local/bluesky --- diff --git a/microbench/cleanbench.py b/microbench/cleanbench.py index 87be6d3..ccd65da 100755 --- a/microbench/cleanbench.py +++ b/microbench/cleanbench.py @@ -37,4 +37,4 @@ if __name__ == '__main__': for f in files: all_files.append(os.path.join(path, f)) print len(all_files), "files total" - modify_files(all_files) + modify_files(all_files, rate=1e6) diff --git a/traffic-limiter.txt b/traffic-limiter.txt index 6b1b24d..2748375 100644 --- a/traffic-limiter.txt +++ b/traffic-limiter.txt @@ -1,6 +1,6 @@ # Limiting traffic rate to 1mbit to Amazon US-West data center (204.246.0.0/16) tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 1000mbit -tc class add dev eth0 parent 1: classid 1:1 cbq rate 1mbit allot 1500 prio 5 bounded isolated +tc class add dev eth0 parent 1: classid 1:1 cbq rate 100mbit allot 1500 prio 5 bounded isolated tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 204.246.0.0/16 flowid 1:1 # List traffic classifier state