<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>netninja.hu &#187; SHMMIN</title>
	<atom:link href="http://netninja.hu/tag/shmmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://netninja.hu</link>
	<description>$net-&#62;ninja</description>
	<lastBuildDate>Wed, 05 Oct 2011 23:55:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Failed system call was shmget postgresql freebsd</title>
		<link>http://netninja.hu/2009/05/19/failed-system-call-was-shmget-postgresql/</link>
		<comments>http://netninja.hu/2009/05/19/failed-system-call-was-shmget-postgresql/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:23:42 +0000</pubDate>
		<dc:creator>syck</dc:creator>
				<category><![CDATA[Trash]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[semaphores]]></category>
		<category><![CDATA[SHMMIN]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://netninja.hu/?p=93</guid>
		<description><![CDATA[<table cellpadding='10'><tr><td valign='top' align='left'><p>Categories: <a href="http://netninja.hu/category/trash/" title="View all posts in Trash" rel="category tag">Trash</a></p><p>Tags: <a href="http://netninja.hu/tag/freebsd/" rel="tag">freebsd</a>, <a href="http://netninja.hu/tag/kernel/" rel="tag">kernel</a>, <a href="http://netninja.hu/tag/postgresql/" rel="tag">postgresql</a>, <a href="http://netninja.hu/tag/semaphores/" rel="tag">semaphores</a>, <a href="http://netninja.hu/tag/shmmin/" rel="tag">SHMMIN</a>, <a href="http://netninja.hu/tag/sysctl/" rel="tag">sysctl</a></p>DETAIL:  Failed system call was shmget(key=xxx, size=xxx, xxx). HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently xxxxxx bytes), reduce PostgreSQL's shared_buffers parameter (currently xxxxx) and/or [...]<table width='100%'><tr><td align=right><p><b>(<a href='http://netninja.hu/2009/05/19/failed-system-call-was-shmget-postgresql/' title='Failed system call was shmget postgresql freebsd'>Read more...</a>)</b></p></td></tr></table></td></tr></table>]]></description>
			<content:encoded><![CDATA[<p>DETAIL:  Failed system call was shmget(key=xxx, size=xxx, xxx).</p>
<p>HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently xxxxxx bytes), reduce PostgreSQL's shared_buffers parameter (currently xxxxx) and/or its max_connections parameter (currently xxx).</p>
<p>If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.</p>
<p>The PostgreSQL documentation contains more information about shared memory configuration.</p>
<p>solution: raise semaphores number</p>
<pre>$ <kbd>sysctl -w kern.ipc.shmall=32768</kbd>
$ <kbd>sysctl -w kern.ipc.shmmax=134217728</kbd>
$ <kbd>sysctl -w kern.ipc.semmap=256</kbd></pre>
<pre><a title="postgresql8.3 manual kernel resource" href="http://www.postgresql.org/docs/8.3/interactive/kernel-resources.html" target="_blank">more info</a></pre>
<pre>
edit sysctl.conf:
<pre>kernel.shmall = xxxx
kernel.shmmax = xxxx</pre>
</pre>
<p class="author-link">Google+ <a href="http://netninja.hu/author/syck/" rel="author">syck</a></p>]]></content:encoded>
			<wfw:commentRss>http://netninja.hu/2009/05/19/failed-system-call-was-shmget-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using memcached
Database Caching 4/24 queries in 0.006 seconds using memcached
Object Caching 284/316 objects using memcached

Served from: netninja.hu @ 2012-02-07 02:40:28 -->
