Re: semvmx

From: joel garry <joel-garry_at_home.com>
Date: Wed, 17 Mar 2010 17:44:15 -0700 (PDT)
Message-ID: <6f5c2fb4-01ab-4f5e-8bd3-fb803c015aa9_at_u19g2000prh.googlegroups.com>



On Mar 17, 4:56 pm, Mladen Gogala <gogala.mla..._at_gmail.com> wrote:
> On Wed, 17 Mar 2010 12:02:47 -0700, joel garry wrote:
> > Is that an important difference, enough to bring down production for a
> > kernel rebuild?  Is this the sort of thing that might double semaphore
> > or other dependent memory structure sizes in actual use as Oracle
> > decides a granular boundary is passed?  Or is it just something trivial?
>
> Joel, semaphores are integer variables. This parameter simply determines
> the maximum possible value of any single semaphore. Semaphores are one OS
> word in size, each. HP-UX on Itanic has 64 bit word size, so you're not
> saving any memory by setting it to 32767.  Document is below.
>
> http://docs.hp.com/en/B2355-60105/semvmx.5.html
>
> As for the question whether it is important enough to bring the
> production system down, the answer is "dunno, how important it is to do
> the installation"? I don't think it's that important, if any single
> semaphore crosses the value of 32767, that means that there are 32766
> other semaphore holders and you may be having slight problems with
> concurrency. Semaphore operations function this way: each process that
> acquires the semaphore in shared mode increases its value by 1. Process
> that wants to acquire an exclusive control cannot do so while the value
> is larger than 0. Having semaphore value 32767 means that there are 32767
> processes holding the resource in shared mode. Can you realistically
> expect to have 32k processes accessing the same resources on that system?
> If the answer is "no", you're good.
>
> You should ask yourself one question: do I feel lucky? And do I like the
> users of that system? If the answer to the 2nd question is "no", then
> bring it on, or rather, bring it down.
>
> --http://mgogala.freehos.com

Yeah, I figured it seemed trivial, but since rda complained, and I've seen some other settings to 32768 on the net, I had to ask. Especially since all the hp references like the one you cited say all the semaphore tunables are interrelated, but never say exactly how. In the past I've noticed different sources cite different formulae for figuring various kernel parameters, I guess so sysadmins can wear pointy hats with moons and stars.

jg

--
_at_home.com is bogus.
http://oumathclub.wordpress.com/2009/11/27/card-shuffling-will-blow-your-mind/
Received on Wed Mar 17 2010 - 19:44:15 CDT

Original text of this message