Re: [OpenIndiana-discuss] Understanding O_DSYNC and zfs_nocacheflush on ZFS

2011-02-05 Thread Yi Zhang
Just want to add that I know O_DSYNC and directio (or disabling FS caching) are two different things. The reason why I wanted to play with O_DSYNC is that a) doesn't seem to give the desired directio result (running the experiment on UFS with directio took 2s). On Sat, Feb 5, 2011 at 10:20 AM, Yi

[OpenIndiana-discuss] Understanding O_DSYNC and zfs_nocacheflush on ZFS

2011-02-05 Thread Yi Zhang
Hi all, I'm trying to achieve the same effect of UFS directio on ZFS and here is what I did: 1. Set the primarycache of zfs to metadata and secondarycache to none, recordsize to 8K (to match the unit size of writes) 2. Run my test program (code below) with different options and measure the runnin