* [Drbd-dev] DRBD Trim/discard @ 2013-09-26 19:01 Eric Wheeler 2013-09-27 12:47 ` Lars Ellenberg 0 siblings, 1 reply; 4+ messages in thread From: Eric Wheeler @ 2013-09-26 19:01 UTC (permalink / raw) To: drbd-dev Hello all, We would like to run DRBD backed by thin-provisioned volumes (think ZFS or dm-thinp) which require discard support to dereference unused block allocations. (I searched around for DRBD trim/discard support with little commentary except the reference [1] below which does not apply to our use case.) Is discard support on the roadmap? What are the technical considerations for implementation? I'm guessing this would be a relatively simple patch, just need to add a discard flag to the wire protocol and pass that to the backing device (after calculating the metadata offset, if any). If you can comment on the desired implementation of such a feature and point me in the right direction I may be able to write a patch and test. Any help you can offer would be greatly appreciated! -Eric [1] http://lists.linbit.com/pipermail/drbd-user/2012-March/017987.html -- Eric Wheeler eWheeler Inc. http://www.globallinuxsecurity.pro/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Drbd-dev] DRBD Trim/discard 2013-09-26 19:01 [Drbd-dev] DRBD Trim/discard Eric Wheeler @ 2013-09-27 12:47 ` Lars Ellenberg 2013-10-17 23:00 ` Eric Wheeler 0 siblings, 1 reply; 4+ messages in thread From: Lars Ellenberg @ 2013-09-27 12:47 UTC (permalink / raw) To: drbd-dev On Thu, Sep 26, 2013 at 12:01:40PM -0700, Eric Wheeler wrote: > Hello all, > > > We would like to run DRBD backed by thin-provisioned volumes (think > ZFS or dm-thinp) which require discard support to dereference unused > block allocations. (I searched around for DRBD trim/discard support > with little commentary except the reference [1] below which does not > apply to our use case.) > > > Is discard support on the roadmap? > > What are the technical considerations for implementation? > > I'm guessing this would be a relatively simple patch, just need to > add a discard flag to the wire protocol and pass that to the backing > device (after calculating the metadata offset, if any). > > If you can comment on the desired implementation of such a feature > and point me in the right direction I may be able to write a patch > and test. > > Any help you can offer would be greatly appreciated! We are integrating DISCARD / TRIM support into our currently pending DRBD 8.4.4 release, right now. Code changes expected to be pushed with the RC2, latest early next week. Thanks for testing and feedback, Cheers, Lars ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Drbd-dev] DRBD Trim/discard 2013-09-27 12:47 ` Lars Ellenberg @ 2013-10-17 23:00 ` Eric Wheeler 2013-10-18 10:38 ` Lars Ellenberg 0 siblings, 1 reply; 4+ messages in thread From: Eric Wheeler @ 2013-10-17 23:00 UTC (permalink / raw) To: Lars Ellenberg; +Cc: drbd-dev On Fri, 27 Sep 2013, Lars Ellenberg wrote: > On Thu, Sep 26, 2013 at 12:01:40PM -0700, Eric Wheeler wrote: >> We would like to run DRBD backed by thin-provisioned volumes (think >> ZFS or dm-thinp) which require discard support to dereference unused >> block allocations. > > We are integrating DISCARD / TRIM support into our currently pending > DRBD 8.4.4 release, right now. Code changes expected to be pushed with > the RC2, latest early next week. > > Thanks for testing and feedback, I just sat down to look into TRIM support in the git tree, none of the commits in the shortlog are obvious. Has this already been committed? If so, do you have a commit number or alternate git tree that I can pull down? -Eric ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Drbd-dev] DRBD Trim/discard 2013-10-17 23:00 ` Eric Wheeler @ 2013-10-18 10:38 ` Lars Ellenberg 0 siblings, 0 replies; 4+ messages in thread From: Lars Ellenberg @ 2013-10-18 10:38 UTC (permalink / raw) To: drbd-dev On Thu, Oct 17, 2013 at 04:00:54PM -0700, Eric Wheeler wrote: > > On Fri, 27 Sep 2013, Lars Ellenberg wrote: > >On Thu, Sep 26, 2013 at 12:01:40PM -0700, Eric Wheeler wrote: > >>We would like to run DRBD backed by thin-provisioned volumes (think > >>ZFS or dm-thinp) which require discard support to dereference unused > >>block allocations. > > > >We are integrating DISCARD / TRIM support into our currently > >pending DRBD 8.4.4 release, right now. Code changes expected to be > >pushed with the RC2, latest early next week. > > > >Thanks for testing and feedback, > > I just sat down to look into TRIM support in the git tree, none of > the commits in the shortlog are obvious. Has this already been > committed? If so, do you have a commit number or alternate git tree > that I can pull down? You've been grepping for TRIM, I guess, where we used DISCARD ;-) Look for "DISCARD" in the commit subjects. I think it starts with drbd: prepare receiving side for REQ_DISCARD Then a few more, and a few fixes for when exactly to expose QUEUE_FLAG_DISCARD. Cheers, Lars ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-18 10:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-26 19:01 [Drbd-dev] DRBD Trim/discard Eric Wheeler 2013-09-27 12:47 ` Lars Ellenberg 2013-10-17 23:00 ` Eric Wheeler 2013-10-18 10:38 ` Lars Ellenberg
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox