summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSteve Swinsburg <steve.swinsburg@gmail.com>2018-02-01 14:16:59 +1100
committerGitHub <noreply@github.com>2018-02-01 14:16:59 +1100
commitfc9d30b56a2f4171e8437444fc4f9d1f21b8a386 (patch)
tree530977fbd6bd2bb00c5067b01fc021237f449658 /doc
parent2ae7260b90fe3dbe835ba2489519510f0e57d770 (diff)
downloadxmr-stak-fc9d30b56a2f4171e8437444fc4f9d1f21b8a386.zip
xmr-stak-fc9d30b56a2f4171e8437444fc4f9d1f21b8a386.tar.gz
Update FAQ.md
Add info about sysctl.conf so that the settings are preserved.
Diffstat (limited to 'doc')
-rw-r--r--doc/FAQ.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/FAQ.md b/doc/FAQ.md
index 23507f2..0a4367c 100644
--- a/doc/FAQ.md
+++ b/doc/FAQ.md
@@ -40,13 +40,18 @@ Download and install this [runtime package](https://go.microsoft.com/fwlink/?Lin
## Error: MEMORY ALLOC FAILED: mmap failed
-On Linux you will need to configure large page support `sudo sysctl -w vm.nr_hugepages=128` and increase your
-ulimit -l. To do this you need to add following lines to /etc/security/limits.conf:
+On Linux you will need to configure large page support and increase your ulimit -l.
+
+To set large page support, add the following lines to /etc/sysctl.conf:
+
+ vm.nr_hugepages=128
+
+To increase the ulimit, add following lines to /etc/security/limits.conf:
* soft memlock 262144
* hard memlock 262144
-Save file. You WILL need to log out and log back in for these settings to take affect on your user (no need to reboot, just relogin in your session).
+You WILL need to log out and log back in for these settings to take affect on your user (no need to reboot, just relogin in your session).
You can also do it Windows-style and simply run-as-root, but this is NOT recommended for security reasons.
OpenPOWER on IntegriCloud