Re: Questions on Memory Address Space under Linux x64

  • From: Mike Pall <mike-1207@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 5 Jul 2012 10:00:35 +0200

Armin Pies wrote:
> You say that our memory mapping is no problem. But what's about
> other memory allocation via new, STL allocators, boost etc.? How
> can we ensure that the 1GB of the 32bit address space is
> available for Luajit?

Depends on what system call they use as a backend. If it's mmap(),
then it's ok. If it's brk()/sbrk(), then the space starts right
after the main executable, which might get in the way. AFAIR there
are environment variables to tell these allocators not to use it.


Other related posts: