[daip] Aips on Mac OS 10.5 TV problem

Wes Young wyoung at nrao.edu
Wed Jul 9 00:51:25 EDT 2008


So, what do you get with

sysctl kern.sysv

You will need to specified shmmax greater than 18432000.  Try 20480000  
and see if it still fails.

wes
wyoung at aoc.nrao.edu


On Jul 5, 2008, at 11:12 AM, Robert Mutel wrote:

> Hi Wes,
>
> I finally got this to work, but learned a few things that might be  
> useful to other iMac AIPS users.
>
> 1. The 24-inch iMac has a screen size of 1920x1200, so it needs 4 x  
> 1920 x 1024 = 9216000 allocation.
>
> 2. I have a second monitor hooked up (SyncMaster 243, also  
> 1920x1200). Running the displays unmirrored, so they are  
> independent, requires twice the memory allocation (18,432,000). This  
> does NOT work in AIPS. I can allocate this much shared memory in the  
> sysctl.conf file, and it shows up in in the system.log and xdpyinfo  
> fine, but AIPS complains that it can't allocate the shared memory.
>
> 3. I suspect there is some (arbitrary?) limit in the XAS driver that  
> could be adjusted. It would be convenient to have two large screens  
> in AIPS.
>
> 4. My work-around is to set select 'mirror display', turn off power  
> to the second screen.
>
> Robert
>
> Also, xdpyinfo shows the same:
>
> screen #0:
>   print screen:    no
>   dimensions:    3840x1200 pixels (1300x406 millimeters)
>   resolution:    75x75 dots per inch
>   depths (7):    24, 1, 4, 8, 15, 16, 32
>   root window id:    0x3f
>   depth of root window:    24 planes
>   number of colormaps:    minimum 1, maximum 1
>   default colormap:    0x21
>   default number of colormap cells:    256
>   preallocated pixels:    black 0, white 16777215
>   options:    backing-store NO, save-unders NO
>   largest cursor:    32x32
>   current input event mask:    0x1a0000
>
> Unfortunately I get exactly the same error message on AIPS startup:
>
>
>
> On Thu, Jul 3, 2008 at 5:31 PM, Wes Young <wyoung at aoc.nrao.edu> wrote:
> Try setting your shmmax to
>
> 16777216
>
> Your value of 16777212 is not an integral number of pages hence the  
> value is not taken.
>
> wes
> wyoung at aoc.nrao.edu
>
>
>
> On Jul 3, 2008, at 4:04 PM, Robert Mutel wrote:
>
> Hi Eric (?),
>
> I am having exactly the same problem as Geofranco Gentile (daip  
> email, June 5,2008) :
> I cannot get the aips TV working on 24-inch iMac running Leopard  
> [10.5.3 in my case]. Everything
> else, (msgsrv, teksrv, task, etc) works fine. The startup looks like:
>
> [LOCALHOST:~] robert% aips tv=local
> START_AIPS: Will use or start first available Unix Socket based TV
> START_AIPS: Your initial AIPS printer is the Dell5200
> START_AIPS:  - system name ETH_M5200, AIPS type PS
>
> START_AIPS: User data area assignments:
>  (Using global default file /Volumes/FW160/aips/DA00/DADEVS.LIST for  
> DADEVS.PL)
>   Disk 1 (1) is /Volumes/FW160/aips/DATA/LOCALHOST_1
>
> Tape assignments:
>   Tape 1 is REMOTE
>   Tape 2 is REMOTE
>
> START_AIPS: Starting TV servers on localhost asynchronously
> START_AIPS:  - WITH Unix Sockets as requested...
> START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
> Starting up 31DEC08 AIPS with normal priority
> Begin the one true AIPS number 1 (release of 31DEC08) at priority  
> =   0
> AIPS 1: You are not on a local TV device, welcome stranger
> AIPS 1: You are assigned TV device/server   2
> AIPS 1: You are assigned graphics device/server   2
> UNIXSERVERS: TVSRV1 is already running on host localhost, user robert
> UNIXSERVERS: Start XAS1 on localhost, DISPLAY /tmp/launch-113JAi/:0
> 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: Invalid argument
> UNIXSERVERS: Start graphics server TKSRV1 on localhost, display /tmp/ 
> launch-113JAi/:0
> UNIXSERVERS: Start message server MSSRV1 on localhost, display /tmp/ 
> launch-113JAi/:0
> AIPS 1: Enter user ID number
> ?
>
>
>
> I added a /etc/sysctl.conf file as instructed in the AIPS notes,  
> then rebooted. The file looks like this:
>
> [LOCALHOST:~] robert% more /etc/sysctl.conf
> kern.sysv.shmmax=16777212
> kern.sysv.shmmin=1
> kern.sysv.shmmni=32
> kern.sysv.shmseg=8
> kern.sysv.shmall=4096
>
> but the output of sysctl kern.sysv command looks like:
>
> [LOCALHOST:~] robert% sysctl kern.sysv
> kern.sysv.shmall: 4096
> kern.sysv.shmseg: 8
> kern.sysv.shmmni: 32
> kern.sysv.shmmin: 1
> kern.sysv.shmmax: 4194304
> kern.sysv.semume: 10
> kern.sysv.semmsl: 87381
> kern.sysv.semmnu: 87381
> kern.sysv.semmns: 87381
> kern.sysv.semmni: 87381
> kern.sysv: No such file or directory
>
> i.e., It appears that the .conf file (after reboot) does not take  
> the 16777212 value for shmmax.
>
> Any insight on this?
>
> Robert
>
> p.s. Here' the output of sysctl -a | grep kern
>
> [LOCALHOST:~] robert% sysctl -a | grep kern
> kern.exec: unknown type returned
> kern.ostype = Darwin
> kern.osrelease = 9.3.0
> kern.osrevision = 199506
> kern.version = Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT  
> 2008; root:xnu-1228.5.18~1/RELEASE_I386
> kern.maxvnodes = 66560
> kern.maxproc = 532
> kern.maxfiles = 12288
> kern.argmax = 262144
> kern.securelevel = 0
> kern.hostname = rlm-office.physics.uiowa.edu
> kern.hostid = 0
> kern.clockrate: hz = 100, tick = 10000, profhz = 100, stathz = 100
> kern.posix1version = 200112
> kern.ngroups = 16
> kern.job_control = 1
> kern.saved_ids = 1
> kern.boottime = Thu Jul  3 16:39:53 2008
> kern.nisdomainname =
> kern.maxfilesperproc = 10240
> kern.maxprocperuid = 266
> kern.dummy = 0
> kern.dummy = 0
> kern.usrstack = -1073741824
> kern.dummy = 0
> kern.netboot = 0
> kern.dummy = 0
> kern.dummy = 0
> kern.aiomax = 90
> kern.aioprocmax = 16
> kern.aiothreads = 4
> kern.corefile = /cores/core.%P
> kern.coredump = 1
> kern.sugid_coredump = 0
> kern.delayterm = 0
> kern.shreg_private = 0
> kern.proc_low_pri_io = 0
> kern.usrstack64 = 3221225472
> kern.nx = 1
> kern.procname =
> kern.speculative_reads_disabled = 0
> kern.osversion = 9D34
> kern.safeboot = 0
> kern.rage_vnode = 0
> kern.ostype: Darwin
> kern.osrelease: 9.3.0
> kern.osrevision: 199506
> kern.version: Darwin Kernel Version 9.3.0: Fri May 23 00:49:16 PDT  
> 2008; root:xnu-1228.5.18~1/RELEASE_I386
> kern.maxvnodes: 66560
> kern.maxproc: 532
> kern.maxfiles: 12288
> kern.argmax: 262144
> kern.securelevel: 0
> kern.hostname: rlm-office.physics.uiowa.edu
> kern.hostid: 0
> kern.clockrate: { hz = 100, tick = 10000, tickadj = 1, profhz = 100,  
> stathz = 100 }
> kern.posix1version: 200112
> kern.ngroups: 16
> kern.job_control: 1
> kern.saved_ids: 1
> kern.boottime: { sec = 1215121193, usec = 0 } Thu Jul  3 16:39:53 2008
> kern.nisdomainname:
> kern.maxfilesperproc: 10240
> kern.maxprocperuid: 266
> kern.ipc.maxsockbuf: 8388608
> kern.ipc.sockbuf_waste_factor: 8
> kern.ipc.somaxconn: 128
> kern.ipc.nmbclusters: 32768
> kern.ipc.soqlimitcompat: 1
> kern.ipc.mb_normalized: 0
> kern.ipc.sosendjcl_ignore_capab: 0
> kern.ipc.sosendjcl: 1
> kern.ipc.sorecvmincopy: 16384
> kern.ipc.sosendminchain: 16384
> kern.ipc.soqlencomp: 0
> kern.ipc.njclbytes: 16384
> kern.ipc.njcl: 10920
> kern.ipc.sbspace_factor: 8
> kern.ipc.maxsockets: 512
> kern.ipc.sendfileuiobufs: 64
> kern.dummy: 0
> kern.usrstack: -1073741824
> kern.netboot: 0
> kern.sysv.shmall: 4096
> kern.sysv.shmseg: 8
> kern.sysv.shmmni: 32
> kern.sysv.shmmin: 1
> kern.sysv.shmmax: 4194304
> kern.sysv.semume: 10
> kern.sysv.semmsl: 87381
> kern.sysv.semmnu: 87381
> kern.sysv.semmns: 87381
> kern.sysv.semmni: 87381
> kern.exec.archhandler.powerpc: /usr/libexec/oah/translate
> kern.aiomax: 90
> kern.aioprocmax: 16
> kern.aiothreads: 4
> kern.corefile: /cores/core.%P
> kern.coredump: 1
> kern.sugid_coredump: 0
> kern.delayterm: 0
> kern.shreg_private: 0
> kern.proc_low_pri_io: 0
> kern.posix.sem.max: 10000
> kern.usrstack64: 3221225472
> kern.nx: 1
> kern.tfp.policy: 2
> kern.procname:
> kern.speculative_reads_disabled: 0
> kern.osversion: 9D34
> kern.safeboot: 0
> kern.lctx.max: 8192
> kern.lctx.count: 0
> kern.lctx.last: 1
> kern.rage_vnode: 0
> kern.tty.ptmx_max: 127
> kern.copyregionmax: 4
> kern.lowpagemax: 202
> kern.himemorymode: 0
> kern.sleeptime: { sec = 0, usec = 0 } Wed Dec 31 18:00:00 1969
> kern.waketime: { sec = 0, usec = 0 } Wed Dec 31 18:00:00 1969
> kern.hibernatefile:
> kern.bootsignature:
> kern.hibernatemode: 0
> kern.maxnbuf: 16384
> kern.nbuf: 16384
> kern.flush_cache_on_write: 0
> kern.always_do_fullfsync: 0
> kern.sugid_scripts: 0
> kern.affinity_sets_mapping: 1
> kern.affinity_sets_enabled: 1
> kern.singleuser: 0
> kern.bootargs:
> kern.msgbuf: 4096
> kern.wq_timer_interval_msecs: 40
> kern.wq_max_run_latency_usecs: 500
> kern.wq_reduce_pool_window_usecs: 3000000
> kern.wq_stalled_window_usecs: 20000
> kern.secure_kernel: 0
> [LOCALHOST:~] robert%
>
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listmgr.nrao.edu/pipermail/daip/attachments/20080708/9b98c076/attachment.html>


More information about the Daip mailing list