472,811 Members | 1,143 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 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 2572
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{

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.