public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: Make show_mem() skip holes in a pgdat.
Date: Thu, 13 Apr 2006 16:36:05 +0000	[thread overview]
Message-ID: <4t153d$lol5q@azsmga001.ch.intel.com> (raw)
In-Reply-To: <20060413031519.GB2678@lnx-holt.americas.sgi.com>

Robin Holt wrote on Wednesday, April 12, 2006 8:15 PM
> This patch modifies ia64's show_mem() to walk the vmem_map page tables and
> rapidly skip forward across regions where the page tables are missing.
> This prevents the pfn_valid() check from causing numerous unnecessary
> page faults.
> 
> Without this patch on a 512 node 512 cpu system where every node has four
> memory holes, the show_mem() call takes 1 hour 18 minutes.  With this
> patch, it takes less than 3 seconds.


If you are going to respin another rev, please consider the following.
no biggy, just some cosmetic stuff.

> +				pgd = pgd_offset_k(end_address);
> +				if (pgd_none(*pgd)) {
> +					end_address += PTRS_PER_PUD *
> +						       PTRS_PER_PMD *
> +						       PTRS_PER_PTE *
> +						       PAGE_SIZE;

end_address += PGDIR_SIZE;


> +				pud = pud_offset(pgd, end_address);
> +				if (pud_none(*pud)) {
> +					end_address += PTRS_PER_PMD *
> +						       PTRS_PER_PTE *
> +						       PAGE_SIZE;

end_address += PUD_SIZE;

> +
> +				pmd = pmd_offset(pud, end_address);
> +				if (pmd_none(*pmd)) {
> +					end_address += PTRS_PER_PTE *
> +						       PAGE_SIZE;

end_address += PMD_SIZE;

      parent reply	other threads:[~2006-04-13 16:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13  3:15 Make show_mem() skip holes in a pgdat Robin Holt
2006-04-13  8:05 ` Andreas Schwab
2006-04-13 13:14 ` Robin Holt
2006-04-13 16:04 ` Bob Picco
2006-04-13 16:36 ` Chen, Kenneth W [this message]

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='4t153d$lol5q@azsmga001.ch.intel.com' \
    --to=kenneth.w.chen@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