From nobody Wed Dec 28 08:22:04 2022 X-Original-To: freebsd-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 4Nhl1M4JpZz2cBcs for ; Wed, 28 Dec 2022 08:24:23 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Received: from www94.your-server.de (www94.your-server.de [213.133.104.94]) (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 4Nhl1M17P9z44Qq for ; Wed, 28 Dec 2022 08:24:22 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtual-earth.de; s=default_1811; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To:From:References:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=8C/QFi+i3mxduGMXVHrHyMypBtIXwL+gQyMfmTBpQSw=; b=V0wX1G8Fom5r9s1cAvKMg2nt8O nNVVFxyjqfnRFQuHLtiUqDqVneblA57dOZq/mYjKNhm0IzqZu9RU0zstzmIPMLSMIlIvETjnGsTaO 5feG0qG27QpmXpQAoKIP3capNumHb34Gx8HtkzRl2+KFsbNgODKrk5EgqoqfiZaj24Zc8CE9//g4E dMYZPYUbzEiWFYgH/+bTjy+30Sz/VMQwf6qRMALkgHjGGP/UBP/THsKy23Vhb/EOhiTCZvsqNEc0U JUM3s/NaM08EY62jH60yaEYSB/Ulfez3xQg2ZWKnlUFbSyXNKZgRs3f4wZxvFF/6w0s0jJlCzAm6N 4xB2wqGw==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www94.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pARjY-000J3l-9B; Wed, 28 Dec 2022 09:24:20 +0100 Received: from [77.21.4.8] (helo=danton.virtual-earth.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pARjY-0002D4-1X; Wed, 28 Dec 2022 09:24:20 +0100 References: <86sfh0pquo.fsf@virtual-earth.de> User-agent: mu4e 1.8.13; emacs 28.2 From: Mathias Picker To: Mateusz Guzik Cc: freebsd-jail@freebsd.org Subject: Re: debian jail, setting max open files soft limit does not work Date: Wed, 28 Dec 2022 09:22:04 +0100 In-reply-to: Message-ID: <86o7roos0c.fsf@virtual-earth.de> 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: Mathias.Picker@virtual-earth.de X-Virus-Scanned: Clear (ClamAV 0.103.7/26763/Tue Dec 27 09:21:06 2022) X-Rspamd-Queue-Id: 4Nhl1M17P9z44Qq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi Mateusz, Mateusz Guzik writes: > On 12/27/22, Mathias Picker =20 > wrote: >> Hi all, >> >> I=E2=80=99ve set up a jail on 13.1 running debian stretch, and now a >> triplestore needing many openfiles for a data import. [snip] >> Running prlimit --nofile 20000 or prlimit --nofile 20000:20000 >> does not work, either, the soft limit stays at 1024, and the >> import fails. >> >> Does anyone know a way to change the soft limit permenantly? > > kernel code is buggy here, from a quick read you should be able=20 > to > work around it by: > > sysctl compat.linux.default_openfiles=3D-1 this worked just fine!!! :) Thanks a lot, Mathias --=20 Mathias Picker=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 Gesch=C3=A4ftsf=C3=BChrer Mathias.Picker@virtual-earth.de virtual earth Gesellschaft f=C3=BCr Wissens re/pr=C3=A4 sentation mbH http://www.virtual-earth.de/ HRB126870 support@virtual-earth.de Westendstr. 142 089 / 1250 3943=20=20=20=20=20=20=20=20=20=20=20=20