[zfs-discuss] Shrink the slice used for zpool?

2010-02-15 Thread Yi Zhang
ailed... Thanks! Yi Zhang ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Shrink the slice used for zpool?

2010-02-15 Thread Yi Zhang
On Mon, Feb 15, 2010 at 1:48 PM, wrote: > >>Hi, >> >>I recently installed OpenSoalris 200906 on a 10GB primary partition on >>my laptop. I noticed there wasn't any option for customizing the >>slices inside the solaris partition. After installation, there was >>only a single slice (0) occupying t

Re: [zfs-discuss] Shrink the slice used for zpool?

2010-02-15 Thread Yi Zhang
Thank you, Darren and Richard. I think this gives what I wanted. Yi On Mon, Feb 15, 2010 at 3:13 PM, Darren J Moffat wrote: > On 15/02/2010 19:15, Yi Zhang wrote: >>> >>> Can you create a zvol and use that for ufs?  Slow, but ... >>> >>> Casper >>>

[zfs-discuss] Understanding directio, 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

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 12:25 AM, Richard Elling wrote: > On Feb 5, 2011, at 8:10 AM, Yi Zhang wrote: > >> Hi all, >> >> I'm trying to achieve the same effect of UFS directio on ZFS and here >> is what I did: > > Solaris UFS directio has three functi

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 10:26 AM, Roch wrote: > > Le 7 févr. 2011 à 06:25, Richard Elling a écrit : > >> On Feb 5, 2011, at 8:10 AM, Yi Zhang wrote: >> >>> Hi all, >>> >>> I'm trying to achieve the same effect of UFS directio on ZFS and here &g

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 1:06 PM, Brandon High wrote: > On Mon, Feb 7, 2011 at 6:15 AM, Yi Zhang wrote: >> On Mon, Feb 7, 2011 at 12:25 AM, Richard Elling >> wrote: >>> Solaris UFS directio has three functions: >>>        1. improved async code path >>

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 1:51 PM, Brandon High wrote: > On Mon, Feb 7, 2011 at 10:29 AM, Yi Zhang wrote: >> I already set primarycache to metadata, and I'm not concerned about >> caching reads, but caching writes. It appears writes are indeed cached >> judging from the ti

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 2:21 PM, Brandon High wrote: > On Mon, Feb 7, 2011 at 11:17 AM, Yi Zhang wrote: >> Maybe I didn't make my intention clear. UFS with directio is >> reasonably close to a raw disk from my application's perspective: when >> the app writes t

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 2:42 PM, Nico Williams wrote: > On Mon, Feb 7, 2011 at 1:17 PM, Yi Zhang wrote: >> On Mon, Feb 7, 2011 at 1:51 PM, Brandon High wrote: >> Maybe I didn't make my intention clear. UFS with directio is >> reasonably close to a raw disk from my appli

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 2:54 PM, Nico Williams wrote: > On Mon, Feb 7, 2011 at 1:49 PM, Yi Zhang wrote: >> Please see my previous email for a high-level discussion of my >> application. I know that I don't really need O_DSYNC. The reason why I >> tried that is to

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 3:14 PM, Bill Sommerfeld wrote: > On 02/07/11 11:49, Yi Zhang wrote: >> >> The reason why I >> tried that is to get the side effect of no buffering, which is my >> ultimate goal. > > ultimate = "final".  you must have a goal b

Re: [zfs-discuss] Understanding directio, O_DSYNC and zfs_nocacheflush on ZFS

2011-02-07 Thread Yi Zhang
On Mon, Feb 7, 2011 at 3:47 PM, Nico Williams wrote: > On Mon, Feb 7, 2011 at 2:39 PM, Yi Zhang wrote: >> On Mon, Feb 7, 2011 at 2:54 PM, Nico Williams wrote: >>> ZFS cannot not buffer.  The reason is that ZFS likes to batch transactions >>> into >>> as