--- ssl.py.fcs 2012-04-10 08:54:43.257885841 -0600
+++ ssl.py 2012-04-10 08:56:27.282585355 -0600
@@ -129,7 +129,10 @@
count = 0
while (count < amount):
v = self.send(data[count:])
- count += v
+ if v:
+ count += v
+ else:
+ time.sleep(0.01)
return amount
else:
while True:
I think you can just:
count += v
+ time.sleep()
And it will yield some CPU time.
I think it will be impossible to do a parallel upload without green threads,
e.g.
swift --object-threads 10
or
swift --segment-threads 10
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/959221
Title:
swift consumes over 100% of cpu during upload
To manage notifications about this bug go to:
https://bugs.launchpad.net/swift/+bug/959221/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs