• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem using .zerofill / -segaddr to create very large segments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using .zerofill / -segaddr to create very large segments


  • Subject: Re: Problem using .zerofill / -segaddr to create very large segments
  • From: Jay Reynolds Freeman <email@hidden>
  • Date: Sat, 19 Sep 2009 15:54:41 -0700

In brief, I have a parallel Lisp implementation, in which separate Lisp processes (separate Unix processes, not separate threads) share a common main memory via mmap. I use a dual-space strategy for garbage collection, and I think it is not unreasonable to have single spaces that can be as large as the largest Macintosh RAM capacity, which I think is still 64 GByte. See the "Software" page of my web site (URL for home page in my .sig) for further information. I will be glad to discuss it off-list if anyone is interested.

--  Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)


On Sep 19, 2009, at 3:13 PM, Alastair Houghton wrote:

On 19 Sep 2009, at 21:43, Jay Reynolds Freeman wrote:

My problem concerns keeping a block of memory out of the clutches of the storage allocator (malloc, new, et cetera), so that I can use it for mmap.

Are you *sure* that doing this is necessary?

Reserving address space in this manner seems a pretty odd thing to do, and my inclination would be to look carefully at what you're doing that is making it necessary to use all these ".zerofill"s, since your program is probably better off without them.

Might be worth posting some questions to darwin-dev explaining what the problem is, if you haven't already.

Kind regards,

Alastair.

--
http://alastairs-place.net




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem using .zerofill / -segaddr to create very large segments (From: Jay Reynolds Freeman <email@hidden>)
 >Re: Problem using .zerofill / -segaddr to create very large segments (From: Alastair Houghton <email@hidden>)

  • Prev by Date: C++ std::string.resize calls append instead
  • Next by Date: Re: C++ std::string.resize calls append instead
  • Previous by thread: Re: Problem using .zerofill / -segaddr to create very large segments
  • Next by thread: C++ std::string.resize calls append instead
  • Index(es):
    • Date
    • Thread