linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Cc: linux-mm@kvack.org
Subject: Re: sizeof(struct page) from 44 to 32 bytes for 32-bit <256MB
Date: Wed, 8 Dec 1999 18:54:41 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.10.9912081845560.596-100000@alpha.random> (raw)
In-Reply-To: <E11vl73-00012G-00@sable.ox.ac.uk>

On Wed, 8 Dec 1999, Malcolm Beattie wrote:

>too). That means that a lot of uses of struct page only use a single
>cache line per touched struct page instead of two.

Using two cachelines could produce better performances depending on the
layout and on the usage of the entries in the struct. So it's not enough
to tell that it takes only on cacheline to say that it will be faster.

>The idea is to replace the various struct page pointers (4 bytes) with
>a 2 byte page frame number which can then cope with 64K x 4K = 256MB
>physical RAM. The relevant pointers are the struct page * fields (two

IMHO it will decrease too much performacnes. Both ->list and ->lru are
very hot piece of code. When you shrink the cache you want to delete pages
from the page-LRU ASAP and you don't want to spend time in
(pfn<<PAGE_SHIFT)+PAGE_OFFSET. The same is true for malloc(2) and free(2).

>then optimize for other architectures too. For example, Alpha and
>sparc64 could use a 32-bit pfn instead of a 64-bit pointer in all
>those places which would again save cacheline space.

Avoiding the (pfn<<PAGE_SHIFT)+PAGE_OFFSET is an issue for Alpha and
Sparc64 too.

Andrea

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

      reply	other threads:[~1999-12-08 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-08 17:42 Malcolm Beattie
1999-12-08 17:54 ` Andrea Arcangeli [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=Pine.LNX.4.10.9912081845560.596-100000@alpha.random \
    --to=andrea@suse.de \
    --cc=linux-mm@kvack.org \
    --cc=mbeattie@sable.ox.ac.uk \
    /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