From nobody Sat Oct 05 07:11:07 2024 X-Original-To: dev-commits-src-all@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 4XLGmD4BkRz5XrcZ; Sat, 05 Oct 2024 07:11:08 +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 4XLGmD0w6Zz4N6T; Sat, 5 Oct 2024 07:11:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112268; 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=6Hmv+6K/IR35/2QzSuI4wHj+c9NaZNWHO7agMg0+IR0=; b=d0c+w22LJy1uTJa/eCkPdHG5N9c8NspiD5ABTjXAEUltvJHsOyTWGypeCKy/CpEw/s3EAx vmS8J4bAKWIz7901xq8+ftCz6pHIUuQWK4kMWOCGv2+n6X+uelhiGpu25g5VBET5ljpgUC LUsqjluf5B20KTOCeR6vzsy+8WAmVhJTKjC7IhfzNiqftC44oR1rUw2AIJXGYsVxqdwhSf 5hWQ2DIdrqodqftK9B5ebH1NFDaPAR/dlVCrcoWDriwyP6MqXkiyaUS+8Hu1Hf204etz1C bm9hCtymn7lzNiSVzYIgLmX1SC2N1TxvXA9tCNj0AHgOT47tgdjUn/FLZXg9Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112268; 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=6Hmv+6K/IR35/2QzSuI4wHj+c9NaZNWHO7agMg0+IR0=; b=awsTlgYdUd6u/eO045wAFoBrPa+SJa1OpASDKQue7GAVosxJZq/KgKHbe+lVeJEQkVudES OBoz+kaqtWQOacbAOw8sPR3+p3YLIJ1nTmW9KbDy0Y6JXpwcY9VSMefpTaLzmP/q//fqff KbUMis1Au6O17IwCfb+nBHlgFB/JziusZ1LfvD1rPu0E0iaEEFKLftWQuCdmverPv+6Bj4 NbK8k6AQ7OizvU+1Se9mekDkIVrZ+u91KW5l1uGYncWMhjgRZ7/9rfKdzdU8Gg1ndvDKKE zUSvPAn3J7fn/Kxe9zpP93znMDNAKLeHmVGE4Cv1fau962tgk2bbY4YR6D0ifg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728112268; a=rsa-sha256; cv=none; b=ZNdLd2h9OZocID9uQX/mWu/QqHCUhD1vhms9fFWlTI8d5LQ482+MwUCf9u1pf4Nl4L2KRa sD3BJ5kmFgijaviv5Xl/pJdYeyzo/8TFYzjsPkYL2eA+rXQyHu/sC99O1Ngvp/vIbRpeWt cpQxT5ZE3N50CU7o4aEIGxkRxDveAFOqAUo8EfFXqMDN8GD/4H9dL25xSzxYN1de5TnsTZ ob0BoLjNqDlLzE/vwSEjNUCLdqYVs/hZLlFM3NIQPxHUGkc+SDaCI4VPv6S+iC4txRH/4j +Mxai1x6GbnctBbf3S2jOLIRQCf0HIb5w9RftmAo6dvQjJWqNmfGn8jc1dmFcw== 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 4XLGmD0QnYz17pC; Sat, 5 Oct 2024 07:11:08 +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 4957B7L0000809; Sat, 5 Oct 2024 07:11:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4957B7B4000806; Sat, 5 Oct 2024 07:11:07 GMT (envelope-from git) Date: Sat, 5 Oct 2024 07:11:07 GMT Message-Id: <202410050711.4957B7B4000806@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d20f0dae2f97 - stable/14 - getrlimit(2): document RLIMIT_PIPEBUF List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: d20f0dae2f97185cc53bda3fd3245453a77277f6 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d20f0dae2f97185cc53bda3fd3245453a77277f6 commit d20f0dae2f97185cc53bda3fd3245453a77277f6 Author: Konstantin Belousov AuthorDate: 2024-09-10 04:11:55 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-05 07:08:54 +0000 getrlimit(2): document RLIMIT_PIPEBUF (cherry picked from commit 54a8d1fbbf65e976132809718525ba051a5525cf) --- lib/libc/sys/getrlimit.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/libc/sys/getrlimit.2 b/lib/libc/sys/getrlimit.2 index 2e79b3000c69..dc8653076dba 100644 --- a/lib/libc/sys/getrlimit.2 +++ b/lib/libc/sys/getrlimit.2 @@ -86,6 +86,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).