From nobody Mon Aug 2 19:58:08 2021 X-Original-To: jail@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 0920012B9F70 for ; Mon, 2 Aug 2021 19:58:20 +0000 (UTC) (envelope-from thomas@gibfest.dk) Received: from smtp2.servers.tyknet.dk (smtp2.servers.tyknet.dk [89.233.43.78]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Gdphq6KCzz3CKd; Mon, 2 Aug 2021 19:58:19 +0000 (UTC) (envelope-from thomas@gibfest.dk) Subject: Re: POSIX shared memory, jails, and (lack of) limits DKIM-Filter: OpenDKIM Filter v2.10.3 smtp2.servers.tyknet.dk 879FC85A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gibfest.dk; s=default; t=1627934291; bh=bYPWq0pRB74nVJX9EWcBCN0VzZZFNJ6RcVBrhHkCrw0=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=of/N8YYQDg61+yad8gbC/ca7aheJp777hm+2HHC57eStWpP/ZvKEsdAWFgs6n6Cg1 UCx4vA021oYTyBH3aRwTAewZDlt/rwIq/rAD2X+s3frvlxLVNF50B8p8V1q/ZIASF7 VNqsl/9eog6axRXECZhLI9M9xyCJvT6CuaZZWi0IxHLUYzH8COibBTBX4fd9/4MPya 6IBaxp00xt34xOHOPX1/B7asHr5sHy1iiKdFYoo6Xz1t8KYQdaYoecdBfx6mPdI2AF 6OKOqMtiY7QLlqxVVrK4YIS1ZWUSu/0bviJFfkN2fO/aqVy27SPhQAqxXe0xNoH6it pJVFHv8lygptA== To: Mark Johnston Cc: Michael Gmelin , jail@freebsd.org, Konstantin Belousov References: Message-ID: <51d4462f-1958-3380-9973-365e018e533f@gibfest.dk> Date: Mon, 2 Aug 2021 21:58:08 +0200 List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Gdphq6KCzz3CKd X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: thomas@gibfest.dk From: Thomas Steen Rasmussen via jail X-Original-From: Thomas Steen Rasmussen X-ThisMailContainsUnwantedMimeParts: N On 8/2/21 9:40 PM, Mark Johnston wrote: > Cyril has written a few patches for racct, including one which includes > POSIX shared memory objects in rctl's "nshm" and "shmsize" resources, > which currently only apply to SysV shm objects: > https://reviews.freebsd.org/D30775 > We plan to get them committed in the next couple of weeks. > Hello, I haven't looked at it for a bit, but the last time I tried to use sysutils/jail_exporter to get graphs for jail resource usage the graphs for Postgres jails were hilariously wrong, which I believe I tracked down to shared memory being counted more than once. I gave up trying to figure out how to fix it and just lived with Grafana telling me a postgres jail on a 128gb jailhost used 900gb of memory. But it sounds like the above might fix this? Thanks! Best regards, Thomas Steen Rasmussen