Increasing MAXPHYS

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Mar 23 08:56:27 UTC 2010


In message <20100322233607.GB1767 at 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
phk at 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.


More information about the freebsd-current mailing list