Re: [zfs-discuss] Interaction between ZFS intent log and mmap'd files

2012-07-03 Thread James Litchfield

inline

On 07/02/12 15:00, Nico Williams wrote:

On Mon, Jul 2, 2012 at 3:32 PM, Bob Friesenhahn
bfrie...@simple.dallas.tx.us  wrote:

On Mon, 2 Jul 2012, Iwan Aucamp wrote:

I'm interested in some more detail on how ZFS intent log behaves for
updated done via a memory mapped file - i.e. will the ZIL log updates done
to an mmap'd file or not ?


I would to expect these writes to go into the intent log unless msync(2) is
used on the mapping with the MS_SYNC option.

You can't count on any writes to mmap(2)ed files hitting disk until
you msync(2) with MS_SYNC.  The system should want to wait as long as
possible before committing any mmap(2)ed file writes to disk.
Conversely you can't expect that no writes will hit disk until you
msync(2) or munmap(2).

Driven by fsflush which will scan memory (in chunks) looking for dirty,
unlocked, non-kernel pages to flush to disk.


Nico
--
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Interaction between ZFS intent log and mmap'd files

2012-07-03 Thread Nico Williams
On Tue, Jul 3, 2012 at 9:48 AM, James Litchfield
jim.litchfi...@oracle.com wrote:
 On 07/02/12 15:00, Nico Williams wrote:
 You can't count on any writes to mmap(2)ed files hitting disk until
 you msync(2) with MS_SYNC.  The system should want to wait as long as
 possible before committing any mmap(2)ed file writes to disk.
 Conversely you can't expect that no writes will hit disk until you
 msync(2) or munmap(2).

 Driven by fsflush which will scan memory (in chunks) looking for dirty,
 unlocked, non-kernel pages to flush to disk.

Right, but one just cannot count on that -- it's not part of the API
specification.

Nico
--
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Interaction between ZFS intent log and mmap'd files

2012-07-03 Thread James Litchfield

Agreed - msync/munmap is the only guarantee.

On 07/ 3/12 08:47 AM, Nico Williams wrote:

On Tue, Jul 3, 2012 at 9:48 AM, James Litchfield
jim.litchfi...@oracle.com  wrote:

On 07/02/12 15:00, Nico Williams wrote:

You can't count on any writes to mmap(2)ed files hitting disk until
you msync(2) with MS_SYNC.  The system should want to wait as long as
possible before committing any mmap(2)ed file writes to disk.
Conversely you can't expect that no writes will hit disk until you
msync(2) or munmap(2).

Driven by fsflush which will scan memory (in chunks) looking for dirty,
unlocked, non-kernel pages to flush to disk.

Right, but one just cannot count on that -- it's not part of the API
specification.

Nico
--



___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] HP Proliant DL360 G7

2012-07-03 Thread Anh Quach
Thanks Richard and Edmund for the input. 

Looking at the DL380 now... 

-Anh


On Jul 2, 2012, at 7:57 PM, Richard Elling wrote:

 On Jul 2, 2012, at 2:40 PM, Edmund White wrote:
 
 This depends upon what you want to do. I've used G6 and G7 ProLiants
 extensively in ZFS deployments (Nexenta, mostly). I'm assuming you'd be
 using an external JBOD enclosure?
 
 When I was at Nexenta, we qualed the DL380 G7, D2600, and D2700.
 These are some of the better boxes on the market.
 
 All works well. I disable the onboard Smart Array P410 RAID controller and
 replace it with an LSI SAS HBA. If using internal disks, I'll use the
 9211-8i. If external, the 9205-8e. Or sometimes, both.
 
 FYI, HP also sells an 8-port IT-style HBA (SC-08Ge), but it is hard to locate 
 with their configurators. There might be a more modern equivalent cleverly
 hidden somewhere difficult to find.
  -- richard
 
 --
 ZFS Performance and Training
 richard.ell...@richardelling.com
 +1-760-896-4422
 
 
 
 
 
 
 
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss