From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96935496531049.tru64-unix-managers.marc@archive.invalid> From: tsh () mrc-lmb ! cam ! ac ! uk (Horsnell T ! ) Date: Tue, 19 Sep 2000 09:17:11 +0000 To: tru64-unix-managers Subject: Shared memory X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96935496531049 I'm having problems using the shared-mem tools shmget shmat etc. I want to be able to declare a C or Fortran array, and map this into a shared-mem area with shmat, but always get the ENOMEM error (not enough data space available to attach the shared mem region) The shmat works if I choose zero as the virtual address for attachment, but not if I specify the address of the C/Fortran array. Looks like I'm misunderstanding something here - I cant find any more more docs other than the man pages. Are there any? Also, from observation, it seems as if the shared mem area stays put in physical memory until it gets deleted with a shmctl(shmid, IPC_RMID, &shmidds) and so it would seem possible for a user to consume memory beyond 'limit' limits by creating many shmem areas. Are there any tools to monitor what is going on with shared-mem areas? Again I couldnt find anyting so far. Cheers, Terry. Terry Horsnell (tsh@mrc-lmb.cam.ac.uk) Computer Manager Medical Research Council Lab of Molecular Biology Hills Road CAMBRIDGE CB2 2QH U.K. Phone: +44 (0)1223 248011 Fax: +44 (0)1223 213556