[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111219.163337.1185514300243434827.davem@davemloft.net>
Date: Mon, 19 Dec 2011 16:33:37 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: peppe.cavallaro@...com
Cc: netdev@...r.kernel.org, rubini@...dd.com, giancarlo.asnaghi@...com
Subject: Re: [PATCH] stmmac: reduce queue lengths if MTU is very large
From: Giuseppe CAVALLARO <peppe.cavallaro@...com>
Date: Mon, 19 Dec 2011 06:45:30 +0100
> From: Alessandro Rubini <rubini@...dd.com>
>
> In my use case (STA2X11 IO-Hub), the alloc_coherent, map_single and
> friends map to a reserved area set up in swiotlb. With the default
> MTU each packet takes 2kB, but with jumbo frames it increases to 16kB
> and consumes up my area (it takes 8MB instead of 1MB).
>
> Instead of increasing the reserved (== wasted) preallocated area in
> swiotlb, this patch rescales the user-selected queue lengths if the MTU
> is modified at runtime to be larger than the default. User choices
> are still obeyed (compiled default, module parameter, command line)
>
> Signed-off-by: Alessandro Rubini <rubini@...dd.com>
> Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@...com>
> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@...com>
This change doesn't make sense.
If the user is only sending/receiving small frames, then this patch
will hurt them.
I'm not applying this, it just points out that the amount of reserved
space in your SWIOMMU setup might be insufficient for this situation
rather than something that should be tweaked in this driver.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists