added dynamic fsync and tweaked deadline io