On Tue, Mar 26, 2013 at 10:38:46AM +0000, Richard W.M. Jones wrote:
> +    /* According to the docs, this just updates a field in the
> +     * sftp_handle structure, so there is no network traffic and it
> +     * cannot fail.
> +     */
> +    libssh2_sftp_seek64(s->sftp_handle, offset);

While I was looking at the performance of qemu+ssh vs sshfs, I noticed
that the line above has a catastrophic effect on performance, since it
causes all readahead data to be thrown away.  Ooops.  I'm reworking
the patch to make seeking more intelligent.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

Reply via email to