linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Tim Chen <tim.c.chen@linux.intel.com>
Cc: linux-mm@kvack.org, Jan Kara <jack@suse.cz>
Subject: Re: [PATCH 1/2] pagevec: Allow pagevecs to be different sizes
Date: Fri, 6 Nov 2020 19:12:10 +0000	[thread overview]
Message-ID: <20201106191210.GR17076@casper.infradead.org> (raw)
In-Reply-To: <1c857e99-5985-5bc2-ca29-c77d612460fa@linux.intel.com>

On Fri, Nov 06, 2020 at 09:17:43AM -0800, Tim Chen wrote:
> 
> >  
> > +static inline unsigned pagevec_size(struct pagevec *pvec)
> > +{
> > +	return pvec->sz;
> > +}
> > +
> >  static inline unsigned pagevec_count(struct pagevec *pvec)
> >  {
> 
> Willy,
> 
> I was expecting pagevec_size to be used in pagevec_lookup_range*
> where we hardcoded the pagevec's top range to look for pages
> as PAGEVEC_SIZE.  You define pagevec_size but seems like it is not used.
> Or am I missing something?  

I have a number of changes already in that area that are currently in-flight.

https://lore.kernel.org/linux-mm/20201026041408.25230-1-willy@infradead.org/

(although I should modify patch 9/12 to not use PAGEVEC_SIZE directly)

I have some patches that I haven't bothered sending yet since I have so
many other outstanding patches to do something similar to find_get_pages()
/ find_get_pages_range() / pagevec_lookup() / pagevec_lookup_range().


The trace you sent showed the problem being with the lru_add pagevec,
and that's never used with the pagevec_lookup_* APIs (afaik), so I didn't
see it as urgent to fix those.


  reply	other threads:[~2020-11-06 19:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-05 17:26 [PATCH 0/2] Increase the size of LRU pagevecs Matthew Wilcox (Oracle)
2020-11-05 17:26 ` [PATCH 1/2] pagevec: Allow pagevecs to be different sizes Matthew Wilcox (Oracle)
2020-11-06 17:17   ` Tim Chen
2020-11-06 19:12     ` Matthew Wilcox [this message]
2020-11-06 22:18       ` Tim Chen
2020-11-07  1:21         ` Matthew Wilcox
2020-11-05 17:26 ` [PATCH 2/2] pagevec: Increase the size of LRU pagevecs Matthew Wilcox (Oracle)
2020-11-06  0:51 ` [PATCH 0/2] " Tim Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201106191210.GR17076@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=jack@suse.cz \
    --cc=linux-mm@kvack.org \
    --cc=tim.c.chen@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).