Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buRrn-0000vJ-Ib for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 22:19:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buRrm-0003U3-Vc for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Oct 2016 22:19:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buRrm-0003Tv-9k for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 22:19:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buRrk-00019H-1u for pgsql-hackers@postgresql.org; Wed, 12 Oct 2016 22:19:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9CMIucY010257; Wed, 12 Oct 2016 18:18:56 -0400 From: Tom Lane To: Merlin Moncure cc: Alvaro Herrera , Andres Freund , PostgreSQL-development , Heikki Linnakangas , Abhijit Menon-Sen Subject: Re: munmap() failure due to sloppy handling of hugepage size In-reply-to: References: <20161012220432.GA943701@alvherre.pgsql> <9777.1476310205@sss.pgh.pa.us> Comments: In-reply-to Merlin Moncure message dated "Wed, 12 Oct 2016 17:14:20 -0500" Date: Wed, 12 Oct 2016 18:18:56 -0400 Message-ID: <10256.1476310736@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) 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 Merlin Moncure writes: > ISTM all this silliness is pretty much unique to linux anyways. > Instead of reading the filesystem, what about doing test map and test > unmap? And if mmap succeeds and munmap fails, you'll recover how exactly? If this API were less badly designed, we'd not be having this problem in the first place ... regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers