From: Dan Malek <dan@embeddededge.com>
To: Anil Giri <anil@india.tejasnetworks.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: _PAGE_WRITETHRU option in 8xx
Date: Thu, 10 Jul 2003 12:34:58 -0400 [thread overview]
Message-ID: <3F0D95B2.6030702@embeddededge.com> (raw)
In-Reply-To: 1057841040.3f0d5f9022327@pop-mail.india.tejasnetworks.com
Anil Giri wrote:
> I am using linuxppx_2_4_20 from denx and i can;t find the _PAGE_WRITETHRU
> option in include/asm-ppc/pgtable.h for 8xx. Is it replaced or ommitted?
Write through cache mode per page on 8xx is not easy to set. It requires
additonal overhead in the TLB Miss handler that will affect all page misses
and is a performance loss for all applications. Additionally, you can't
arbitrarily set this mode on a page because it causes conflicting cache
modes in the VM map. You would have to add yet another special memory
space and management functions like we have for managing DMA coherent memory.
From a systems engineering perspective, write through cache is seldom a
performance benefit. For small address ranges and access, it is better to
use uncached memory because you don't replace lines more useful to others.
If you are heavily accessing cached data that must be synchronized with
other operations, copyback with explicit cache push provides better performance.
For debugging, you can globally select write through instead of copyback,
and obviously I'm not recommending using write through for normal operation.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2003-07-10 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-28 16:27 _PAGE_WRITETHRU option in 8xx Anil Giri
2003-07-10 13:00 ` Wolfgang Denk
2003-07-10 16:34 ` Dan Malek [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=3F0D95B2.6030702@embeddededge.com \
--to=dan@embeddededge.com \
--cc=anil@india.tejasnetworks.com \
--cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).