In message <20100322233607.gb1...@garage.freebsd.pl>, Pawel Jakub Dawidek write
s:

>A class is suppose to interact with other classes only via GEOM, so I
>think it should be safe to choose g_up/g_down threads for each class
>individually, for example:
>
>       /dev/ad0s1a (DEV)
>              |
>       g_up_0 + g_down_0
>              |
>            ad0s1a (BSD)
>              |
>       g_up_1 + g_down_1
>              |
>            ad0s1 (MBR)
>              |
>       g_up_2 + g_down_2
>              |
>            ad0 (DISK)

Uhm, that way you get _more_ context switches than today, today g_down
will typically push the requests all the way down through the stack
without a context switch.  (Similar for g_up)


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
p...@freebsd.org         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to