Linux: semaphores: How?

Started by Terry Mackintoshalmost 27 years ago4 messages
#1Terry Mackintosh
terry@terrym.com

Hi all

I'm now building up a new server, Red Hat 5.2 with updates and the new
2.2.2 kernel.

I may have missed it, but do not recall seeing any thing about semaphores
in the "make menuconfig", is it call some thing else? or is it N/A for
Linux? or did I just not see it?

I would like to build a kernel that can handle the future as I want to go
for a year of uptime (had 6months+ twice now.)

Thanks and have a great day
Terry Mackintosh <terry@terrym.com> http://www.terrym.com
sysadmin/owner I'm excited about life! How about YOU!?
Professional Web Hosting and site design to include programming
Proudly powered by R H Linux 4.2, Apache 1.3.x, PHP 3.x, PostgreSQL 6.x
-----------------------------------------------------------------------
Only if you know where you're going can you get there.

#2Oleg Broytmann
phd@sun.med.ru
In reply to: Terry Mackintosh (#1)
Re: [HACKERS] Linux: semaphores: How?

Hi!

On Thu, 25 Feb 1999, Terry Mackintosh wrote:

I'm now building up a new server, Red Hat 5.2 with updates and the new
2.2.2 kernel.

I may have missed it, but do not recall seeing any thing about semaphores
in the "make menuconfig", is it call some thing else? or is it N/A for
Linux? or did I just not see it?

It is "System V IPC".

Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.

#3Daryl W. Dunbar
daryl@www.com
In reply to: Oleg Broytmann (#2)
RE: [HACKERS] Linux: semaphores: How?

The defaults for RH5.2 (from /usr/src/linux/include/linux/sem.h:

#define SEMMNI 128 /* ? max # of semaphore identifiers
*/
#define SEMMSL 32 /* <= 512 max num of semaphores per
id */
#define SEMMNS (SEMMNI*SEMMSL) /* ? max # of semaphores in system
*/
#define SEMOPM 32 /* ~ 100 max num of ops per semop
call */
#define SEMVMX 32767 /* semaphore maximum value */

Which means the default max semaphores is 128*32 = 4096, I don't
think you'll have a problem. :)

DwD

Show quoted text

-----Original Message-----
From: owner-pgsql-hackers@postgreSQL.org
[mailto:owner-pgsql-hackers@postgreSQL.org]On Behalf Of
Oleg Broytmann
Sent: Thursday, February 25, 1999 12:42 PM
To: Terry Mackintosh
Cc: PostgreSQL-development
Subject: Re: [HACKERS] Linux: semaphores: How?

Hi!

On Thu, 25 Feb 1999, Terry Mackintosh wrote:

I'm now building up a new server, Red Hat 5.2 with

updates and the new

2.2.2 kernel.

I may have missed it, but do not recall seeing any

thing about semaphores

in the "make menuconfig", is it call some thing else?

or is it N/A for

Linux? or did I just not see it?

It is "System V IPC".

Oleg.
----
Oleg Broytmann National Research Surgery Centre
http://sun.med.ru/~phd/
Programmers don't die,
they just GOSUB without RETURN.

#4Clark Evans
clark.evans@manhattanproject.com
In reply to: Daryl W. Dunbar (#3)
Inherit View

I was trying to 'rename' a column
during an inherit. Since I could not
find a way to do this, I renamed
the column in a view, and then
I inherited from the view.

Anyway, I think being able
to inherit a view is a bug,
besides confusing the
backend ... *evil grin*

Clark