logo       


Re: icps, shmmax and shmall - Shared Memory tuning: msg#00974

Subject: Re: icps, shmmax and shmall - Shared Memory tuning
On Sun, Apr 28, 2002 at 04:24:19PM -0400, Tom Lane wrote:
> dorian dorian <dorian37076@xxxxxxxxx> writes:
> > This was also in the logs -
> 
> > Apr 26 09:34:17 mito kernel: Out of Memory: Killed
> > process 21540 (postmaster).
> 
> Ugh.  There's not a lot we can do about the kernel deciding to kill us.

Not good.

> > The machine just stopped responding at 9:34 and had to
> > be rebooted. Is there any way to prevent this from
> > happening, via a configuration option in postgres?
> 
> Perhaps you should talk to the kernel developers about why they can't
> find more graceful ways of dealing with out-of-memory situations :-(

It's a bit hard be more graceful when you have no physical memory and no
swap available. Something has to give. And if one process happens to be
chewing >90% of memory, the kernel decides it should be the target.

> I am not sure exactly what Linux considers an out-of-memory situation.
> If it's dependent on available swap space, then configuring more swap
> would probably prevent this scenario.  If only physical RAM counts,
> you might need to buy more RAM, or configure Postgres with a smaller
> shared_buffers value.

Adding more swap space definitly helps, but if you have a query that just
eats a lot of memory, it's better to fix the query...
-- 
Martijn van Oosterhout   <kleptog@xxxxxxxxx>   http://svana.org/kleptog/
> Canada, Mexico, and Australia form the Axis of Nations That
> Are Actually Quite Nice But Secretly Have Nasty Thoughts About America

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe