Re: Bug#67481: Should a package increase a kernel parameter? (Re: Bug#67481)
Oliver Elphick wrote:
>
> Andrew McMillan wrote:
> >Correct me if I'm wrong, but I think the shmmax parameter is actually
> >setting the maximum size. If I run two PostgreSQL postmasters with
> >lot's of buffers they won't need A + B they'll need MAX(A,B).
>
> I don't see that. Two postmasters (and two databases, therefore) will
> require separate chunks of shared memory, so surely it will be A + B.
> shmax is indeed the maximum, but it has to provide sufficient for all
> simultaneous demands, so it will be A + B +...+N.
OK - I'd have to read the docs, and possibly try it out - I just had a
feeling it was a limit on allocation unit size. In any case, I think my
point still stands, that not all kernel parameters will be sum().
> The kernelparm package would have to add up the requirements from
> each package and provide the maximum, subject to override by user-edited
> parameters -- the sysadmin may know or decree that foo and bar will
> not run simultaneously.
Yes. I think you'd need some sort of a conf file to provide final
arbitration, and also some sort of a test mode output.
> >Now, if only I could get through New Maintainer I could even build such
> >a beast :-)
>
> I'll sponsor it while you wait...
That's putting me on the spot, isn't it! OK. Give me a week to put it
together :-)
Cheers,
Andrew.
--
_____________________________________________________________________
Andrew McMillan, e-mail: Andrew@cat-it.co.nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64 (21) 635 694, Fax: +64 (4) 499 5596, Office: +64 (4) 499 2267
Reply to: