is there a way to increase ulimit ? #38
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: tristan/nixinate#38
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I get the following failures when trying to update my system.
is there an attribute to increase the ulimit ?
This error is awesome, I love macOS. (maybe I'm speaking too soon.) Maybe we should make an issue label for macOS specific issues.
https://apple.stackexchange.com/questions/32235/how-to-properly-increase-a-ulimit-n-limits
If you do find a solution you can prepend to the command, let me know and I'll implement a fix. With the new Nixinate I'm working on, you'd be able to add this to your
preDeployScript
, so hang tight!And thank you for making these issue reports, it's really interesting to see the edge cases that you are hitting.
ulimit -n 8196
should do it.
looking forward to the new nixinate!
did you see my previous comment, I've just ran into the error again. (it's for a deployment that needs a lot of derivations built).
hey @MatthewCroughan , let me know if there is anything I can do more to help on this one.
@happysalada can't you just run
ulimit -n 8196
on your machine? That should fix the issue, right? Alternatively, it seems likebuildOn = "remote"
could solve this as well (if the target is powerful enough, of course).Are you proposing that the nixinate script should set the ulimit? Is that even possible inside a sandboxed shell?
Im using remote already
The ulimit looks like it doesnt persist between different shells, ive tried setting it in another shell and it didnt affect my deployment
I dont feel too strongly about this issue, as my workaround is just to build less things
Ah got you. Just to clarify, are you deploying from a MacOS host to a remote Linux machine or from a Linux host to a remote MacOS machine? I do have one of each so could try to replicate and integrate a workaround, it seems straightforward enough.
Macos host to a linux machine.
My current workaround is to build less stuff at first then to rebuild the rest on the second deploy.
I havent found another way around this problem yet.
https://unix.stackexchange.com/questions/108174/how-to-persistently-control-maximum-system-resource-consumption-on-mac
now thats a weird and wonderful way to set ulimit!!! Apple , how do make setting a simple configuration option like ulimit so mind numbing difficult.... it's so overly convoluted, it's pure genius!
Anyway, that think apple has a future over 'just running photoshop'... is greatly mistaken.
Closed due to fork migration, feel free to reopen.