X-Original-To: alpine-user@lists.alpinelinux.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-oln040092065085.outbound.protection.outlook.com [40.92.65.85]) by lists.alpinelinux.org (Postfix) with ESMTP id 872915C5C7E for ; Mon, 26 Nov 2018 21:17:51 +0000 (GMT) Received: from HE1EUR01FT014.eop-EUR01.prod.protection.outlook.com (10.152.0.57) by HE1EUR01HT097.eop-EUR01.prod.protection.outlook.com (10.152.1.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1339.10; Mon, 26 Nov 2018 21:17:50 +0000 Received: from DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM (10.152.0.58) by HE1EUR01FT014.mail.protection.outlook.com (10.152.0.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1339.10 via Frontend Transport; Mon, 26 Nov 2018 21:17:50 +0000 Received: from DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM ([fe80::b48b:4213:956:c33b]) by DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM ([fe80::b48b:4213:956:c33b%8]) with mapi id 15.20.1361.019; Mon, 26 Nov 2018 21:17:50 +0000 From: David Compton CC: "alpine-user@lists.alpinelinux.org" Subject: Re: [alpine-user] Ulimit Thread-Topic: [alpine-user] Ulimit Thread-Index: AQHUhcmjRDZCxMOMXEejE0s3GZcti6VijaaAgAABM3w= Date: Mon, 26 Nov 2018 21:17:50 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:C54EE6D517F9B4F42DBFD4764EFBDA3E1CCF00A4E7C313B9C7CD996190BD7559;UpperCasedChecksum:48AEBC5C099469DC17B9C6CEA3D9DDC7C10F06160472B24ABF471A917FDD6AED;SizeAsReceived:7232;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [wIUaHR5qDfeVNYGehgraNlTeEE5X2OZg] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1EUR01HT097;6:gNXCwiupIHlmmCftgz64QESAQML3vikqY+yp8HVw29UE/i2IAPIkSCB7pHdbGhsTleLgjEVGpkEAdy8+UV/hfK4aQqKIusRzFZ4YCZZwP+SOyH3SmdqotlCScJua+AjE1MAS7q+wpOFtfsySC+F+fT99CIiWd6BiI/SulTzON1FDvD4VaM26eZrV/bs6h+7bitdc7tYqzg03x9OOv9b2paW0M01e6LjJasplHKvhpDNC6vPqAK3Ovdso+3VGuCVh5pYp7trjhBiAnbWqpamUQyQrnnFuqJTqEA1bp3F/mZT+VK1fLLjp8mVklH/L1ibg20dXErfc9I4Fll/1BkSQ0pgum3gu7W6hBhoiq1xWLblg2HGPBiInexGCetNX30LnwDBTBi3it3Xav09zGaj3UU17hmD1YWilRcjQK5hWywG2AEDTQCqyMnbT+pC++pO4p8/ikjhE/iPxHS/agCcFEQ==;5:dTZZY+ag+XkO3lMAa6hy9YjSQxkPlZLWhfOJqCa+V9NcLSAVk+v2zL2Wt4qu1sGImSV5KelUsn3kEbwYbZSgsCSeK0iRmCxpJn29USiZlSxnpl/yvS49xh4JNX1MpI4JYiumylCceMr3pqbcRjgKyRMQ1B1FocH5de5ZX3JnDCM=;7:q7rR5r0ePoCT+aCQaoN6Nt1oaib0wYNvyYQgsHwlz67K7nWUtqtEej2hoW9LoDP3jSqufrRJFbIKiX4dYjI14w1GKj8hqVQMP+5OhZoLg5zO1gsQjdK6+0uEXL+J5HlZV9rBCe3xSh+WELoEIvn5gw== x-incomingheadercount: 46 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101475)(1601125500)(1701031045);SRVR:HE1EUR01HT097; x-ms-traffictypediagnostic: HE1EUR01HT097: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:HE1EUR01HT097;BCL:0;PCL:0;RULEID:;SRVR:HE1EUR01HT097; x-microsoft-antispam-message-info: Xgi4VdP9EbPlVztdC6vdF99UiZCXhAbaWYTViLUf7XeOkE82cGyH/FVw1A/vLE8+ Content-Type: multipart/alternative; boundary="_000_DB6PR1001MB1429B9E61887E975B9F995C3A1D70DB6PR1001MB1429_" X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: c001924d-3e68-4f40-89c2-901a49278da7 X-MS-Exchange-CrossTenant-Network-Message-Id: e19fdeae-2043-4c44-2063-08d653e49ede X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: c001924d-3e68-4f40-89c2-901a49278da7 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2018 21:17:50.2041 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT097 --_000_DB6PR1001MB1429B9E61887E975B9F995C3A1D70DB6PR1001MB1429_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Hi Daniel, I can't believe I didn't think to look there first! I amended the lxc conf= ig file with: lxc.prlimit.nofile: 30000 which is more than enough. Thank you for the fast reply. I'm loving Alpin= e so far, the boot times are unreal, I can see why it's so popular. David ________________________________ From: Daniel Isaksen Sent: 26 November 2018 21:11 To: David Compton Cc: alpine-user@lists.alpinelinux.org Subject: Re: [alpine-user] Ulimit Hi David, This is an LXC limitation. Given you have the prerequisite LXC >=3D2.19, try this: lxc config set cont= ainername limits.kernel.nofile 1024 ----- Sincerely / Med vennlig hilsen, Daniel Isaksen (https://duniel.no) =1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B On Monday, November 26, 2018 9:53 PM, David Compton = wrote: Hi, I have installed Alpine Linux to my Proxmox dev environment in a LXC contai= ner and am having an issue raising the file limits. I have it installed on a reasonably busy haproxy server so I need to increa= se the file limits but I get the following error from this command: ulimit -n 90000 ash: error setting limit: Operation not permitted =3D=3D=3D ## Increase system file descriptor limit fs.file-max =3D 65535 Am I doing something wrong? Any help appreciated! David --_000_DB6PR1001MB1429B9E61887E975B9F995C3A1D70DB6PR1001MB1429_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable

Hi Daniel,


I can't believe I didn't think to= look there first!  I amended the lxc config file with:


lxc.prlimit.nofile: 30000


which is more than enough.  = Thank you for the fast reply.  I'm loving Alpine so far, the boot time= s are unreal, I can see why it's so popular.


David




From: Daniel Isaksen <d@= duniel.no>
Sent: 26 November 2018 21:11
To: David Compton
Cc: alpine-user@lists.alpinelinux.org
Subject: Re: [alpine-user] Ulimit
 
Hi David,

This is an LXC limitation.

Given you have the prerequisite LXC >=3D2.19, try this: lxc config set containername limits.kernel.nofile 1024

-----
Sincerely / Med vennlig hilsen,
Daniel Isaksen <d@duniel.no> (https://duniel.no)


=1B$B!>!>!>!>!>!>!>=1B(B Original Message =1B$B!>!>!>!>!>!>!>=1B(B
On Monday, November 26, 2018 9:53 PM, David Compton <d140frv@hotmai= l.co.uk> wrote:

Hi,

I have installed Alpine Linux to my Proxmox dev environment in a LXC contai= ner and am having an issue raising the file limits.

I have it installed on a reasonably busy haproxy server so I need to increa= se the file limits but I get the following error from this command:

ulimit -n 90000
ash: error setting limit: Operation not permitted

=3D=3D=3D

## Increase system file descriptor limit=0A=
fs.file-max =3D 65535

Am I doing something wrong?  Any help appreciated!

David

--_000_DB6PR1001MB1429B9E61887E975B9F995C3A1D70DB6PR1001MB1429_-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---