-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've encountered a new problem on the opposite end of my app - the
write() calls to disk sometimes block for a terribly long time (5-10
seconds) when I start deleting stuff on the filesystem where my recorder
processes are writing. Looking at iostat I can see that the disk load is
strongly uneven - with a lowered zfs_txg_timeout=1 I get normal writes
every second, but when I start deleting stuff (e.g. "rm -r *"), huge
load spikes appear from time to time, even to the level of blocking all
processes writing to the filesystem and filling up the network input
buffer and starting to drop packets.

Is there a way that I can increase the write I/O priority, or increase
the write buffer in ZFS so that write()s won't block?

Regards,
- --
Saso

Saso Kiselkov wrote:
> Ok, I figured out that apparently I was the idiot in this story, again.
> I forgot to set SO_RCVBUF on my network sockets higher, so that's why I
> was dropping input packets.
> 
> The zfs_txg_timeout=1 flag is still necessary (or else dropping occurs
> when commiting data to disk), but by increasing network input buffer
> sizes it seems I was able to cut input packet loss to zero.
> 
> Thanks for all the valuable advice!
> 
> Regards,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktE0xoACgkQRO8UcfzpOHBvhwCfSl6Acb2nPvtcFFgzZrkTCIFk
bhEAoKjfv3BWnIRtEsCZt9W0SfKN3xPT
=/f+g
-----END PGP SIGNATURE-----
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to