linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
To: Yuri Tikhonov <yur@emcraft.com>
Cc: wd@denx.de, yanok@emcraft.com, miltonm@bga.com,
	linuxppc-dev@ozlabs.org, paulus@samba.org, dzu@denx.de
Subject: Re: [PATCH][v3] powerpc 44x: support for 256KB PAGE_SIZE
Date: Sun, 11 Jan 2009 19:53:42 -0500	[thread overview]
Message-ID: <20090112005342.GB21457@zod.rchland.ibm.com> (raw)
In-Reply-To: <200901112142.31003.yur@emcraft.com>

On Sun, Jan 11, 2009 at 09:42:30PM +0300, Yuri Tikhonov wrote:
>
>This patch adds support for 256KB pages on ppc44x-based boards.
>
>For simplification of implementation with 256KB pages we still assume
>2-level paging. As a side effect this leads to wasting extra memory space
>reserved for PTE tables: only 1/4 of pages allocated for PTEs are
>actually used. But this may be an acceptable trade-off to achieve the
>high performance we have with big PAGE_SIZEs in some applications (e.g.
>RAID).
>
>Also with 256KB PAGE_SIZE we increase THREAD_SIZE up to 32KB to minimize
>the risk of stack overflows in the cases of on-stack arrays, which size
>depends on the page size (e.g. multipage BIOs, NTFS, etc.).
>
>With 256KB PAGE_SIZE we need to decrease the PKMAP_ORDER at least down
>to 9, otherwise all high memory (2 ^ 10 * PAGE_SIZE == 256MB) we'll be
>occupied by PKMAP addresses leaving no place for vmalloc. We do not
>separate PKMAP_ORDER for 256K from 16K/64K PAGE_SIZE here; actually that
>value of 10 in support for 16K/64K had been selected rather intuitively.
>Thus now for all cases of PAGE_SIZE on ppc44x (including the default, 4KB,
>one) we have 512 pages for PKMAP.
>
>Because ELF standard supports only page sizes up to 64K, then you should
>use binutils later than 2.17.50.0.3 with '-zmax-page-size' set to 256K
>for building applications, which are to be run with the 256KB-page sized
>kernel. If using the older binutils, then you should patch them like follows:
>
>--- binutils/bfd/elf32-ppc.c.orig
>+++ binutils/bfd/elf32-ppc.c
>
>-#define ELF_MAXPAGESIZE		0x10000
>+#define ELF_MAXPAGESIZE		0x40000
>
>Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
>Signed-off-by: Ilya Yanok <yanok@emcraft.com>

Thanks.  I particularly like the additional option you have to disable
before 256K pages is an option.  I'll do a bit of testing, and barring
any unforeseen problems, I'll queue this up for 2.6.30.

josh

  reply	other threads:[~2009-01-12  0:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-11 18:42 [PATCH][v3] powerpc 44x: support for 256KB PAGE_SIZE Yuri Tikhonov
2009-01-12  0:53 ` Josh Boyer [this message]
2009-01-12 19:02 ` prodyut hazarika
2009-01-12 21:52   ` Re[2]: " Yuri Tikhonov

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=20090112005342.GB21457@zod.rchland.ibm.com \
    --to=jwboyer@linux.vnet.ibm.com \
    --cc=dzu@denx.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=miltonm@bga.com \
    --cc=paulus@samba.org \
    --cc=wd@denx.de \
    --cc=yanok@emcraft.com \
    --cc=yur@emcraft.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).