Post a Comment On: /dev/dump

"COMSTAR and SCSI UNMAP"

12 Comments -

1 – 12 of 12
OpenID rty said...

Hello, Garrett.
Please clear this news for me.
I will get benefit using new SSD (supporting TRIM) for OS install?
Or for L2ARC cache?
Not using COMSTAR.

March 6, 2011 at 6:39 PM

Blogger Garrett D'Amore said...

rty: No. At the moment this is *only* for COMSTAR. Soon we'll get this for ZFS and then you will see a benefit for SSDs.

March 6, 2011 at 7:16 PM

Blogger Vinayak said...

From which build does SCSI UNMAP is implemented in opensolairs?

March 16, 2011 at 3:47 AM

Blogger Vinayak said...

From which build onwards SCSI UNMAP is supported into opensolaris?

March 16, 2011 at 3:48 AM

Blogger Vinayak said...

From which build of opensolaris SCSI UNMAP is implemented?

March 16, 2011 at 3:49 AM

Blogger Garrett D'Amore said...

Your question (Vinayak) doesn't really make sense. OpenSolaris is dead, but when it was still an active project there were a number of releases at different points.

illumos started from build 147 and has continued from there.

March 16, 2011 at 8:12 AM

Blogger JimKlimov said...

Garrett, sorry, but I think rebuffing interested people like this was impolite. And you might scare off potential faint-hearted community members who have not yet figured out the multiple distro naming changes ;)

I hope Vinayak's question can be interpreted in illumos/OpenIndiana terms - like "in which pkg version of ZFS package is the feature included for public testing/usage?" with the answer being perhaps an URL like http://repo.openindiana.org/dev/zfs/123.456 or whatever :)

Other than that - great news and a killer feature, I guess. Thanks ;)

By the way, how does COMSTAR learn that NTFS or Linux ext* freed some block? Does it intercept TRIM notifications or whatever the virtualized OS intended for an SSD driver?

In short, would this work with any guest OS or with specific ones - like "Windows 7 and above" or "Linux kernel 2.x.y.z and above built with TRIM support"?

Thanks again,
//Jim Klimov

March 22, 2011 at 5:40 AM

Blogger Garrett D'Amore said...

Jim.

1. My reply to Vinayak was not meant to be be a rebuff. I honestly did not understand (and still don't) the original question -- we don't have "builds" as such for illumos, and I'm not aware of any build of OpenIndiana that has incorporated this change yet.

2. COMSTAR gets it when filesystem on the initiator notifies the underlying SCSI disk driver, which should then issue a SCSI UNMAP (which is the SCSI moral equivalent of SATA TRIM). What this means is, it will work with any initiator which issues SCSI UNMAP, which is a standard T10 request. (This includes Windows NTFS, Linux ext4, and forthcoming VMware products.A)

March 22, 2011 at 7:40 AM

Blogger T said...

Great stuff. I've been hoping for this for some time.

I wonder if it is possible to build support for this into the NFS server as well in the future? I realize it's not as straight forward, but would be very useful for those of us hosting VMs over NFS rather than SCSI targets.

March 22, 2011 at 9:51 AM

Blogger Garrett D'Amore said...

Over NFS, you wind up not needing to overprovision, so it isn't the same problem.

But we will also be doing SATA TRIM and SCSI UNMAP for local ZFS resources (and NFS/CIFS shares of those resources) soon.

March 22, 2011 at 10:09 AM

Blogger T said...

Thanks for the response, I suppose I should be more clear.

As you said, NFS doesn't need over-provisioning. However, when you host VMs in image files which are then stored on NFS, you run into the over-provisioning problems inside the guest VM. I suppose this can also still occur if you're hosting on a SCSI target.

I guess what I'd really hope for at some point is the ability to "tunnel" these UNMAP requests over whatever protocol in order to get it back to ZFS?

Anyway, I really appreciate the effort you've put into continuing to improve zfs.

March 22, 2011 at 11:52 AM

Blogger NiTRo said...

Garrett, by forthcoming VMware products, you mean VMFS 5 ?

April 4, 2011 at 3:05 PM