From nobody Fri Sep 20 06:46:48 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X92x46nVgz5Whqf; Fri, 20 Sep 2024 06:46:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X92x44qgyz4qwL; Fri, 20 Sep 2024 06:46:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uldZAEkPoUPnWQUVDeU9MZYh2NDCoq43nnB8xEpBOR0=; b=Cja6s4o5Tdbwl4w5tx8K62WVkamFrN+xQq8A9BtpOsClHTiTCpRPteLf3xNWR7ZynLvb4S uberKrCnj9rXWiympTA/r0mqQsLEW3H0OTQfUp6p8OpKjiwpwiLjGes2LlDd7urvBXG7i4 Wg2afZHvNxzxW+EoICwVnf6RneBMimGegXO8teIRap1gEcDGtYg2m31UNBjrW8pwH4c6CA aiLENN9aMamX37KJYHW23nFrfgJSui6IpjTVJqmOz0qe0rW4mjD5lAQgB8KALpt1/yR7r9 YL9t9V9VY/6ceIDGm9pgIc+guylmP3HwN+91/hL3fLvgt2c2ZNZkGZs10D3oZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726814808; a=rsa-sha256; cv=none; b=R4NYU4HZjN74z9U9iAmT1Afrx9F7BcTcSwgHHF6iXJIqs6v4qDGPeadRabHA/1kK5KSTaW Fztv7RrXcbiifzh1Xb8wODFRSN6EPsyiz49dPqEfeeLvg8LWbbGfSyFVYLslm/l57VyDmc LlRqV4kyMAL8gbSDzZleKai2VDoGopxaFNtouh+MIDXdal1MrFjbGr1j5ZxJyk298areLE YqyLha1t9xJ/ofD7P9fY0RWk1Ansdrz4Jypw9SJs6Mj4oi/d/U5QQP8UsSuqsR8MadARe+ niQnL+lfWAH4rDA4g/qDMAEvLG2WOkmMrE4siKXjGKUyXQN7POaxfcQrg8tByw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uldZAEkPoUPnWQUVDeU9MZYh2NDCoq43nnB8xEpBOR0=; b=BzaGSBU68VM+WqV3WDtRUJcSg3IriqqBJy6J+r81dyY4SeoebhR0lCczLxxUQ4JjOQO1f2 Ny0T1j2jXozY1b6tz5Ix+vv5zFioqU9oLT4/k8f82Mc1hNC5OQVpj2uqQLZhoNsxdl3BWu QHES9lv39wL059NpxhnccHX3jCQqANidR6rGN6qIstoKhRCK0fzUdtscIEKSt5of9XIMUm DooBJyt34GsIZd4kv0gTocxqeiJ9Lq/gVB3clOVdMhB2zuv2geat3Vw3JmEivFKLHIvQaE DeYJeFdjY6grzsn08zl9ncKSXosVNqsSjBK5QPXquQ67L+BnqcJyTT7Ks+ICQQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X92x4479VzfqF; Fri, 20 Sep 2024 06:46:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48K6kmVX009482; Fri, 20 Sep 2024 06:46:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48K6kmFA009479; Fri, 20 Sep 2024 06:46:48 GMT (envelope-from git) Date: Fri, 20 Sep 2024 06:46:48 GMT Message-Id: <202409200646.48K6kmFA009479@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 54a8d1fbbf65 - main - getrlimit(2): document RLIMIT_PIPEBUF List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54a8d1fbbf65e976132809718525ba051a5525cf Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=54a8d1fbbf65e976132809718525ba051a5525cf commit 54a8d1fbbf65e976132809718525ba051a5525cf Author: Konstantin Belousov AuthorDate: 2024-09-10 04:11:55 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-20 06:46:06 +0000 getrlimit(2): document RLIMIT_PIPEBUF Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46619 --- lib/libsys/getrlimit.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/libsys/getrlimit.2 b/lib/libsys/getrlimit.2 index d9b8b7cb896c..d54dc703ada0 100644 --- a/lib/libsys/getrlimit.2 +++ b/lib/libsys/getrlimit.2 @@ -84,6 +84,16 @@ The maximum number of open files for this process. The maximum number of simultaneous processes for this user id. .It Dv RLIMIT_NPTS The maximum number of pseudo-terminals this user id is allowed to create. +.It Dv RLIMIT_PIPEBUF +The maximum total size of in-kernel buffers for bi-directional pipes/fifos +that this user id is allowed to consume. +The buffers for kernel FIFOs created on the first open of a filesystem +object created by +.Pq Xr mkfifo 2 +are also charged to the user ID of the process opening it, +not the FIFO's filesystem owner. +Despite somewhat unexpected, this is in fact fair, since user of the fifo +is not necessary its creator. .It Dv RLIMIT_RSS When there is memory pressure and swap is available, prioritize eviction of a process' resident pages beyond this amount (in bytes).