Tag Archives: nfs

INFO: task blocked for more than 120 seconds

This is a know bug. By default Linux uses up to 40% of the available memory for file system caching. After this mark has been reached the file system flushes all outstanding data to disk causing all following IOs going synchronous. For flushing out this data to disk this there is a time limit of 120 seconds by default. In the case here the IO subsystem is not fast enough to flush the data withing 120 seconds. This especially happens on systems with a lof of memory.

The problem is solved in later kernels and there is not “fix” from Oracle. I fixed this by lowering the mark for flushing the cache from 40% to 10% by setting “vm.dirty_ratio=10″ in /etc/sysctl.conf. This setting does not influence overall database performance since you hopefully use Direct IO and bypass the file system cache completely.

echo «vm.dirty_ratio=10» >> /etc/sysctl.conf
sysctl -p

proof link: http://blog.ronnyegner-consulting.de/2011/10/13/info-task-blocked-for-more-than-120-seconds/



apt-get install nfs-kernel-server

edit /etc/exports:
/a1/base (rw, async, no_subtree_check, no_root_squash)
/a1/out (rw, async, no_subtree_check, no_root_squash)

/etc/init.d/nfs-kernel-server restart


apt-get install autofs

edit /etc/auto.master:
/a1 /etc/auto.nfs

edit /etc/auto.nfs:
base -rw
out -rw

/etc/init.d/autofs restart



touch /a1/base/logs/TEST_FILE


ls /a1/out