<div dir="ltr">Thanks for the hint Clay, we merged <a href="https://review.openstack.org/#/c/417892/">https://review.openstack.org/#/c/417892/</a> - expect this issue to be fixed in OpenStackClient 3.7.0.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 2:03 PM, Clay Gerrard <span dir="ltr"><<a href="mailto:clay.gerrard@gmail.com" target="_blank">clay.gerrard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is this *really* the default chunk_size?<div><br></div><div><a href="http://docs.python-requests.org/en/master/api/#requests.Response.iter_content" target="_blank">http://docs.python-requests.<wbr>org/en/master/api/#requests.<wbr>Response.iter_content</a><br></div><div><br></div><div>Because, that'd be like a *lot* of read calls for a large object ;)</div><div><br></div><div><a href="https://github.com/openstack/python-openstackclient/blob/master/openstackclient/api/object_store_v1.py#L383" target="_blank">https://github.com/openstack/<wbr>python-openstackclient/blob/<wbr>master/openstackclient/api/<wbr>object_store_v1.py#L383</a><br></div><div><br></div><div>Maybe try like, idk, chunk_size=None or 64 * 2 ** 10?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Clay</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 9:39 AM, Rick Jones <span dir="ltr"><<a href="mailto:rick.jones2@hpe.com" target="_blank">rick.jones2@hpe.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/05/2017 11:52 PM, <a href="mailto:dongjh@ahope.com.cn" target="_blank">dongjh@ahope.com.cn</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*Also, i can put/get files via dashboard/swift-CLI very quickly.*<br>
*So it is strange why 'openstack object save' so slowly...*<br>
</blockquote>
<br>
Well, two additional ways to compare might be to run both the openstack and swift CLI versions under an strace and compare the system calls they are making:<br>
<br>
strace -v -f -ttt -o <something> cli command ...<br>
<br>
where -v tells strace to be verbose, the -ttt tells it to timestamp each system call with seconds.microseconds since the epoch, the -f tells it to follow forks and the -o option gives a filename into which the trace should go.<br>
<br>
The second comparison would be to take a packet trace for each using tcpdump. So, on the client something like:<br>
<br>
tcpdump -s 96 -w <filename>.pcap -i <interface> "port <swift port> and host <swift proxy>"<br>
<br>
The -s says to capture no more than 96 bytes per packet, the -w puts the capture to the named file, the -i selects the network interface on the client, and then the last bit is a filter expression to select only those packets which are swift and to/from the proxy.<br>
<br>
That file can be post-processed in a number of ways, one of which is:<br>
<br>
tcpdump -r <filename>.pcap -n -ttt > <filename>.cooked<br>
<br>
where -r selects the file from which to read captured packets, the -n says to disable looking up hostnames for IP addresses, and the -ttt says to print the time delta for each packet compared to the one before. I happen to follow a convention of calling the resulting output a ".cooked" file - as in it is a cooked version of a raw (binary) capture.<br>
<br>
In both cases, you would be looking for large gaps in time - particularly the openstack cli traces.<br>
<br>
happy benchmarking,<br>
<br>
rick jones<div class="m_-1336127074493433414HOEnZb"><div class="m_-1336127074493433414h5"><br>
<br>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br></blockquote></div><br></div>