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

PHP на NFS: решение проблемы с производительностью

Надо увеличить realpath_cache_size в php.ini:

realpath_cache_size=1M

Не работает с включеными safe_mode или open_basedir.

Big nfs_inode_cache

The workaround:

sync
echo 2 > /proc/sys/vm/drop_caches

User tags

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