Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aecj8-0003XM-UY for pgsql-committers@arkaria.postgresql.org; Sat, 12 Mar 2016 06:08:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aecj8-0006jA-1A for pgsql-committers@arkaria.postgresql.org; Sat, 12 Mar 2016 06:08:38 +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) (envelope-from ) id 1aecj7-0006j3-9D for pgsql-committers@postgresql.org; Sat, 12 Mar 2016 06:08:37 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aecj4-0005pD-9c for pgsql-committers@postgresql.org; Sat, 12 Mar 2016 06:08:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 71DF020543 for ; Sat, 12 Mar 2016 01:08:33 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sat, 12 Mar 2016 01:08:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=dP8ZZIAGgpZFGMMcBW3UJAHQ+AQ=; b=BfIEa Jg4u6KZhMX9Fsc04zG+P/szEoixEs+ylnCVRnMFwMb46FNQ/RqDtJYJOufxt5za5 rbLCIH70oHudML99Fixojdsw0KBfU+djxI8/q1slfmO2HzoHJa7dun6ilgFXg/On NkvJniFNPEBFyGEIxqBO5ZxI86toFSsMVO0u2E= X-Sasl-enc: hCVHleGAmvJqRLVQEp3nz1Z2jVoaFKMvLvgtNeHQSEnv 1457762913 Received: from intern.anarazel.de (c-73-158-95-199.hsd1.ca.comcast.net [73.158.95.199]) by mail.messagingengine.com (Postfix) with ESMTPA id 25C24C00012; Sat, 12 Mar 2016 01:08:33 -0500 (EST) Date: Fri, 11 Mar 2016 22:08:32 -0800 From: Andres Freund To: pgsql-committers@postgresql.org, Tom Lane Subject: Re: pgsql: Allow to trigger kernel writeback after a configurable number of Message-ID: <20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Tom, On 2016-03-11 01:29:09 +0000, Andres Freund wrote: > Several operating systems allow some control over the kernel page > cache. Linux has sync_file_range(2), several posix systems have msync(2) > and posix_fadvise(2). sync_file_range(2) is preferable because it > requires no special setup, whereas msync() requires the to-be-flushed > range to be mmap'ed. For the purpose of flushing dirty data > posix_fadvise(2) is the worst alternative, as flushing dirty data is > just a side-effect of POSIX_FADV_DONTNEED, which also removes the pages > from the page cache. Thus the feature is enabled by default only on > linux, but can be enabled on all systems that have any of the above > APIs. This broke gaur: http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=gaur&dt=2016-03-12%2005%3A44%3A25 I'm planning to add a #ifndef MAP_FAILED #define MAP_FAILED ((void*) (-1)). Unless HPPA simply has that defined elsewhere? Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers