From nobody Tue Dec 27 19:39:47 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 4NhQJy4G3Qz1HWF2 for ; Tue, 27 Dec 2022 19:51:46 +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 4NhQJx2sN9z4L3g for ; Tue, 27 Dec 2022 19:51:45 +0000 (UTC) (envelope-from Mathias.Picker@virtual-earth.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=virtual-earth.de header.s=default_1811 header.b=HDK+GKcN; spf=pass (mx1.freebsd.org: domain of Mathias.Picker@virtual-earth.de designates 213.133.104.94 as permitted sender) smtp.mailfrom=Mathias.Picker@virtual-earth.de; dmarc=pass (policy=none) header.from=virtual-earth.de 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:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=o9TPBW3ymV/AkZ7hd1+A0eHnqJeQZ/wzjY2T9Aq4osg=; b=HDK+GKcNeb6JwCNKW+YrUoPHOW YVfLoCg0KuCRGNgyo0RDapZN9xVza+qacjlT++qfm4lkHqSybCjmJskBvzGKykn5/cWv+aX51cBN4 dH+Wt4QBR0j1T4dRfg+/YPpLHDEXaNKZSKicAim+/pEtmqjMpq4zICt8L47uc6+ohTNSe/Tc4iCC5 E32V6I8nNuZOlQSDO9BfuXfZnh0Mo24b2x/txXqB1wOkUm6+WBgg6H+OVEVMJyYa7UT4cQ2/epMZ8 IPtnKqwy0IkpbDTMzeXvFMOO1reoS/6ZFMhieBKAUFbbqEz/iYlCt/wUCx1GS61t2mU0LkFNuTHY1 XExJuohg==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www94.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pAFzE-0003my-Ah for freebsd-jail@FreeBSD.org; Tue, 27 Dec 2022 20:51:44 +0100 Received: from [77.21.4.8] (helo=danton.virtual-earth.de) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pAFzE-000Ip4-2P for freebsd-jail@FreeBSD.org; Tue, 27 Dec 2022 20:51:44 +0100 User-agent: mu4e 1.8.13; emacs 28.2 From: Mathias Picker To: freebsd-jail@FreeBSD.org Subject: debian jail, setting max open files soft limit does not work Date: Tue, 27 Dec 2022 20:39:47 +0100 Message-ID: <86sfh0pquo.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-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; DMARC_POLICY_ALLOW(-0.50)[virtual-earth.de,none]; R_DKIM_ALLOW(-0.20)[virtual-earth.de:s=default_1811]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[213.133.104.94:from]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-jail@FreeBSD.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE]; DKIM_TRACE(0.00)[virtual-earth.de:+]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_X_AS(0.00)[] X-Rspamd-Queue-Id: 4NhQJx2sN9z4L3g X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hi all, I=E2=80=99ve set up a jail on 13.1 running debian stretch, and now a=20 triplestore needing many openfiles for a data import. Since on Linux the soft limit is pretty hard :) I need to set the=20 soft limit. I=E2=80=99ve edited /etc/security/limits.conf to set soft and hard limit=20 to 20000 (just to check), but after login the soft limit stays at=20 1024. Using prlimit I can change the limits of a running process, but=20 that is not passed on to subprocesses, which the app creates=20 constantly for import, there, the soft limit returns to 1024 :( Running prlimit --nofile 20000 or prlimit --nofile 20000:20000=20 does not work, either, the soft limit stays at 1024, and the=20 import fails. Does anyone know a way to change the soft limit permenantly? Thanks, 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