• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
10.4.1 and shared memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10.4.1 and shared memory


  • Subject: 10.4.1 and shared memory
  • From: Alexandre Mainville <email@hidden>
  • Date: Sat, 28 May 2005 19:09:13 -0400

Hi,

I'm trying to port an application written in c++ and motif over to OSX and cocoa. The app uses Sleepycat's BerkeleyDB.
Everything is working fine (especially the gui part, cocoa is great) except for shared memory. I must be missing something really obvious
since PostgreSQL is using shared memory on the same machine without problems.


In case it's relevant, the error I'm getting when I try to open a environment using the DB_SYSTEM_MEM flag is: DB_RUNRECOVERY: Fatal error, run database recovery. (That's when the system is trying to create the environment with the DB_CREATE flag present)

I started out by editing /etc/rc to raise the default 4MB limit to 128MB and rebooted.

sysctl -w kern.sysv.shmmax=134217728 kern.sysv.shmmin=1 kern.sysv.shmmni=32 kern.sysv.shmseg=8 kern.sysv.shmall=32768

After a reboot sysctl reports everything is ok.

    sysctl -a | grep shm
    kern.sysv.shmmax: 134217728
    kern.sysv.shmmin: 1
    kern.sysv.shmmni: 32
    kern.sysv.shmseg: 8
    kern.sysv.shmall: 32768

but ipcs is acting up, run as a normal user it spews out impossible numbers and run as root it reports everything as zero????

ipcs -M
shminfo:
shmmax: -1073744240 (max shared memory segment size)
shmmin: -1877554984 (min shared memory segment size)
shmmni: -1073744240 (max number of shared memory identifiers)
shmseg: -1877555012 (max shared memory segments per process)
shmall: -1073744224 (max amount of shared memory in pages)


sudo ipcs -M
shminfo:
        shmmax:       0 (max shared memory segment size)
        shmmin:       0 (min shared memory segment size)
        shmmni:       0 (max number of shared memory identifiers)
        shmseg:       0 (max shared memory segments per process)
        shmall:       0 (max amount of shared memory in pages)

all the while PostgreSQL seems to be having no problems....

sudo ipcs -m
Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP
m 262143    5432001 --rw------- postgres postgres


Thanks for any help our ideas you may have _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: WWDC 2005 Suggestion
  • Next by Date: Binding ArrayController's "editable" property to object attribute
  • Previous by thread: Color look-up table?
  • Next by thread: Binding ArrayController's "editable" property to object attribute
  • Index(es):
    • Date
    • Thread