<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1">On 1/24/2013 2:45 AM, Alkis Georgopoulos wrote:</font><br>
<blockquote cite="mid:5100E681.5050903@gmail.com" type="cite">Στις
24/01/2013 03:00 πμ, ο/η John Hupp έγραψε:
<br>
<blockquote type="cite">So with the experience in the Greek
schools, can more be said about
<br>
performance?
<br>
</blockquote>
<br>
You don't need other people's advice on something you can easily
measure yourself.
<br>
Here's a comparison between NORMAL, BINDFS, SSHFS and NFS for
copying an .iso:
<br>
<br>
================================================================
<br>
root@pc:/NORMAL/dir# echo 3 > /proc/sys/vm/drop_caches
<br>
root@pc:/NORMAL/dir# time cp ubuntu-12.04.1-desktop-i386.iso \
<br>
ubuntu-12.04.1-desktop-i386.iso.bak
<br>
real 0m29.371s
<br>
user 0m0.020s
<br>
sys 0m2.048s
<br>
CPU (via top): 50% idle, 40% wait
<br>
----------------------------------------------------------------
<br>
root@pc:/BINDFS/dir# echo 3 > /proc/sys/vm/drop_caches
<br>
root@pc:/BINDFS/dir# time cp ubuntu-12.04.1-desktop-i386.iso \
<br>
ubuntu-12.04.1-desktop-i386.iso.bak
<br>
real 0m30.852s
<br>
user 0m0.020s
<br>
sys 0m2.320s
<br>
CPU (via top): 40% idle, 45% wait
<br>
----------------------------------------------------------------
<br>
root@pc:/SSHFS/dir# echo 3 > /proc/sys/vm/drop_caches
<br>
root@pc:/SSHFS/dir# time cp ubuntu-12.04.1-desktop-i386.iso \
<br>
ubuntu-12.04.1-desktop-i386.iso.bak
<br>
real 0m50.056s
<br>
user 0m0.020s
<br>
sys 0m1.620s
<br>
CPU (via top): 5% idle, 15% wait
<br>
----------------------------------------------------------------
<br>
root@pc:/NFS/dir# echo 3 > /proc/sys/vm/drop_caches
<br>
root@pc:/NFS/dir# time cp ubuntu-12.04.1-desktop-i386.iso \
<br>
ubuntu-12.04.1-desktop-i386.iso.bak
<br>
real 0m34.249s
<br>
user 0m0.000s
<br>
sys 0m1.532s
<br>
CPU (via top): 5% idle, 80% wait
<br>
================================================================
<br>
<br>
So that's a 5% drop in performance with bindfs, negligible.
<br>
NFS is pretty light too.
<br>
On the other hand SSHFS (fat clients, localapps...) takes a heavy
toll on the server CPU and that reflects on the time needed to
perform file operations as well.
<br>
<br>
<br>
</blockquote>
<font size="-1">Thanks for a very nice analysis. (And I only found
out about the time command as a result of reading this post!)<br>
<br>
After installing and configuring bindfs with the upstart method (<font
size="-1">created</font> /etc/init/mount-bindfs.conf), the first
reboot was perceptibly slower. <font size="-1">I</font>nitial
setup of the overlay I suppose<font size="-1">. </font> <font
size="-1">B</font>ut after that boot time seemed normal once
again.<br>
<br>
Per one suggestion, <font size="-1">I had</font> initially <font
size="-1">configured with</font>:<br>
<br>
bindfs -o perms=0700,mirror-only=user1:user2
/home/user1/Shared /home/user1/Shared<br>
<br>
But I found that double-clicking on an AbiWord file prompted an
offer to run the file as an executable script.<br>
<br>
I solved that problem with modified permissions:<br>
<br>
bindfs -o perms=0600,a+X,mirror-only=user1:user2
/home/user1/Shared /home/user1/Shared<br>
</font><br>
</body>
</html>