Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many open files on Ubuntu 24.04 #193

Open
Kr3m opened this issue May 27, 2024 · 5 comments
Open

Too many open files on Ubuntu 24.04 #193

Kr3m opened this issue May 27, 2024 · 5 comments

Comments

@Kr3m
Copy link

Kr3m commented May 27, 2024

I'm getting the following error when trying to compile a map:

--- LoadMapFile ---
Script file /home/kevin/.q3a/baseq3/maps/testmap.map was not found: Too many open files
************ ERROR ************
@Garux
Copy link
Owner

Garux commented May 27, 2024

Likely too much .pk3s, they all are kept open. You can increase this limit in linux.

@ensiform
Copy link

ensiform commented May 28, 2024

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS.
And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

@Garux
Copy link
Owner

Garux commented May 28, 2024

I do set maximal available limit in windows, in linux it must be set systemwide from what i read.

@Kr3m
Copy link
Author

Kr3m commented May 28, 2024

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS. And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

Yeah, I was able to get it working by setting it from the terminal and running it from the same terminal. I think I'll just adjust it system wide. Just not sure what the safest setting would be, but I guess 4096 should be okay...

@ensiform
Copy link

There are ways to increase max file handles on Windows and Linux for sure via code in main program, not sure about bsds or macOS. And some idtech forks have utilized these. I don't remember the exact functions off the top of my head currently.

Yeah, I was able to get it working by setting it from the terminal and running it from the same terminal. I think I'll just adjust it system wide. Just not sure what the safest setting would be, but I guess 4096 should be okay...

Jk2mv has this code

https://github.com/mvdevs/jk2mv/blob/master/src%2Fsys%2Fsys_unix.cpp#L572-L589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants