Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6L6w-0005JM-Rb for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 21:17:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6L6v-00050P-KT for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2020 21:17:53 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6L6v-0004ye-BJ for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 21:17:53 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6L6s-0005Xt-Pk for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2020 21:17:52 +0000 Received: by mail-qt1-x843.google.com with SMTP id p34so7573955qtb.6 for ; Mon, 24 Feb 2020 13:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=+tkn8s/AgNWzpBX+NRaVGcAZu6opPPJzDCp8hs+JbA4=; b=r5o8awXT1fc6awrFdpkO4zAzjnBeI8PQD8Wz7k2MV/aVJnjbV2Zuzno8u8LCLFiQnX vmQnhVhY0N6nJ5TwtCE0ShmRFBfr+9Nr9hzenKDlnN610FUpESJD9ZXFQsK3W/QbMCqW pKG8Vq3O7/MnoDz3pX5u6hDexnpyJ5RsXQ+Uo1ctUfNMbaY/cY+D/13hjLEjz0RG9wW8 9jgHtz9F31rsCKyMDWQzik1D+oGMLfUGfamLWGch6QB3tZBgFI695m8zOQmZ1h+XeY/7 lZlHMWWgYQeOVV/0qfLzkXeaKpt61OrV+ZtkLxarYuEOn3jZ/VI5ErO/Vn8HhLVKvF6w JC0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+tkn8s/AgNWzpBX+NRaVGcAZu6opPPJzDCp8hs+JbA4=; b=oiCwNnYDDNhLsG3pI1VrUshXfwyCeHqDi/cjCflN1BXxfLyCFtEhTRvl0/PX03/xeU 4Yse9e5rr7iV7UoBckBZ20z/K46P2S21k1eOSCQHjzxrkemO1dDKnPJLgQ7mOA7Rm5xW 9ws8PJKiEm9YJJ6lgzOA+87B7S6oLnYOEVONuchiMvsMQAcUAY00s1CRigCWvIiNrk6U R4NCIKbUYGYqbmzmP+W9svyow6czjpkmVpkyufQXIqLDk1n9D879bqY0rmfX78i4a4Vd XZwFAMB49/OqMsx/jz1T1fZe/18rJYSxO6d5/c2gfsJmyjA2FMUpKREqKWnzGBTKQasQ QqKA== X-Gm-Message-State: APjAAAVquSKO4RDu918QA4WxvIBH1p88jgyrHT6O2UvH4bzw+hvv4JBG zNT+EBBK5ylhDNvQp0bHW4v+nA== X-Google-Smtp-Source: APXvYqyTroEw2m9nsRJ3oGHooz9eZzpR5hBlIwZYh4SP7sil74wciWG2FYaQn0Uwdp7dEuf15K1HUA== X-Received: by 2002:ac8:404e:: with SMTP id j14mr46799007qtl.312.1582579069418; Mon, 24 Feb 2020 13:17:49 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([70.32.0.53]) by smtp.gmail.com with ESMTPSA id j18sm553259qka.95.2020.02.24.13.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 13:17:48 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C1C48300AA5; Mon, 24 Feb 2020 18:17:09 -0300 (-03) Date: Mon, 24 Feb 2020 18:17:09 -0300 From: Alvaro Herrera To: Tom Lane Cc: Thomas Munro , =?iso-8859-1?Q?R=E9mi?= Zara , Michael Paquier , PostgreSQL Hackers Subject: Re: pgsql: Add kqueue(2) support to the WaitEventSet API. Message-ID: <20200224211709.GA6996@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <19960.1582578101@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-24, Tom Lane wrote: > Alvaro Herrera writes: > > Then again, that would be akin to setrlimit() on Linux. Maybe we can > > consider that a separate GUC, in a separate patch, with a > > platform-specific default value that just corresponds to the OS's > > default, and the user can set to whatever suits them; then we call > > either _setmaxstdio() or setrlimit(). > > Why not just drive it off max_files_per_process? On Unix, that > largely exists to override the ulimit setting anyway. With no > comparable knob on a Windows system, we might as well just say > that's what you set. That makes sense to me -- but if we do that, then maybe we should be doing the setrlimit() dance on it too, on Linux^W^W where supported. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services