Re: [gpfsug-discuss] Experiences with thinly-provisioned volumes?
I’m talking about the case where the storage device uses thin-provisioning internally to allow for better utilization. In this particular case the vendor array uses thin-provisioning, and I don’t have an option to turn it off. What I see is something like this: - Create a 10 TB file systems - Fill it with 4 TB of data - Delete the data (from the host) - Storage array still reports 4 TB of usage while the host sees 0 This evidently goes back to the use of the SCSI "UNMAP” call that you can add as a mount option in RedHat Linux (example) mount -o discard LABEL=DemoVol /files/ Google "redhat linux scsi unmap” and you’ll see references to this. However, GPFS doesn’t support this (see my previous reference) and as a result the array doesn’t know the block is no longer in use. This doesn’t mean GPFS can’t re-use it, it just means the array thinks there is more in use than there really is. I don’t know if this is common with thinly-provisioned arrays in general or specific to this vendor. But the fact that IBM call it out (“since at present GPFS does not communicate block deallocation events to the block device layer”) means that they are aware of this behavior in some arrays – perhaps their own as well. Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Jonathan Buzzard <jonathan@buzzard.me.uk<mailto:jonathan@buzzard.me.uk>> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Tuesday, December 22, 2015 at 5:46 PM To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Experiences with thinly-provisioned volumes? What is the usage case of using thin provisioning on a GPFS file system?
On 23/12/15 12:47, Oesterlin, Robert wrote:
I’m talking about the case where the storage device uses thin-provisioning internally to allow for better utilization. In this particular case the vendor array uses thin-provisioning, and I don’t have an option to turn it off.
In which case I would argue that the storage array is unsuitable for use with GPFS if having that space reserved for GPFS is a problem for you. But to answer your question if GPFS does not send TRIM/UNMAP commands to block devices this is exactly what you would expect just like any other file system that does not do discards. Depending on how "smart" the storage array is, it might spot if you write zeros all over and reclaim the space. My understanding of GPFS is that you want relatively dumb storage devices that don't do or at least can be turned off fancy stuff like thin provisioning, tiering, flash cache's etc. because this just gets in the way of GPFS. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Jon, Again I encourage you to read at least the first paragraph of https://en.wikipedia.org/wiki/Trim_(computing) which explains that the TRIM command can improve performance and lessen "wear" of SSD storage devices. This is a somewhat different concept than older school "thin-provisioning".
Also, https://en.wikipedia.org/wiki/Write_amplification which shows how blocks that are not needed but have not been trimmed can contribute to "write amplification" - SSD garbage collection may have to copy your stale data several times on average, which can slow overall performance and increase wear. Better to "TRIM", at least with some devices... Also the authors' make the point that SSD is must be over provisioned, not thinly provisioned
participants (3)
-
Jonathan Buzzard -
Marc A Kaplan -
Oesterlin, Robert
