From: tsh () mrc-lmb ! cam ! ac ! uk (Horsnell T ! )
To: tru64-unix-managers
Subject: Shared memory
Date: Tue, 19 Sep 2000 09:17:11 +0000 [thread overview]
Message-ID: <96935496531049.tru64-unix-managers.marc@archive.invalid> (raw)
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
next reply other threads:[~2000-09-19 9:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-19 9:17 tsh [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-01 5:17 Shared Memory Steven Frost
2003-03-04 17:09 Shared memory Chris Bryant
2001-11-09 10:28 shared memory lebecb
2001-05-22 9:24 Lambert Paul B
1998-12-23 12:39 Shared Memory Simon.Millard
1997-04-18 13:55 farley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox