linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Joel Schopp <jschopp@austin.ibm.com>
To: Mel Gorman <mel@csn.ul.ie>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: Avoiding external fragmentation with a placement policy Version 11
Date: Wed, 25 May 2005 13:04:53 -0500	[thread overview]
Message-ID: <4294BE45.3000502@austin.ibm.com> (raw)
In-Reply-To: <20050522200507.6ED7AECFC@skynet.csn.ul.ie>

> Changelog since V10
> 
> o Important - All allocation types now use per-cpu caches like the standard
>   allocator. Older versions may have trouble with large numbers of processors

Do you have a new set of benchmarks we could see?  The ones you had for 
v10 were pretty useful.

> o Removed all the additional buddy allocator statistic code

Is there a separate patch for the statistic code or is it no longer 
being maintained?

> +/*
> + * Shared per-cpu lists would cause fragmentation over time
> + * The pcpu_list is to keep kernel and userrclm allocations
> + * apart while still allowing all allocation types to have
> + * per-cpu lists
> + */

Why are kernel nonreclaimable and kernel reclaimable joined here?  I'm 
not saying you are wrong, I'm just ignorant and need some education.

> +struct pcpu_list {
> +	int count;
> +	struct list_head list;
> +} ____cacheline_aligned_in_smp;
> +
>  struct per_cpu_pages {
> -	int count;		/* number of pages in the list */
> +	struct pcpu_list pcpu_list[2]; /* 0: kernel 1: user */
>  	int low;		/* low watermark, refill needed */
>  	int high;		/* high watermark, emptying needed */
>  	int batch;		/* chunk size for buddy add/remove */
> -	struct list_head list;	/* the list of pages */
>  };
>  

Instead of defining 0 and 1 in a comment why not use a #define?

 > +			pcp->pcpu_list[0].count = 0;
 > +			pcp->pcpu_list[1].count = 0;

The #define would make code like this look more readable.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2005-05-25 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-22 20:05 Mel Gorman
2005-05-25 18:04 ` Joel Schopp [this message]
2005-05-26 12:35   ` Mel Gorman
2005-05-25 20:40 ` Mike Kravetz
2005-05-26 12:42   ` Mel Gorman

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=4294BE45.3000502@austin.ibm.com \
    --to=jschopp@austin.ibm.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    /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