-
Notifications
You must be signed in to change notification settings - Fork 0
Consider bumping up concurrent file limit #7
Comments
Note that approach is session-based and will not persist, so if we want to Is this something typically added to peoples dotfiles, @tylersticka ? Is that how people maintain it? |
I have this in
And I've never had to mess with it again. But when I pass that along to my teammates (I think @erikjung was one of them) they said that wasn't enough for them. So I'm not sure why I'm special and able to run the exact same project and never have to set the limit per session... |
@tylersticka @erikjung @lharding It seems like this is something we've run into more lately. Do any of you have thoughts? Should we be managing |
@tylersticka I actually never added it to my |
@erikjung It is no longer in my profile since I switched to the |
Hi, @tylersticka! This one does come up now and again, doesn't it. Do you have a preference of how we might manage this strategically? Right now our common set of dotfiles (which you get if you don't manage your own dotfiles, https://github.com/cloudfour/cloudfour-boxen/tree/master/modules/cloudfour_potions/files/dotfiles ) doesn't manage an actual Is this something you've added to your own |
For OS X modifications, what about adding some of the classes provided by https://github.com/boxen/puppet-osx And then for any other random commands we need to run, we write our own extensions, for example: class osx::finder::unhide_library {
$home = "/Users/${::boxen_user}"
exec { 'Unhide ~/Library':
command => "chflags nohidden ${home}/Library",
onlyif => "ls -Ol ${home} | grep Library | grep hidden";
}
} |
@erikjung OK, maybe, but I don't know that that module would allow us to mess with concurrent file limits? |
@lyzadanger I assumed that because it allows any command to be executed, we could do...anything? (I don't know if this would work) class osx::misc::increase_ulimit {
exec { "Increase concurrent open file limit":
command => "ulimit -n 10000"
}
} |
@erikjung But I'm unclear as to the context of that process. Does it run when |
@lyzadanger Yeah, I have no idea. I only mentioned the Maybe the simplest thing to do for now is just tell everyone to add the command plus an alias command to their |
Back in January, that addition to Then OS X updated and it stopped working for me. The command would work if you ran it manually, but not as part of any of my bash or profile dotfiles. So I decided to ape what @erikjung was doing in his dotfiles and create an alias for that command. This is probably the most common head-scratchingly mysterious issue that comes up for the team... unfortunately in the months since creating the issue, no obvious remedy exists that I'm aware of. If there were some sort of system-level tweak that would remedy it, I'd love it. But absent that, I'm fine just running |
A common issue I think most of the folks on the team have run into at one time or another are those irritating
ENOINT
errors when OS X exceeds the 256-file limit.I'm not sure if Boxen allows us to add custom stuff to the
.profile
by default, but this line seems to have done the trick in mine:The text was updated successfully, but these errors were encountered: