mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Rustad <mrustad@mac.com>
To: Dave Hansen <haveblue@us.ibm.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6.15-rc5] hugetlb: make make_huge_pte global and fix coding style
Date: Fri, 9 Dec 2005 13:51:55 -0600	[thread overview]
Message-ID: <DB1A6A43-DA12-4C5B-B195-5C01DED4CF3E@mac.com> (raw)
In-Reply-To: <1134151696.3278.2.camel@localhost>

On Dec 9, 2005, at 12:08 PM, Dave Hansen wrote:

> On Fri, 2005-12-09 at 11:55 -0600, Mark Rustad wrote:
>> On Dec 9, 2005, at 11:16 AM, Dave Hansen wrote:
>>
>>> What driver needs to map huge pages?  Is it in the kernel tree
>>> now?  If
>>> not, can you post the source, please?
>>
>> It is a funky driver for an embedded system. I can't imagine it ever
>> being in the kernel tree, because not many people want to share 768M
>> of contiguous physical memory.
>>
>> I can post the source, but it really is a bunch of random stuff for
>> am embedded application. We do make it available as part of our GPL
>> source release to customers.
>
> You'd be surprised.  If we know what you're actually trying to do, we
> might be able to suggest another option.  As Adam said, having  
> userspace
> mmap a hugetlb area, then hand it to the driver would certainly keep
> your kernel modifications to a minimum.

Actually, the driver never touches any of the memory at all either  
directly or indirectly - it simply maps the memory for the processes  
that use it. Those processes actually contain PCI device drivers  
which do DMA on much of the memory. The same memory also holds data  
structures shared by those processes. If hugetlbfs could be  
guaranteed to provide contiguous memory for a file, that could be  
used in this application. We used to use remap_pfn_range in our  
driver, but recent changes there made that not work for this  
application, so I figured I may as well switch to huge pages for  
these monster areas. At least, gdb was unable to access these large  
shared areas, which is a deal-breaker for our developers.

In case you are wondering, these processes were ported onto Linux  
from a different, non-x86-based, system that had three cpus which  
could directly address each other's memory. They have now been  
running happily on top of x86 Linux now for well over a year.

-- 
Mark Rustad, MRustad@mac.com


  reply	other threads:[~2005-12-09 19:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-09 16:39 Mark Rustad
2005-12-09 17:05 ` Adam Litke
2005-12-09 17:50   ` Mark Rustad
2005-12-09 17:16 ` Dave Hansen
2005-12-09 17:55   ` Mark Rustad
2005-12-09 18:08     ` Dave Hansen
2005-12-09 19:51       ` Mark Rustad [this message]
2005-12-09 20:37         ` Hugh Dickins
2005-12-09 21:18           ` Mark Rustad
2005-12-09 22:12             ` Hugh Dickins
2005-12-10  6:01               ` Mark Rustad

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=DB1A6A43-DA12-4C5B-B195-5C01DED4CF3E@mac.com \
    --to=mrustad@mac.com \
    --cc=haveblue@us.ibm.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®