object save code is terribly inefficient
Bug #1656445 reported by
Alex Schultz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
New
|
Undecided
|
Unassigned |
Bug Description
I attempted to download a 10M file using openstack object save <container> <file> from a swift instance on localhost and it sat chunking the response in the following loop in the following bit of code for some time:
It might be better to just let the underlying curl write out the file somewhere since when I debugged it, the curl was done almost immediately but the writing out took in the order of minutes to write out the file with openstack client pegged at 100% cpu.
To post a comment you must log in.
It should be noted it took 4 minutes to process the 10M file.
time openstack object save --file test.tar.xz overcloud_support sosreport- overcloud- controller- 0-2017011322141 5.tar.xz
real 4m1.562s
user 3m58.055s
sys 0m1.730s