All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Stephen Williams <steve@icarus.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: mmap nocache on PPC, 2.4
Date: Mon, 22 Aug 2005 13:09:57 -0400	[thread overview]
Message-ID: <20d4aca8d8032c5762deb047185d2c6e@embeddededge.com> (raw)
In-Reply-To: <4309E2AC.9080404@icarus.com>


On Aug 22, 2005, at 10:35 AM, Stephen Williams wrote:

> In an embedded system, I want a big chunk of virtual memory in the
> user process to be uncached.

Why?  What processor it this?  Who else touches this memory?

> .... I've created a virtual device driver that
> has this mmap method:

Even if this did what you thought it should, I'm not sure you
would be happy with the results.  The challenge is ensuring
anyone that touches these physical pages also does so
uncached.  Depending upon the processor, this isn't something
that is trivial to change in the kernel, since we always map
all of memory as efficiently as possible with a cached mapping.
The caching of memory has many desirable performance
side effects, making the trade off the manage coherency in
software if needed an overall system gain.

Thanks.

	-- Dan

  reply	other threads:[~2005-08-22 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-22 14:35 mmap nocache on PPC, 2.4 Stephen Williams
2005-08-22 17:09 ` Dan Malek [this message]
2005-08-22 17:26   ` Stephen Williams
2005-08-22 17:47     ` Stephen Williams

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=20d4aca8d8032c5762deb047185d2c6e@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=steve@icarus.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.