netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* truesize for pages shared between SKBs
@ 2014-09-02 12:20 Johannes Berg
  2014-09-02 15:51 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2014-09-02 12:20 UTC (permalink / raw)
  To: netdev, linux-wireless; +Cc: Ido Yariv, Emmanuel Grumbach

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 linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-02 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-02 12:20 truesize for pages shared between SKBs Johannes Berg
2014-09-02 15:51 ` Eric Dumazet
2014-09-02 16:00   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).