Insimenator.org
February 23, 2017, 06:55:07 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Jenna finally got off her lazy butt and fixed the registration questions.
 
  Home   Forum   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Getting past the 2000/11800 file limit  (Read 3579 times)
0 Members and 1 Guest are viewing this topic.
BeosBoxBoy
Silent

Gender: Male
Posts: 5021



View Profile WWW
« on: June 10, 2007, 08:51:12 pm »

The Aspyr version of The Sims 2 in an un-patched state with no expansion packs has
a 2000 download file limit.  the only way to get past this is to update The Sims 2
with the latest game patch from http://www.aspyr.com/

After patching or after installing any of the expansion packs there is a problem that
develops between 11800 to 12000 downloads.  To resolve this you will need a programme
that alows you to see and edit hidden system files, such as OnyX or any similar software,
and root access.

Log-in as root. Start OnyX and tell it to display hidden files.
Finder will restart, wait until Finder has restarted and completely displays
before proceeding.
 
Go into Macintosh HD and find the folder etc and open the file rc.local in text,
create this file if it does not already exist.

Add these lines or edit them if you have something similar.

   sysctl -w kern.maxfiles=102000
sysctl -w kern.maxfilesperproc=100000
You must set kern.maxfiles 2000 higher than kern.maxfilesperproc.
If you need to have more files open, use a higher number, example:
   sysctl -w kern.maxfiles=202000
sysctl -w kern.maxfilesperproc=200000
Save the file to your desktop (uncheck if no extension is provided, use ".txt" format)
then move it into the etc folder.
Return to OnyX and restore the settings to not show hidden files. Restart the computer.

This should get you up and running with the best advantages.

Credits: sakgonz (TSR Forum); alexpilgrim; luws (TSR Forum)

Note: more discussion on this topic can be located on the TSR forum at this thread: http://forums.thesimsresource.com/showthread.php?t=309256
Logged

"There is a certain elegance in wasting time. Any fool can waste money, but when you waste time you waste what is priceless."
-- Maugham, W. Somerset. Ashenden: Or the British Agent.
Mi-chii
Member

Posts: 418



View Profile WWW
« Reply #1 on: June 11, 2007, 06:16:41 am »

BBB, I have the basegame only, I have way more than 2000 downloads, and everything works completely fine. It's unpatched and working excellent. Just thought I'd add that Smiley Could be some have problems, and some don't.
Logged

Tied third place in Mr. Insimenator 2007
Join the Animal Army
Call me Michelle
lordtyger
Member

Gender: Male
Posts: 8



View Profile
« Reply #2 on: February 11, 2017, 05:11:20 pm »

Adjusting Open File Limits in Yosemite
To adjust open files limits on a system-wide basis in Mac OS X Yosemite, you must create two configuration files.
The first is a property list (aka plist) file in /Library/LaunchDaemons/limit.maxfiles.plist that contains the following
XML configuration:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
    <dict>
      <key>Label</key>
        <string>limit.maxfiles</string>
      <key>ProgramArguments</key>
        <array>
          <string>launchctl</string>
          <string>limit</string>
          <string>maxfiles</string>
          <string>65536</string>
          <string>65536</string>
        </array>
      <key>RunAtLoad</key>
        <true/>
      <key>ServiceIPC</key>
        <false/>
    </dict>
  </plist>

This will set the open files limit to 65536.
The second plist configuration file should be stored in /Library/LaunchDaemons/limit.maxproc.plist with the following
contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  <plist version="1.0">
    <dict>
      <key>Label</key>
        <string>limit.maxproc</string>
      <key>ProgramArguments</key>
        <array>
          <string>launchctl</string>
          <string>limit</string>
          <string>maxproc</string>
          <string>2048</string>
          <string>2048</string>
        </array>
      <key>RunAtLoad</key>
        <true />
      <key>ServiceIPC</key>
        <false />
    </dict>
  </plist>
Both plist files must be owned by root:wheel and have permissions -rw-r--r--.
This permissions should be in place by default, but you can ensure that they are in place by
running sudo chmod 644 <filename>. While the steps explained above will cause system-wide open file limits to be correctly set upon restart, you can apply them manually by running launchctl limit.

In addition to setting these limits at the system level, we recommend setting the at the session level as well by
appending the following lines to your bashrc, bashprofile, or analogous file:

Shell
ulimit -n 65536
ulimit -u 2048
Like the plist files, your bashrc or similar file should have -rw-r--r-- permissions.
At this point, you can restart your computer and enter ulimit -n into your terminal. If your system is configured correctly, you should see that maxfiles has been set to 65536.
Logged

Curiosity Killed the Cat, but Satisfaction Brought It Back.
Pages: [1]
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.148 seconds with 31 queries.
SimplePortal 2.1.1