Re: [Bugme-new] [Bug 11381] New: default shmmax

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Eisentraut
Date: Thursday, August 21, 2008 - 1:08 am

Alan Cox wrote:

I have explored this, it would be possible, but it would be a pain in the 
neck.  You'd need to add an option to postgres to print out how much shared 
memory you would need for a given configuration (because there are multiple 
factors in this), run this across all postgres instances on the machine, sum 
it up, then arrange for this to be fed back to sysctl or pasted back into 
sysctl.conf, being careful not to override or lower an existing setting that 
might have wanted to reserve space for other things.  Note that to make this 
robust you would have to rerun this after every configuration change + 
restart cycle across all postgres instances on the machine, race conditions 
included.  And you'd probably violate a few packaging guidelines on the way.  
Plus, this would have to be distro-specific (not Linux-specific, but 
distro-specific), doesn't help managed hosting with no root access, and 
doesn't help people building from source.  So altogether it is very 
complicated.

In the meantime I am trying to explore why the shmmax default is what it is.  
Or why it has to exist at all.  If we can figure that out, maybe we can solve 
a lot of users a lot of trouble with much less effort (including Oracle 
users, why not).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Bugme-new] [Bug 11381] New: default shmmax, Alan Cox, (Wed Aug 20, 11:55 am)
Re: [Bugme-new] [Bug 11381] New: default shmmax, Andrew Morton, (Wed Aug 20, 12:00 pm)
Re: [Bugme-new] [Bug 11381] New: default shmmax, adobriyan, (Wed Aug 20, 12:12 pm)
Re: [Bugme-new] [Bug 11381] New: default shmmax, adobriyan, (Wed Aug 20, 12:16 pm)
Re: [Bugme-new] [Bug 11381] New: default shmmax, Peter Eisentraut, (Thu Aug 21, 1:08 am)
Re: [Bugme-new] [Bug 11381] New: default shmmax, Peter Eisentraut, (Thu Aug 21, 1:19 am)