Move sysctl params to separate file
Simplifies installation step
This commit is contained in:
@@ -59,31 +59,15 @@ Preliminary Mininet Installation/Configuration Notes
|
||||
upon, and an example provided, in the future.)
|
||||
|
||||
- For scalable configurations, you might need to increase some of your
|
||||
kernel limits. For example, you could add something like the following
|
||||
to /etc/sysctl.conf (modified as necessary for your desired
|
||||
kernel limits. Sample params are in sysctl_addon, which can be appended to
|
||||
/etc/sysctl.conf (and modified as necessary for your desired
|
||||
configuration):
|
||||
|
||||
# Mininet: Increase open file limit
|
||||
fs.file-max = 100000
|
||||
|
||||
# Mininet: increase network buffer space
|
||||
net.core.wmem_max = 16777216
|
||||
net.core.rmem_max = 16777216
|
||||
net.ipv4.tcp_rmem = 10240 87380 16777216
|
||||
net.ipv4.tcp_rmem = 10240 87380 16777216
|
||||
net.core.netdev_max_backlog = 5000
|
||||
|
||||
# Mininet: increase arp cache size
|
||||
net.ipv4.neigh.default.gc_thresh1 = 4096
|
||||
net.ipv4.neigh.default.gc_thresh2 = 8192
|
||||
net.ipv4.neigh.default.gc_thresh3 = 16384
|
||||
|
||||
# Mininet: increase routing table size
|
||||
net.ipv4.route.max_size=32768
|
||||
sudo su -c "cat sysctl_addon >> /etc/sysctl.conf"
|
||||
|
||||
To save the config change, run:
|
||||
|
||||
sysctl -p
|
||||
sudo sysctl -p
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# Mininet: Increase open file limit
|
||||
fs.file-max = 100000
|
||||
|
||||
# Mininet: increase network buffer space
|
||||
net.core.wmem_max = 16777216
|
||||
net.core.rmem_max = 16777216
|
||||
net.ipv4.tcp_rmem = 10240 87380 16777216
|
||||
net.ipv4.tcp_rmem = 10240 87380 16777216
|
||||
net.core.netdev_max_backlog = 5000
|
||||
|
||||
# Mininet: increase arp cache size
|
||||
net.ipv4.neigh.default.gc_thresh1 = 4096
|
||||
net.ipv4.neigh.default.gc_thresh2 = 8192
|
||||
net.ipv4.neigh.default.gc_thresh3 = 16384
|
||||
|
||||
# Mininet: increase routing table size
|
||||
net.ipv4.route.max_size=32768
|
||||
Reference in New Issue
Block a user