473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

semaphores - FAQ no help

I am having a semaphore issue when running initdb. The FAQ and PAG
didn't help.

System data:
AMD64
1G RAM
80G HD
VIA Chipset
Linux 2.6.1-gentoo (contains special AMD64 patches). Contains IPC in
kernel.
postmaster (PostgreSQL) 7.3.5

I am also asking in the gentoo list to see if it is the architecture or
kernel. Nothing would indicate that so far. Postgresql is labeled as
stable for this architecture by emerge.

Output of initdb:

creating template1 database in /usr/local/lib/postgresql/data/base/1...
IpcSemaphoreCreate: semget(key=129, num=17, 03600) failed: No space left
on device
Blah blah you are not out of disk space - see PAG...etc...you're
buggered.

--debug adds this nice tidbid:
DEBUG: invoking IpcMemoryCreate(size=17596416)

and THEN it blows up with the same as above :P - hmmm...is that size right?!

Output of df -h:
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 487M 203M 285M 42% /
/dev/hda5 38G 555M 37G 2% /home
/dev/hda6 965M 65M 901M 7% /var
/dev/hda9 9.4G 4.0G 5.5G 42% /usr
/dev/hda7 4.7G 52M 4.7G 2% /usr/local
none 501M 0 501M 0% /dev/shm

I don't see how it can be a space issue.

Free:
total used free shared buffers cached
Mem: 1024536 857692 166844 0 80276 248784
-/+ buffers/cache: 528632 495904
Swap: 136544 4932 131612

I don't think it is memory either...

Dmesg output is about kernel modules for sound and ethernet and are
three days old. Nothing interesting.

Output of ipcs:
nroberts@bart done $ ipcs

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 32768 nroberts 600 393216 2 dest
0x00000000 65537 nroberts 600 393216 2 dest
0x00000000 98306 nroberts 600 393216 2 dest
0x00000000 131075 nroberts 600 393216 2 dest
0x00000000 163844 nroberts 600 393216 2 dest
0x00000000 196613 nroberts 600 393216 2 dest
0x00000000 229382 nroberts 600 393216 2 dest
0x00000000 262151 nroberts 600 393216 2 dest
0x00000000 294920 nroberts 600 393216 2 dest
0x00000000 327689 nroberts 600 393216 2 dest
0x00000000 360458 nroberts 600 393216 2 dest
0x00000000 393227 nroberts 777 393216 2 dest
0x00000000 1015820 nroberts 600 393216 2 dest
0x00000000 1048589 nroberts 600 393216 2 dest
0x00000000 1081358 nroberts 600 12288 2 dest
0x00000000 1114127 nroberts 600 12288 2 dest
0x00000000 1146896 nroberts 600 393216 2 dest
0x00000000 1179665 nroberts 600 393216 2 dest
0x00000000 1212434 nroberts 777 393216 2 dest
0x00000000 6750227 root 644 110592 2 dest
0x00000000 6782996 root 644 110592 2 dest
0x00000000 6357013 root 644 122880 2 dest
0x00000000 6389782 root 644 110592 2 dest
0x00000000 6422551 root 644 110592 2 dest
0x00000000 6455320 root 644 110592 2 dest
0x00000000 6488089 root 644 110592 2 dest
0x00000000 6520858 root 644 106496 2 dest
0x00000000 7438363 root 644 110592 2 dest
0x00000000 7471132 root 644 122880 2 dest
0x00000000 7503901 root 644 122880 2 dest
0x00000000 7536670 root 644 110592 2 dest
0x00000000 7897119 root 644 122880 2 dest
0x00000000 7929888 root 644 122880 2 dest
0x00000000 7962657 root 644 110592 2 dest
0x00000000 7995426 root 644 110592 2 dest
0x00000000 8028195 root 644 110592 2 dest
0x00000000 8060964 root 644 110592 2 dest
0x00000000 8093733 root 644 122880 2 dest
0x00000000 8126502 root 644 110592 2 dest
0x00000000 8159271 root 644 122880 3 dest
0x00000000 8192040 root 644 110592 2 dest
0x00000000 8224809 root 644 110592 2 dest
0x00000000 8257578 root 644 110592 2 dest
0x00000000 8290347 root 644 122880 2 dest
0x00000000 8323116 root 644 122880 2 dest

------ Semaphore Arrays --------
key semid owner perms nsems

------ Message Queues --------
key msqid owner perms used-bytes messages

/proc/sys/kernel/shm*:
134217728000
134217728000
1073741824

Yes, those first values are rediqulous but I tried to up the limit
suggested by the FAQ.

Any ideas?

Thanks.
--
"I'm a war president. I make decisions here in the Oval Office
in foreign policy matters with war on my mind." - Bush

Jul 19 '05 #1
1 2601
Hi,
i've had the same problem with similiar configuration. Solved this by
compiling 7.4.2 tarball manually. I still wonder if it's possible
to emerge working postgres installation on AMD64/Gentoo.
Does anyone know ?

--
ArtB
Noah Roberts wrote:
I am having a semaphore issue when running initdb. The FAQ and PAG
didn't help.

System data:
AMD64
1G RAM
80G HD
VIA Chipset
Linux 2.6.1-gentoo (contains special AMD64 patches). Contains IPC in
kernel.
postmaster (PostgreSQL) 7.3.5

I am also asking in the gentoo list to see if it is the architecture or
kernel. Nothing would indicate that so far. Postgresql is labeled as
stable for this architecture by emerge.

Output of initdb:

creating template1 database in /usr/local/lib/postgresql/data/base/1...
IpcSemaphoreCreate: semget(key=129, num=17, 03600) failed: No space left
on device
Blah blah you are not out of disk space - see PAG...etc...you're
buggered.

--debug adds this nice tidbid:
DEBUG: invoking IpcMemoryCreate(size=17596416)

and THEN it blows up with the same as above :P - hmmm...is that size
right?!

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nish | last post by:
Hi, I have some code, to which I added usage of posix semaphores. I am working on a solaris platform. After doing that, my process becomes unkillable, that is it will not terminate if sent a...
1
by: Mehmet Turker | last post by:
Hi; In a research project, I want to use shared memory with semaphores. First I have to create an environment for interprocess messaging. I'm thinking of having a main process which creates a big...
2
by: schneider jp | last post by:
Hi everybody For a project of system programming, we need to use semaphores, but i got some pbs... when I compile, i get perror with sem_open("machin", O_CREAT, 0666, 0); and perror says...
11
by: FiLH | last post by:
Hello, I would like to know if posix semaphores are inter processes or just semaphores for threads inside the same process. I have not seen it defined in the posix specification I have found,...
1
by: jinksk | last post by:
I have a C# application and a VB6 application that need to share a dialup connection to the internet. Don't ask why, this is one of those corporate "do or die" things. The only way I can see to...
1
by: Edwin New | last post by:
I have a requirement to run two separate postmasters on the one machine. It looks like they compete for resources (semaphores) so won't run concurrently. I compiled twice, specifying different...
5
by: Steven Spencer | last post by:
Hi, I'm doing an IT degree at university, and my lecturer's do not teach m$ technologies. I was wondering if anyone could point me to the implementation of mutex's and semaphores in .net? Or the...
0
arne
by: arne | last post by:
Hi, I am using Perl ithreads. The threads I create shall access a shared hash. In order to control access to the hash, I would like to use a semaphore. (BTW, does the hash need the protection at...
0
by: The Advocate | last post by:
Hello, how can we implement semaphores using monitors. I got how we can do it the way round. I did alot of search but couldnt find any implementation of semaphores using monitors,. Can anyone help me...
5
by: davidcollins001 | last post by:
Hi, Firstly please excuse the long ramblingness. I need some conceptual help, I am trying to make two programs that are exactly the same but take it in turns to execute something, so the output...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.