Re: Problem using .zerofill / -segaddr to create very large segments
Re: Problem using .zerofill / -segaddr to create very large segments
- Subject: Re: Problem using .zerofill / -segaddr to create very large segments
- From: Alastair Houghton <email@hidden>
- Date: Tue, 22 Sep 2009 11:35:29 +0100
On 22 Sep 2009, at 11:19, Jay Reynolds Freeman wrote:
Replying privately since this isn't strictly Darwin any longer ...
True to an extent, but I wanted to understand why you were doing what
you were doing before making any suggestions, so I've bought it back
on list :-)
> I assume, given the above, that the motivation for this is that
> you're trying to set things up such that pointers in the shared
> memory all have the same addresses in each of the processes, and
> that means you want to reserve the same block of address space
> no matter what.
Correct.
Have you tried using the "vmmap" tool to investigate the virtual
memory map of the process that you're having trouble with? That
should enable you to investigate where the free regions of VM are
likely to be at the correct point in your program's execution.
I'm not sure what the precise virtual address space limits are for OS
X---there's probably a tech. note somewhere, but someone here will
know in any case---but it should be easy enough to locate a region
that's large enough for your purposes.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden