From nobody Mon Dec 23 18:37:59 2024 X-Original-To: bugs@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 4YH6GJ0gT1z5hDT0 for ; Mon, 23 Dec 2024 18:38:00 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YH6GH5cB3z58JX for ; Mon, 23 Dec 2024 18:37:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734979079; 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=DZV7/bff6HDyD0XGvTJGnJ0Z8Qos8WDRkib8iv0GwbY=; b=sDM8gwml+7nDheoQAA1UCfNPUt1lbngW11MjittQ7N4vvGje/1mHnqXFmWQHjLGZ5y6gWr p4rZWFMSDM1ZEaqiWgzPoCSp5EpVi2WU86qiDKxw4reJIqIkdah4z1b8nlFhtIjOWpOg70 QePQ0Ayk5XfUe5jgXuGnXzH+SsUjkrNKQKYawJvmj9TAWSgbpTkMxphZ80zml9QZBiPbuB WtdYCVFgAs5T76l/YEKQNRZ4Z/5ZaO+c7tkaxgOrBQ/w3fpfU/kIeSZ3G+UYQ9M631ChKi Ame7rkZyOI5DspyfHgKNyf6gfGYEm+qRkqkE/n2svZJTNrRyXr6wcuuO+xYcuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734979079; a=rsa-sha256; cv=none; b=oo9fBJBz5K4/Kgc16hk3Wbgr2G9CutZX+YImp6jz0u8EUcsVDp0heH5CAYjJ3d+7v/VXS1 doXXvYnBlRs9+BW4+KAXKKZYdUJxYI56nmRLsa2jYGEL38QJ1ZtK/zFKLrxPq/6SYMzrLj /HoOgmt5QSq3JpJGYdvJZokRD9aKdGV3PYO/CTPFadRL4DKmVw3wbMz4n2nppbX/AMUCm+ xp2zFiSVyON9B3sFpHTkpMDwYH6KqEo43xFt/7JfQaBAEIB8/Crrqel4Fs+6k8lttGuk3g /bYn9SE9yKhhItYgNHNNyf93MvFvC5j2RlSLh573d+tInx7mtCT1f2t2k7Tf0g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4YH6GH5Blnz14hm for ; Mon, 23 Dec 2024 18:37:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BNIbxEV039948 for ; Mon, 23 Dec 2024 18:37:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BNIbxrq039947 for bugs@FreeBSD.org; Mon, 23 Dec 2024 18:37:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283523] rctl feature requests Date: Mon, 23 Dec 2024 18:37:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jwb@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283523 Bug ID: 283523 Summary: rctl feature requests Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jwb@freebsd.org I'm developing a new HPC/HTC batch system called LPJS (lightweight, portable job scheduler). Looking into rctl as a method to enforce resource limits, = two issues came up: 1. For rctl to be a practical solution, we would need to be able to apply a resource limit to a process group. (Currently it seems to support only processes, jails, users, and login classes.) In some cases, having LPJS cr= eate a jail for every job might be a feasible alternative, but I have concerns a= bout limitations and overhead, and need to explore this more. LPJS already crea= tes a new process group for each running job, so that it can be properly termin= ated via the user "cancel" subcommand. It recursively identifies members of the group and its children, so they can all be signalled. The same logic could= be used to identify and sum up RSS for the group. 2. It would be nice to be able to add rules for one's own processes when not running as root. LPJS supports job scheduling entirely in userland using daemons started from a menu system. Malicious users could defeat this, of course, but that's not a problem in this environment. The resource limits = are there to help them get computations done, so they'd only be harming themsel= ves. Let me know if either or both of these are feasible. Thanks... --=20 You are receiving this mail because: You are the assignee for the bug.=