Jump to content


- - - - -
Mac

File Limit Fix



130 replies to this topic

#41 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 20 May 2007 - 03:17 PM

UnderFire said:

I'm having the same problem as garagegirl

rc.local

sysctl -w kern.maxfiles=42000
sysctl -w kern.maxfilesperproc=40000

Terminal

[Graces-iMac:~] grace% sysctl kern.maxfiles
kern.maxfiles = 42000
[Graces-iMac:~] grace% sysctl kern.maxfilesperproc
kern.maxfilesperproc = 10240

The second number will NOT change. I'f tried raising and lowering both up to 202000 and 200000 and down to 22000 and 20000. No matter what I do the second number remains 10240. What did I miss?

Help!
Did you reboot the Mac before checking it with Terminal?

#42 itslove

    Team Mascot


  • 84 posts
  • LocationBrooklyn, NY

Posted 20 May 2007 - 06:27 PM

Wow i did NOT know this is what was making my game crash recently. I did think it had to do something with downloads but this makes much more sense than what i imagined. I'll have to give it a go. It seems i'm not too much over the limit but maybe over by a couple hundred files. Where does everyone get this info? I love this forum. You guys are awesome. lol. *love love love*

#43 UnderFire

    New Neighbor


  • 15 posts

Posted 20 May 2007 - 07:27 PM

luws said:

Did you reboot the Mac before checking it with Terminal?

I selected 'restart' from the apple menu which I thought was enough. Do I have to actually select 'Shut Down' then power up again?

#44 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 21 May 2007 - 04:53 AM

No, restarting should do it. I don't know why only the top number is changing, but that means your system is not accepting the change. Did you use the Onyx method or the manual method?
Either way, I would delete your rc.local file and try starting from scratch. And this time, use 22000 and 20000. See what happens.

And please post back so we know wether it got fixed or not.

#45 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 21 May 2007 - 04:57 AM

itslove said:

I'll have to give it a go. It seems i'm not too much over the limit but maybe over by a couple hundred files.

It only takes one.:)

Good luck.

#46 UnderFire

    New Neighbor


  • 15 posts

Posted 21 May 2007 - 11:29 AM

luws said:

No, restarting should do it. I don't know why only the top number is changing, but that means your system is not accepting the change. Did you use the Onyx method or the manual method?
Either way, I would delete your rc.local file and try starting from scratch. And this time, use 22000 and 20000. See what happens.

And please post back so we know wether it got fixed or not.

I did it all over again....again using the Onyx method

rc.local

sysctl -w kern.maxfiles=22000
sysctl -w kern.maxfilesperproc=20000

Terminal

[Graces-iMac:~] grace% sysctl kern.maxfiles
kern.maxfiles = 22000
[Graces-iMac:~] grace% sysctl kern.maxfilesperproc
kern.maxfilesperproc = 10240

I think I'm gonna cry I'm so frustrated with this...:(

#47 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 21 May 2007 - 12:35 PM

I also just had this problem and I thought it was related to my HD crash and restore to a new HD. And kayanna had this after an archive and install, which I suspect is what Apple had done for me. It may have been something to do with that, but anyway I found I had two rc.local. Since I still had all my previous stuff including all the preferences and stuff in a folder called Disk Recovery, I didn't know if that caused this so I removed all that and trashed it. Emptied trash.

So when I ran those lines in Terminal and they came up as the original numbers, I made another one. And now it works. One of them had the white notepaper icon, and the other had the text file icon. So double check that you don't have two.

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists


#48 UnderFire

    New Neighbor


  • 15 posts

Posted 21 May 2007 - 03:12 PM

HugeLunatic said:

I also just had this problem and I thought it was related to my HD crash and restore to a new HD. And kayanna had this after an archive and install, which I suspect is what Apple had done for me. It may have been something to do with that, but anyway I found I had two rc.local. Since I still had all my previous stuff including all the preferences and stuff in a folder called Disk Recovery, I didn't know if that caused this so I removed all that and trashed it. Emptied trash.

So when I ran those lines in Terminal and they came up as the original numbers, I made another one. And now it works. One of them had the white notepaper icon, and the other had the text file icon. So double check that you don't have two.

Nope just one rc.local file. Nothing in the trash as it is empty. If it were a problem with duplicates I don't think the system would have read the first change at all. BOTH numbers would have stayed the same as opposed to the one. The reason you ended up with two I think is because when you created the rc.local file originally you fogot to uncheck if no extention is provided use ".txt" box in Textedit before you saved. So the system did not recognize your first rc.local at all.

I guess it's time for me to go delete some custom content..

#49 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 21 May 2007 - 03:40 PM

That could very well have been why there were two. But it is strange as to why mine finally worked right, when I have playing with that for 5 months trying to make it work. I've been playing with minimal cc since.

Did you try removing the file, restarting, and making sure it was at original values then starting over?

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists


#50 figaro_black

    Simoleon Addict


  • 846 posts
  • LocationSweden

Posted 21 May 2007 - 03:57 PM

I finally gave in and upped the limit too. Fantastic what it can do for game playability! No more disappearing families, and it seems to load faster too as if it doesn't have to stop to think about "am I over the limit or not?"
The Angelic Legacy - It had to end somehow...

The Periwinkle Legacy - Ghost do Exist, and they are gooey...

#51 UnderFire

    New Neighbor


  • 15 posts

Posted 21 May 2007 - 04:26 PM

HugeLunatic said:

That could very well have been why there were two. But it is strange as to why mine finally worked right, when I have playing with that for 5 months trying to make it work. I've been playing with minimal cc since.

Did you try removing the file, restarting, and making sure it was at original values then starting over?

Terminal after deleteing rc.local file and rebooting

[Graces-iMac:~] grace% sysctl kern.maxfiles
kern.maxfiles = 12288
[Graces-iMac:~] grace% sysctl kern.maxfilesperproc
kern.maxfilesperproc = 10240

Another new rc.local file

sysctl -w kern.maxfiles=22000
sysctl -w kern.maxfilesperproc=20000

Terminal after rebooting with new rc,local file

[Graces-iMac:~] grace% sysctl kern.maxfiles
kern.maxfiles = 22000
[Graces-iMac:~] grace% sysctl kern.maxfilesperproc
kern.maxfilesperproc = 10240

....anyone else have any other ideas? I really don't want to have to take out everything. HELP!
In the meantime I'll continue trying to cut down my downloads folder....creatively as BodyShop won't start either.

#52 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 22 May 2007 - 03:37 AM

Dang I was really hoping you just weren't rebooting in between. :( Ya know something simple.

Do you have multiple accounts?

Are you making the files hidden again before rebooting? Shouldn't make a difference but I'm sorta running out of plausible ideas!

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists


#53 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 22 May 2007 - 05:36 AM

Grace, (may I call you Grace?), since it's not working with Onyx, why don't you delete that rc.local, log in as root and try the other method? Maybe there's something different about Onyx & iMacs. Or the version you have perhaps? Anyway, Seems like it's at least worth a shot to try the other method. http://forums.thesim...32&postcount=10

#54 UnderFire

    New Neighbor


  • 15 posts

Posted 22 May 2007 - 01:10 PM

No I don't have multiple accounts. I had pretty much given up on this and just decided to cut my custom content down and not download anymore. So I spent the day going over and organizing my downloads folder (While watching Nip/Tuck in another window).

First I got rid of objects that I knew I didn't use that I recognized by name. I got rid of all the custom eyes and skins since I have great default replacements now. Then I used WooHoo to look at the textures of files that I didn't recognize by name and didn't like (also renamed the ones I kept). I also got rid of anything that wouldn't open in WooHoo and anything that wasn't titled 'Mesh-something' that I couldn't see a texture file for. I got rid of and Sims2packs that wouldn't expand because 'They require content that is not installed'. Then I got rid of all redundant hacks. Then just for the hell of it I got rid of all the .txt, .jpg, and .html files that come with sets and created folders for sets that for some reason weren't already in folders.

Several hours and about 1000 files later...

My game would run again. No more green wireframe neighbourhoods. Then I went into buy and build mode and deleted content that I didn't like from inside the game (including bedding) as well as anything that showed up flashing blue.

Then I came back here and tried the fix the manual way while logged in as root and wouldn't you know it worked!

Then I marched myself right back over to MTS2:lol: . But now of course I'm a lot more selective with my downloads:rolleyes: ...and my download folder needed organizing anyway.

So thanks for all your help!

#55 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 23 May 2007 - 01:55 AM

That's great! It's a good thing luws is around with useful info! :D

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists


#56 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 23 May 2007 - 02:20 AM

Ah shucks... thanks! :o

Just glad it got fixed.:)

#57 itslove

    Team Mascot


  • 84 posts
  • LocationBrooklyn, NY

Posted 23 May 2007 - 02:46 PM

HugeLunatic said:

That's great! It's a good thing luws is around with useful info! :D

I agree. It was her steps that i followed. And it works so well. :D Thanx luws and also sakgonz for starting the thread :D I never would've understood why my game was constantly crashing for no reason if it wasn't for this forum. hehe :D

#58 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 05 June 2007 - 03:06 AM

So my Macbook won't start now after doing this. :( I can boot from the install disk and reformat, but is there another way to start and remove this file without reinstalling OSX?

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists


#59 luws

    A Derivative Of


  • 2,973 posts
  • LocationIn the moment

Posted 05 June 2007 - 01:16 PM

Ooooh, not good! What numbers did you use? Can't imagine why it would cause your Mac not to boot.

Once you boot from the install disk, can you then log in as root and delete the file? Or use Onyx to remove the file?

#60 HugeLunatic

    Trashcan Kicker


  • 357 posts

Posted 06 June 2007 - 02:23 AM

I used the 20000 and 22000 numbers. I logged in as root to change them. I may not have logged out before I restarted, can't remember.

When I put in the install disk, I hold down c to boot from the disk, the only option I have is to re-install. Did I miss something that will let me actually start my computer?

I have since removed the file, using the cmd+s key and using the unix commands. But it still won't start. And windows also won't boot. Does something in OSX need to start before it will boot windows? And this is where I miss windows, cuz I know how to fix it there. I'm almost afraid that the HD just crashed.

...i DoN't SuFfEr FrOm My InSaNiTy...I eNjOy EvErY mInUtE oF iT...
...a lunatic idea...TSRSims2Artists






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users