Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id EAAEF83DC06 for ; Sun, 18 Dec 2011 14:42:26 -0400 (AST) Received: from mailout-de.gmx.net ([213.165.64.23]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RcLgj-0006kq-7L for pgsql-admin@postgresql.org; Sun, 18 Dec 2011 18:42:26 +0000 Received: (qmail invoked by alias); 18 Dec 2011 18:42:07 -0000 Received: from 77-20-210-4-dynip.superkabel.de (EHLO [192.168.178.22]) [77.20.210.4] by mail.gmx.net (mp033) with SMTP; 18 Dec 2011 19:42:07 +0100 X-Authenticated: #955937 X-Provags-ID: V01U2FsdGVkX18h0+BXKi8hR7od0KyL7l0EgzUp3ioR1lTyIzf+r5 HPljc+XcUwHX0K Message-ID: <4EEE33EF.3050603@gmx.de> Date: Sun, 18 Dec 2011 19:41:51 +0100 From: Jan-Peter Seifert User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: lst_hoe02@kwsoft.de CC: pgsql-admin@postgresql.org Subject: Re: Number of connections still limited on Windows 64-bit? References: <20111207124635.45500@gmx.net> <20111208130430.14653bnpyytz6l6o@webmail.kwsoft.de> <20111213161550.219250@gmx.net> <20111215184017.18565s5emc5jxxwc@webmail.kwsoft.de> In-Reply-To: <20111215184017.18565s5emc5jxxwc@webmail.kwsoft.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201112/90 X-Sequence-Number: 38848 Hello Andreas, Am 15.12.2011 18:40, schrieb lst_hoe02@kwsoft.de: > Zitat von Jan-Peter.Seifert@gmx.de: >> -------- Original-Nachricht -------- >>> Datum: Thu, 08 Dec 2011 13:04:30 +0100 >>> Von: lst_hoe02@kwsoft.de >>> Zitat von Jan-Peter Seifert : >> >>> > I wonder whether the number of connections is still limited on >>> > Windows 64-bit if you also use a 64-bit version of PostgreSQL: >> >>> http://wiki.postgresql.org/wiki/Running_%26_Installing_PostgreSQL_On_Native_Windows#I_cannot_run_with_more_than_about_125_connections_at_once.2C_despite_having_capable_hardware >>> >> >>> http://support.microsoft.com/kb/947246/en-us >> >> So the default setting for Windows 7 64-Bit seems to be: >> SharedSection=1024,20480,768 >> >> Makes me wonder whether PostgreSQL ( as a service ) still uses the >> 'Non-interactive desktop heap' for connections then. > > As far as i understand not PostgreSQL is using the heap but the system > component user32.dll does. Not sure why user32.dll is needed but i > remember Oracle at least back in 9.x days had the very same problem. > >> I used pgbench for testing 500 connections ( max_connections set to >> 600 ): >> Initialize: >> pgbench -i -U postgres -h host -p port >> Test: >> pgbench -U postgres -h host -p port -c 500 >> Verify: >> SELECT COUNT(*) FROM pg_stat_activity; >> >> The non-interactive Desktop Heap has been increased by just a half - >> yet the number of connections can obviously be much higher than 200. I >> guess the connections don't need less memory now though. > > I think i have read somewhere that MS has optimized the Desktop Heap > usage in Vista and later, but not sure where it was. I guess you mean this blog post: http://blogs.msdn.com/b/ntdebugging/archive/2008/03/20/the-default-interactive-desktop-heap-size-has-been-increased-on-32-bit-vista-sp1.aspx This seems to be an interesting post, too: http://thundaxsoftware.blogspot.com/2011/10/monitoring-desktop-heap-memory-and_17.html >> Do the services share the same desktop (heap) or does each >> (PostgreSQL) service has its own ( if I register each service for a >> different Windows user?). > > To be honest i don't know at all... I'll have a look then. Thank you very much for your comments, Peter