[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-09 Thread Pete Zaitcev
Profile shows that eventlet/green/ssl.py is the culprit. Look at call numbers and cumulative time. ** Attachment added: "profile 1" https://bugs.launchpad.net/swift/+bug/959221/+attachment/3035280/+files/lp959221.prof1.txt -- You received this bug notification because you are a member of Ubu

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-09 Thread Pete Zaitcev
It looks like the problem may be looping. If I do the following slew of hand, CPU burn dissipates: --- /usr/lib/python2.7/site-packages/eventlet/green/ssl.py.fcs 2012-04-09 19:32:04.516730732 -0600 +++ /usr/lib/python2.7/site-packages/eventlet/green/ssl.py 2012-04-09 21:49:38.823537699 -06

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-10 Thread Pete Zaitcev
Roman, please try this and let us know if it works for you. ** Patch added: "patch 2, test workaround" https://bugs.launchpad.net/swift/+bug/959221/+attachment/3041102/+files/swift-lp959221-2.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscri

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-10 Thread Pete Zaitcev
This works, too: [root@lembas green]# pwd /usr/lib/python2.7/site-packages/eventlet/green [root@lembas green]# diff -u ssl.py.fcs ssl.py --- 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

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-04 Thread Pete Zaitcev
This reproduces easily on my laptop, running Fedora 16, using git tip swift client (1.4.10). The problem definitely has something with SSL. I created a 2-node Swift+Keystone to be accessible through Pound, and configured Pound to allow both plain HTTP and SSL. Uploads with HTTP only use up a worryi

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2013-10-22 Thread Pete Zaitcev
Fix releases in Havana release of OpenStack. ** Changed in: python-swiftclient Status: Fix Committed => Fix Released -- 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 consume

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-04-11 Thread Pete Zaitcev
Just to clarify: my patch does not remove SSL at all. SSL is there and works as before. The only difference is that it's not trampolined into eventlet anymore. The root cause is the conflict between eventlet's green threads, which require faking of blocking sockets, and SSL, which requires looping

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2012-06-07 Thread Pete Zaitcev
** Changed in: swift Status: New => Confirmed -- 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

[Bug 920197] Re: [SRU] webob last stable version 1.1.1 response header bug

2012-06-07 Thread Pete Zaitcev
** Changed in: swift Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/920197 Title: [SRU] webob last stable version 1.1.1 response header bug To manage notifications ab

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2013-03-19 Thread Pete Zaitcev
see also https://review.openstack.org/22569 -- 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: h

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2013-05-10 Thread Pete Zaitcev
** Changed in: swift Assignee: Flavio Percoco (flaper87) => Pete Zaitcev (zaitcev) -- 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

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2013-05-13 Thread Pete Zaitcev
Fixed in: https://github.com/openstack/python-swiftclient/commit/3196daf9929eef25d69d47592beef4cd31573b80 For some reason, Jenkins and Gerrit did not close the bug. ** Changed in: swift Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of

[Bug 959221] Re: swift consumes over 100% of cpu during upload

2013-05-13 Thread Pete Zaitcev
** Patch added: "Fix as committed" https://bugs.launchpad.net/ubuntu/+source/swift/+bug/959221/+attachment/3675321/+files/python-swiftclient-1.4-lp959221-2.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad

[Bug 665667] Re: couldn't launch an AMI bundled and uploaded using euca2ools

2011-01-15 Thread Pete Zaitcev
I like David's fix with two subprocess.Popen and a loop that forks the stream. I would've preferred the same approach myself, but I did not have Python chops to do it. BTW, I have RT # now, for next time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is sub