Unverified Commit 1feebfbf authored by Loïc Dachary's avatar Loïc Dachary
Browse files

throttle sequential reads (hardcoded)

parent 5740210d
......@@ -507,10 +507,11 @@ class Reader(object):
def read_seq(self):
object_size = 4 * 1024 * 1024
count = 10
count = 100
bytes_read = count * object_size
self.fd.seek(random.randrange(self.size - bytes_read))
for _ in range(count):
time.sleep(0.5)
self.fd.read(object_size)
#
# Assuming a median object size of 4K
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment