~alpine/users

2 2

[alpine-user] Ulimit

David Compton <d140frv@hotmail.co.uk>
Details
Message ID
<DB6PR1001MB14299AC88841EEB50C966C50A1D70@DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM>
Sender timestamp
1543265608
DKIM signature
missing
Download raw message
Hi,

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

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

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

===


## Increase system file descriptor limit
fs.file-max = 65535


Am I doing something wrong?  Any help appreciated!

David
Daniel Isaksen <d@duniel.no>
Details
Message ID
<y66x6e3i7I1L4uGuO0AK_erRO-jK-2eY6Q8rOLxk4pkaeif66HwsUrgm1k-lMO19T68scX_9hhVLDUg71EOdQToQZVixAaanlGtZC5oM0kM=@duniel.no>
In-Reply-To
<DB6PR1001MB14299AC88841EEB50C966C50A1D70@DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM> (view parent)
Sender timestamp
1543266695
DKIM signature
missing
Download raw message
Hi David,

This is an LXC limitation.

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

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

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 26, 2018 9:53 PM, David Compton <d140frv@hotmail.co.uk> wrote:

> Hi,
> 

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

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

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

> ===
> 

> ## Increase system file descriptor limit
> fs.file-max = 65535
> 

> Am I doing something wrong?  Any help appreciated!
> 

> David
David Compton <d140frv@hotmail.co.uk>
Details
Message ID
<DB6PR1001MB1429B9E61887E975B9F995C3A1D70@DB6PR1001MB1429.EURPRD10.PROD.OUTLOOK.COM>
In-Reply-To
<y66x6e3i7I1L4uGuO0AK_erRO-jK-2eY6Q8rOLxk4pkaeif66HwsUrgm1k-lMO19T68scX_9hhVLDUg71EOdQToQZVixAaanlGtZC5oM0kM=@duniel.no> (view parent)
Sender timestamp
1543267070
DKIM signature
missing
Download raw message
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 times 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 >=2.19, try this: lxc config set containername limits.kernel.nofile 1024

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


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 26, 2018 9:53 PM, David Compton <d140frv@hotmail.co.uk> wrote:

Hi,

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

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

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

===


## Increase system file descriptor limit
fs.file-max = 65535

Am I doing something wrong?  Any help appreciated!

David
Reply to thread Export thread (mbox)