mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Improved Open File Limit section wording
This commit is contained in:
parent
be218fd963
commit
27e62c40cf
1 changed files with 3 additions and 8 deletions
|
|
@ -42,20 +42,15 @@ While Pilosa does have some high system requirements it is not a best practice t
|
|||
|
||||
Pilosa requires a large number of open files to support its memory-mapped file storage system. Most operating systems put limits on the maximum number of files that may be opened concurrently by a process. On Linux systems, this limit is controlled by a utility called [ulimit](https://ss64.com/bash/ulimit.html). Pilosa will automatically attempt to raise the limit to `262144` during startup, but it may fail due to access limitations. If you see errors related to open file limits when starting Pilosa, it is recommended that you run `sudo ulimit -n 262144` before starting Pilosa.
|
||||
|
||||
On Mac OS X, `ulimit` does not behave predictably. The Mac OS X system has a utility called csrutil that prevents you from changing the file limit easily. Because of this, you must disable the csrutil program before attempting to set the open file limit. To disable the csrutil program, restart your laptop and when the start up screen pops up, hold down command + R to enter Reboot Mode. Open a terminal and enter `csrutil disable`, then restart your computer as you normally would. Now that the csrutil is disabled, you can change the open file limit. The open file limit can be changed by creating the following files and changing their ownership:
|
||||
On Mac OS X, `ulimit` does not behave predictably. The Mac OS X system has a utility called csrutil that prevents you from changing the open file limit easily. One workaround that may work for you involves disabling the csrutil program. To disable the csrutil program, restart your laptop and when the start up screen pops up, hold down command + R to enter Recovery Mode. Open a terminal and enter `csrutil disable`, then restart your computer as you normally would. Now that the csrutil is disabled, you can change the open file limit. The open file limit can be changed by creating the following files and changing their ownership:
|
||||
|
||||
```
|
||||
sudo vim /Library/LaunchDaemons/limit.maxfiles.plist
|
||||
```
|
||||
|
||||
Copy the code located in [this](https://github.com/wilsonmar/mac-setup/blob/master/configs/limit.maxfiles.plist) github repository into the file.
|
||||
Copy the contents of [this] file into a new file on your system located at /Library/LaunchDaemons/limit.maxfiles.plist, then run:
|
||||
|
||||
```
|
||||
sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
|
||||
sudo vim /Library/LaunchDaemons/limit.maxproc.plist
|
||||
```
|
||||
|
||||
Copy the code located in [this](https://github.com/wilsonmar/mac-setup/blob/master/configs/limit.maxproc.plist) github repository into the file.
|
||||
Copy the contents of [this] file into a new file on your system located at /Library/LaunchDaemons/limit.maxfiles.plist, then run:
|
||||
|
||||
```
|
||||
sudo chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue