From owner-freebsd-questions Sun Apr 22 8:36:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 13CC537B422 for ; Sun, 22 Apr 2001 08:36:11 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.11.2/8.11.2) with ESMTP id f3MFa9B09564 for ; Sun, 22 Apr 2001 11:36:09 -0400 (EDT) Date: Sun, 22 Apr 2001 11:36:08 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@opal To: freebsd-questions@freebsd.org Subject: Questions on shared memory Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I found out by chance that after I started X windows (Gnome+Enlightment), there will be a lot of shared memory created: Shared Memory: T ID KEY MODE OWNER GROUP m 196608 0 --rwarwarwa root wheel m 131073 0 --rwarwarwa root wheel m 131074 0 --rwarwarwa root wheel m 131075 0 --rwarwarwa root wheel ...... After I exit X-windows, there are still a couple of them: Shared Memory: T ID KEY MODE OWNER GROUP m 262144 0 --rwarwarwa root wheel m 196634 0 --rwarwarwa root wheel My questions are: (1) On Redhat6.2, I am using X-windows (GNOME+Enlightment) as well. But no shared memory exists as reported by ipcs command. Why there can be such a difference? Who is creating these large number of shared memory. (2) The ipcs manual of FreeBSD is not completed. So I look at the manual of SunOS. It says: MODE (all) The facility access modes and flags: The mode con- sists of 11 characters that are interpreted as follows. The first two characters are: C The associated shared memory segment is to be cleared when the first attach is executed. Does FreeBSD support this feature? If so, how to enable it? Thanks for your help. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message