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

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