From: Zou Nan hai <nanhai.zou@intel.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Patch 2/3] Free off node page tables instead of placing on
Date: Mon, 28 Feb 2005 05:23:25 +0000 [thread overview]
Message-ID: <1109568205.28455.2.camel@linux-znh> (raw)
In-Reply-To: <20050226142627.GF10965@lnx-holt.americas.sgi.com>
On Sat, 2005-02-26 at 22:26, Robin Holt wrote:
> Tony,
>
> This patch is simple but necessary for large numa configurations.
> Index: linux-2.6/include/asm-ia64/pgalloc.h
> =================================> --- linux-2.6.orig/include/asm-ia64/pgalloc.h 2005-02-25 14:40:02.208212833 -0600
> +++ linux-2.6/include/asm-ia64/pgalloc.h 2005-02-25 15:10:32.929665721 -0600
> @@ -49,6 +49,16 @@
> static inline void
> pgtable_quicklist_free (void *pgtable_entry)
> {
> +#ifdef CONFIG_NUMA
> + int pg_node;
> +
> + pg_node = page_zone(virt_to_page(pgtable_entry))->zone_pgdat->node_id;
Maybe you could use the macro page_to_nid
> + if (pg_node != numa_node_id()) {
will put an unlikely here better?
> + free_page((unsigned long) pgtable_entry);
> + return;
> + }
> +#endif
> +
> preempt_disable();
> *(unsigned long *)pgtable_entry = (unsigned long) local_cpu_data->pgtable_quicklist;
> local_cpu_data->pgtable_quicklist = (unsigned long *) pgtable_entry;
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2005-02-28 5:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-26 14:26 [Patch 2/3] Free off node page tables instead of placing on the quicklist Robin Holt
2005-02-28 5:23 ` Zou Nan hai [this message]
2005-02-28 11:28 ` Robin Holt
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=1109568205.28455.2.camel@linux-znh \
--to=nanhai.zou@intel.com \
--cc=linux-ia64@vger.kernel.org \
/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