On Tue, Apr 19, 2016 at 7:25 PM, Jesper Dangaard Brouer <brouer@xxxxxxxxxx> wrote: > On Mon, 18 Apr 2016 07:17:13 -0700 > Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote: > >> Another idea would be to have a way to control max number of order-5 >> pages that a port would be using. >> >> Since driver always own a ref on a order-5 pages, idea would be to >> maintain a circular ring of up to XXX such pages, so that we can detect >> an abnormal use and fallback to order-0 immediately. > > That is part of my idea with my page-pool proposal. In the page-pool I > want to have some watermark counter that can block/stop the OOM issue at > this RX ring level. > > See slide 12 of presentation: > http://people.netfilter.org/hawk/presentations/MM-summit2016/generic_page_pool_mm_summit2016.pdf > Cool Idea guys, and we already tested our own version of it, we tried to recycle our own driver pages but we saw that the stack took too long to release them, we had to work with 2X and sometimes 4X pages pool per ring to be able to reuse recycled pages on every RX packet on 50Gb line rate, but we dropped the Idea since 2X is too much. but definitely, this is the best way to go for all drivers, reusing already dma mapped pages and significantly reducing dma operations for the driver is a big win ! we are still considering such option as future optimization. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>