public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to use memory over 4GB
@ 2005-05-16 12:42 Roberto Fichera
  2005-05-16 12:56 ` Michael Tokarev
  2005-05-16 12:57 ` Eric Dumazet
  0 siblings, 2 replies; 17+ messages in thread
From: Roberto Fichera @ 2005-05-16 12:42 UTC (permalink / raw)
  To: linux-kernel

Hi All,

I've a dual Xeon 3.2GHz HT with 8GB of memory running kernel 2.6.11.
I whould like to know the way how to use all the memory in a single
process, the application is a big simulation which needs big memory chuncks.
I have readed about hugetlbfs, shmfs and tmpfs, but don't understand how I 
can access
the whole memory. Ok! I can create a big file on tmpfs using shm_open() and
than map it by using mmap() or mmap2() but how can I access over 4GB using
standard pointers (if I had to use it)?

So, please send me some url, documents etc and/or piece
of source code that shows how to do it in user space.

Thanks _very much_ in advance,

Roberto Fichera. 


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: How to use memory over 4GB
@ 2005-05-16 12:55 li nux
  2005-05-16 13:06 ` Roberto Fichera
  0 siblings, 1 reply; 17+ messages in thread
From: li nux @ 2005-05-16 12:55 UTC (permalink / raw)
  To: Roberto Fichera, linux-kernel

I guess u r on 32-bit platform.
Then, u need to enable PAE ( if not enabled alredy)
and rebuild the kernel.
This will be transparent to the user space.
Ur word size will still be 32-bit, only thing is PAE
will change the way u translate the address by adding
one more level of indexing to the page table.

-lnxluv.

--- Roberto Fichera <kernel@tekno-soft.it> wrote:
> Hi All,
> 
> I've a dual Xeon 3.2GHz HT with 8GB of memory
> running kernel 2.6.11.
> I whould like to know the way how to use all the
> memory in a single
> process, the application is a big simulation which
> needs big memory chuncks.
> I have readed about hugetlbfs, shmfs and tmpfs, but
> don't understand how I 
> can access
> the whole memory. Ok! I can create a big file on
> tmpfs using shm_open() and
> than map it by using mmap() or mmap2() but how can I
> access over 4GB using
> standard pointers (if I had to use it)?
> 
> So, please send me some url, documents etc and/or
> piece
> of source code that shows how to do it in user
> space.
> 
> Thanks _very much_ in advance,
> 
> Roberto Fichera. 
> 
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-05-17  7:16 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-16 12:42 How to use memory over 4GB Roberto Fichera
2005-05-16 12:56 ` Michael Tokarev
2005-05-16 13:16   ` Roberto Fichera
2005-05-16 15:10     ` William Lee Irwin III
2005-05-16 15:47       ` Roberto Fichera
2005-05-16 15:54         ` William Lee Irwin III
2005-05-16 16:37           ` Roberto Fichera
2005-05-16 19:14   ` Bill Davidsen
2005-05-16 12:57 ` Eric Dumazet
2005-05-16 13:18   ` Roberto Fichera
2005-05-16 14:17     ` Eric Dumazet
2005-05-16 14:50       ` Roberto Fichera
2005-05-16 21:34         ` Nix
2005-05-17  7:15           ` Roberto Fichera
2005-05-16 15:22       ` William Lee Irwin III
  -- strict thread matches above, loose matches on Subject: below --
2005-05-16 12:55 li nux
2005-05-16 13:06 ` Roberto Fichera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox