How to bump ulimit?
Jacek Nykis
jacek.nykis at canonical.com
Fri Mar 17 09:01:22 UTC 2017
On 17/03/17 02:40, Michi Henning wrote:
>
>> Would you mind pasting exact command that worked for you from inside a snap?
>>
>> In my case ulimit works just fine outside of confinement. For example:
>> jacek at laptop:~$ ulimit -n 10240
>> jacek at laptop:~$ ulimit -n
>> 10240
>>
>> But when I try the same when confined I can only go as high as 4096.
>
> $ cat /proc/sys/fs/file-max
> 1624349
> $ ulimit -Hn
> 65536
> $ ulimit -Sn
> 1024
> $ ulimit -Sn 65536
> $ ulimit -Sn
> 65536
>
> This works for me when running a confined shell:
>
> $ snap run —shell mysnap.mycommand
Interesting. This worked for me too with snap run --shell.
I wonder if hard limit for my daemon is different than the one I get
when I snap run --shell? Anyway I'll dig a big deeper and file a bug if
needed, thanks for help.
--
Jacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 299 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170317/2817abf3/attachment.sig>
More information about the Snapcraft
mailing list