LAM wants just about 4MB as a minimum for shared memory. So if no
other programs are using sysv shmem, LAM will probably be happy.
However, since sysv shmem can easily be "leaked", it is possible that
you end up in a situation where there is no longer any memory available
for LAM's use. You can use the command ipcs to view sysv allocations.
OS X does not ship with the ipcs and ipcrm commands, but pre-compiled
versions can be found at:
http://stix.homeunix.net:8080/software/
Of course, bumping up the shmmax size also helps, since you have more
space to deal with ;).
Brian
On Dec 18, 2003, at 8:13 AM, Andrew Cunningham wrote:
> Jeff,
> Well that is strange.....here is mine...
>
> sysctl -w kern.sysv.shmmax=4194304
> sysctl -w kern.sysv.shmmin=1
> sysctl -w kern.sysv.shmmni=32
> sysctl -w kern.sysv.shmseg=8
> sysctl -w kern.sysv.shmall=1024
>
> Andrew
>
> On Dec 18, 2003, at 4:13 AM, Jeff Whitaker wrote:
>
>> Andrew: I finally did get sysv shared memory support to work, but
>> only
>> after modify some kernel parameters in /etc/rc
>>
>> --- rc.orig Tue Dec 16 13:04:41 2003
>> +++ rc Tue Dec 16 13:12:39 2003
>> @@ -84,11 +84,11 @@
>>
>> # System tuning
>> sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) '33554432 /
>> 512 *
>> 1024 +p'|dc)
>> -sysctl -w kern.sysv.shmmax=4194304
>> +sysctl -w kern.sysv.shmmax=134217728 # upped from 4 to 128mb
>> sysctl -w kern.sysv.shmmin=1
>> sysctl -w kern.sysv.shmmni=32
>> -sysctl -w kern.sysv.shmseg=8
>> -sysctl -w kern.sysv.shmall=1024
>> +sysctl -w kern.sysv.shmseg=256 # upped from 8
>> +sysctl -w kern.sysv.shmall=131072 # upped from 1024
>> if [ -f /etc/sysctl-macosxserver.conf ]; then
>> awk '{ if (!index($1, "#") && index($1, "=")) print $1 }' <
>> /etc/sysctl-macosxserver.conf | while read
>> do
>>
>> The configure script was choking because shmmax was only 4mb - I'm not
>> sure if the other changes were really necessary. I'm mystified as to
>> why
>> yours worked - what does your /etc/rc say?
>>
>> -Jeff
>>
>>
>> On Wed, 17 Dec 2003, Andrew Cunningham wrote:
>>
>>> I have built 7.0.2 on OS X 10.3.1....
>>> No problems with sysv
>>> Just a simple
>>> ./configure
>>> make
>>>
>>> ......
>>> configure:15204: checking for SYSV semaphore support
>>> configure:15206: result: yes
>>>
> -------------------
> Andrew Cunningham
> ESI Group NA.
> andrew.cunningham_at_[hidden]
> (858) 350 0057 x105
> Intl: +1-858-350 0057
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|