netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Shrink page_frag_cache
@ 2018-03-15 19:53 Matthew Wilcox
  2018-03-15 19:53 ` [RFC 1/2] mm: Use page->mapping to indicate pfmemalloc Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Matthew Wilcox @ 2018-03-15 19:53 UTC (permalink / raw)
  To: Alexander Duyck; +Cc: linux-mm, netdev, Matthew Wilcox

From: Matthew Wilcox <mawilcox@microsoft.com>

I've just learned about the page_frag_cache allocator, and now I want
to use it everywhere ;-)

But before I start using it in other places, I want to see if it can
be improved at all.  The pfmemalloc flag is pretty specific to how the
network stack uses it (with GFP_ATOMIC), and the pagecnt_bias is tricky
to understand.  I think we can do better by just using the fields in
struct page directly.  I don't have a suitable setup for performance
testing this code ... Alex, is there any chance you'd have time to give
this a spin?

Matthew Wilcox (2):
  mm: Use page->mapping to indicate pfmemalloc
  page_frag_cache: Store metadata in struct page

 include/linux/mm.h       |  16 ++----
 include/linux/mm_types.h |  17 +-----
 mm/page_alloc.c          | 143 ++++++++++++++++++++++++-----------------------
 net/core/skbuff.c        |   4 +-
 4 files changed, 82 insertions(+), 98 deletions(-)

-- 
2.16.2

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

end of thread, other threads:[~2018-03-20 20:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-15 19:53 [RFC 0/2] Shrink page_frag_cache Matthew Wilcox
2018-03-15 19:53 ` [RFC 1/2] mm: Use page->mapping to indicate pfmemalloc Matthew Wilcox
2018-03-15 19:53 ` [RFC 2/2] page_frag_cache: Store metadata in struct page Matthew Wilcox
2018-03-15 21:03   ` Eric Dumazet
2018-03-15 21:26   ` Alexander Duyck
2018-03-16 21:05     ` Matthew Wilcox
2018-03-16 21:32       ` Eric Dumazet
2018-03-19  8:27       ` Jesper Dangaard Brouer
2018-03-17 20:54     ` David Miller
2018-03-17  2:17   ` [page_frag_cache] 47b0eaa4b5: BUG:unable_to_handle_kernel kernel test robot
2018-03-20 20:47   ` [RFC 2/2] page_frag_cache: Store metadata in struct page Alexander Duyck
2018-03-15 20:02 ` [RFC 0/2] Shrink page_frag_cache Alexander Duyck

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).