Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a9nKh-0005yD-In for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Dec 2015 05:11:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a9nKh-0005p3-14 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Dec 2015 05:11:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a9nKe-0005nP-Vo for pgsql-hackers@postgresql.org; Fri, 18 Dec 2015 05:11:57 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a9nKc-0005te-4h for pgsql-hackers@postgresql.org; Fri, 18 Dec 2015 05:11:56 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id D952321C4F93; Fri, 18 Dec 2015 08:11:52 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z3yExAZVidjJ; Fri, 18 Dec 2015 08:11:52 +0300 (MSK) Received: from fujitsu (unknown [188.123.231.37]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 7325021C204E; Fri, 18 Dec 2015 08:11:52 +0300 (MSK) Date: Fri, 18 Dec 2015 08:10:09 +0300 From: Aleksander Alekseev To: Robert Haas Cc: Andres Freund , "pgsql-hackers@postgresql.org" Subject: Re: Patch: fix lock contention for HASHHDR.mutex Message-ID: <20151218081009.34ea4c04@fujitsu> In-Reply-To: References: <20151211170001.78ded9d7@fujitsu> <20151215122513.GC17724@alap3.anarazel.de> <20151217151418.GB2224@awork2.anarazel.de> <20151217190342.07e4533a@fujitsu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > Oh, that's an interesting idea. I guess the problem is that if the > freelist is unshared, then users might get an error that the lock > table is full when some other partition still has elements remaining. True, but I don't believe it should be a real problem assuming we have a strong hash function. If user get such an error it means that database is under heavy load and there is not much more free elements in other tables either. This particular user didn't get lucky, some other will. Anyway administrator should do something about it - fight DDoS attack, tune database parameters, etc. > 3.5-4 more TPS, or 3.5 times more TPS? Can you share the actual > numbers? Oops, 3.5-4 _times_ more TPS, i.e. 2206 TPS vs 546 TPS. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers