on 26/11/2013 14:34 Steven Hartland said the following:
> Can I ask why choose priority now for TRIM, does this not change the flow of
> free requests quite significantly?

Sorry, I couldn't grok the question...
Also, please take into account that I know nothing about TRIM nor TRIM + ZFS.

BTW, I appreciate the review but a timely review[*] would be appreciated even
more :-)

> Also as we have rotational information available should we apply
> the following change which makes the active queue timestamp sorted
> instead of offset sorted?
> 
> An AVL as a FIFO queue seems like quite an expensive option.

I've just merged the upstream change, perhaps badly.
Any improvement are appreciated.

[*] Message <5242f5ae.6090...@freebsd.org> to zfs-de...@freebsd.org.

> Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c
> ===================================================================
> --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c (revision 
> 258644)
> +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c (working copy)
> @@ -262,7 +263,9 @@
>        mutex_init(&vq->vq_lock, NULL, MUTEX_DEFAULT, NULL);
>        vq->vq_vdev = vd;
> 
> -       avl_create(&vq->vq_active_tree, vdev_queue_offset_compare,
> +       avl_create(&vq->vq_active_tree,
> +      vd->vdev_rotation_rate == VDEV_RATE_NON_ROTATING ?
> +      vdev_queue_timestamp_compare : vdev_queue_offset_compare,
>            sizeof (zio_t), offsetof(struct zio, io_queue_node));
> 
> 
> ----- Original Message ----- From: "Andriy Gapon" <a...@freebsd.org>
> To: <src-committ...@freebsd.org>; <svn-src-all@freebsd.org>;
> <svn-src-h...@freebsd.org>
> Sent: Tuesday, November 26, 2013 9:57 AM
> Subject: svn commit: r258632 - in head: cddl/contrib/opensolaris/cmd/ztest
> cddl/contrib/opensolaris/lib/libzpool/common/sys 
> sys/cddl/compat/opensolaris/sys
> sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys...
> 
> 
>> Author: avg
>> Date: Tue Nov 26 09:57:14 2013
>> New Revision: 258632
>> URL: http://svnweb.freebsd.org/changeset/base/258632
>>
>> Log:
>>  MFV r255255: 4045 zfs write throttle & i/o scheduler performance work
>>
>>  illumos/illumos-gate@69962b5647e4a8b9b14998733b765925381b727e
>>
>>  Please note the following changes:
>>  - zio_ioctl has lost its priority parameter and now TRIM is executed
>>    with 'now' priority
>>  - some knobs are gone and some new knobs are added; not all of them are
>>    exposed as tunables / sysctls yet
> ...
> 
> ================================================
> This e.mail is private and confidential between Multiplay (UK) Ltd. and the
> person or entity to whom it is addressed. In the event of misdirection, the
> recipient is prohibited from using, copying, printing or otherwise 
> disseminating
> it or any information contained in it.
> In the event of misdirection, illegible or incomplete transmission please
> telephone +44 845 868 1337
> or return the E.mail to postmas...@multiplay.co.uk.
> 


-- 
Andriy Gapon
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to