[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1409660440.1808.17.camel@jlt4.sipsolutions.net>
Date: Tue, 02 Sep 2014 14:20:40 +0200
From: Johannes Berg <johannes@...solutions.net>
To: netdev <netdev@...r.kernel.org>,
linux-wireless <linux-wireless@...r.kernel.org>
Cc: Ido Yariv <ido@...ery.com>, Emmanuel Grumbach <egrumbach@...il.com>
Subject: truesize for pages shared between SKBs
Hi,
In our driver, we have 4k receive buffers, but usually ~1500 byte
packets.
How do other drivers handle this? We currently set up the truesize of
each SKB to be its size plus the 4k page size, but we see performance
improvements when we lie and pretend the truesize is just 4k/(# of
packets in the page), which is correct as long as the packets are all
pending in the stack since they share the page.
How do other drivers handle this? Should the truesize maybe be aware of
this kind of sharing? Should we just lie about it and risk that the
truesize is accounted erroneously if some but not all of the packets are
freed?
Thanks,
johannes
--
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