-
Hi, we have a user that is trying to run our game server with ulimit like so: I have suggested they try setting I should note they are on Debian 11 (unsure what point release) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
cc @janvorli |
Beta Was this translation helpful? Give feedback.
-
#80580 seems related |
Beta Was this translation helpful? Give feedback.
-
@redwyre .NET does not create the file per se, it uses @mirasrael the #80580 is unrelated, that one is due to another limit - the number of allowed memory mappings. |
Beta Was this translation helpful? Give feedback.
@redwyre .NET does not create the file per se, it uses
memfd_create("doublemapper", MFD_CLOEXEC)
. This creates an anonymous file and unlike regular files, it lives in RAM. I was not aware of the fact that it is subject to the ulimit -f limit. So currently, the only way to make it work with that limit is what you have suggested - to disable W^X.I wonder if we should add honoring the limit though. The limit effectively limits amount of memory that can be used for allocating executable code. In the case someone sets the limit too low, it could result in OOM errors due to that. But maybe that's acceptable.
@mirasrael the #80580 is unrelated, that one is due to another limit - the number of a…