NFS vs iSCSI stat cache perfomance test

time find /mnt/test -mtime +1000000000000000

minimun values of 3-4 runs:

local:+
real 0m0.027s
user 0m0.000s
sys 0m0.028s

nfs(remote):+
real 0m0.612s
user 0m0.032s
sys 0m0.160s

nfs+fscache(remote):
real 0m0.577s
user 0m0.028s
sys 0m0.152s

iscsi(remote)+ocfs2:+
real 0m0.070s
user 0m0.024s
sys 0m0.052s

Настройка iSCSI target на debian sqeeze

Установка:
apt-get install iscsitarget iscsitarget-dkms
следить за выводом, возможно потребуется установить linux-headers-*

Добавить в файл /etc/iet/ietd.conf

Target iqn.2001-01.com.example:stor
IncomingUser user password
Lun 0 Path=/dev/xvda2,Type=fileio
Alias stor

/etc/default/iscsitarget

ISCSITARGET_ENABLE=true

User tags

apt bacula zRam docker-compose opreport ssh profiling grub top opcontrol dhcp security erase cpu usage newgrp xfs lstat cpanm mysql asoundrc CPAN ha lts graylog2 exim git encrypt hotplug in-addr.arpa groups MegaRAID su drupal fail2ban vim netfilter noop chroot flash backup HTTPS sysfs dpkg find bscan gre raid5 rtl8723be replication iSCSI sublime munin alien NFS equalizer virsh pacemaker parallel PTR nginx openvpn docker vlan chromium fio gtk dovecot mount ardour conntrack ip bind cache dhclient cfq qcow2 sg jackd HDFS squeeze lubuntu keyboard sysrq regex rtsp usb deb route cluster freedos tin OpenStack iowait proxy dns etch video KVM vtysh sftp idmapd tool cgroups iptables ubuntu nvidia ipmi bash scsi cpu DRBD tzdata shellshock arping lxc glusterfs backtrace PXE initrd /etc/network/interfaces tun Areca quagga hdparm iostat glxinfo swap Swift leap second ansible search SpamAssassin arch shorewall xargs php iops bridge boot rkhunter sysctl ddos virt-install SYN rpm wget source LVM APU htop MODx pvmove centos 7 soa tftp storage debian vrrpd java SuperMicro SSD gpg corosync bug youtube gdb X forwarding mkfs arp pam ipmitool limit_conn mdadm pulseaudio taskset vrrp exim4 3Ware fido7 kernel mariadb xhost debootstrap OpenSSL slab radeon alsa raid dstat xen nfs4 RT rsync qemu performance oprofile perlbrew core dump ulimit tiger perl StorMan firefox wordpress ps bonding .htaccess puppet language sysctl.conf virtualbox tar CentOS AMD numa elliptics build LSI lenny Adaptec apache sysresccd Salt routing