[daip] Shared memory id failure: cannot allocate memory

Eric Greisen egreisen at nrao.edu
Thu May 28 10:25:59 EDT 2009


Adam Ginsburg wrote:
> Hi, I resolved my problem by making the numbers bigger.
> 
> kern.sysv.shmmax=536870912
> kern.sysv.shmmin=1
> kern.sysv.shmmni=128
> kern.sysv.shmseg=32
> kern.sysv.shmall=131072
> 
> Adam
> 
> On Wed, May 27, 2009 at 8:59 PM, Adam Ginsburg
> <adam.ginsburg at colorado.edu> wrote:
>> Hi DAIP,
>>   I've been trying to work through the nice AIPS manager help
>> document: http://www.aips.nrao.edu/aipsmgr/index.html but I think I
>> might have exceeded its bounds.  I'm running Mac Leopard with two
>> large monitors with 1920x1200 resolution.  I was getting the "Shared
>> memory id failure: Invalid Argument" error until I changed sysctl to
>> read :
>> kern.sysv.shmmax=16855040
>> kern.sysv.shmmin=1
>> kern.sysv.shmmni=32
>> kern.sysv.shmseg=8
>> kern.sysv.shmall=4096
>>
>> Note that I had to round up from 3830*1100*4 to get a multiple of 4096
>> And now I get the following:
>>
>> START_AIPS: Your initial AIPS printer is the
>> START_AIPS:  - system name , AIPS type
>>
>> START_AIPS: User data area assignments:
>>  (Using global default file /aips/DA00/DADEVS.LIST for DADEVS.PL)
>>   Disk 1 (1) is /aips/DATA/ETA_1
>>
>> Tape assignments:
>>   Tape 1 is REMOTE
>>   Tape 2 is REMOTE
>>
>> START_AIPS: I am GUESSING you are at a workstation called eta
>> START_AIPS: Starting TV servers on eta asynchronously
>> START_AIPS:  - with Internet Sockets...
>> START_AIPS: Starting TPMON daemons on ETA asynchronously...
>> Starting up 31DEC09 AIPS with normal priority
>> XASERVERS: Start TV LOCK daemon TVSERV on eta
>> XASERVERS: Start XAS on eta, DISPLAY /tmp/launch-UOg2ei/:0
>> XASERVERS: Start graphics server TEKSRV on eta, DISPLAY /tmp/launch-UOg2ei/:0
>> XASERVERS: Start message server MSGSRV on eta, DISPLAY /tmp/launch-UOg2ei/:0
>> TVSERVER: Starting AIPS TV locking, Inet domain
>> Begin the one true AIPS number 1 (release of 31DEC09) at priority =   0
>> STARTPMON: [ETA] Starting TPMON1 with output SUPPRESSED
>> AIPS 1: You are assigned TV device/server   1
>> AIPS 1: You are assigned graphics device/server   1
>> AIPS 1: Enter user ID number
>> ?XAS: ** TrueColor FOUND!!!
>> XAS: ***  Using shared memory option for speed ***
>> XAS: Using screen width 3830 height 1100,
>>     max grey level 8191 in 16 grey-scale memories
>> Shared memory id failure: Cannot allocate memory
>> Warning: locale not supported by Xlib, locale set to C
>> Warning: locale not supported by Xlib, locale set to C
>>
>>
>> So... is this a problem with my graphics card?  Or... what?
>>
>> Thanks,
>> Adam
>>
> 
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip

I bet  33554432 with 4096 would have worked.  I think the first number 
must be an integer power of 2.  Your value is 4115 * 4096.  The extreme 
numbers you have put in are probably not necessary.

Cheers,

Eric Greisen




More information about the Daip mailing list