wolf@server1:~$ cat /proc/meminfo
MemTotal: 32898820 kB
MemFree: 31325304 kB
MemAvailable: 32143432 kB
Buffers: 304048 kB
Cached: 615288 kB
SwapCached: 0 kB
Active: 601776 kB
Inactive: 483692 kB
Active(anon): 167408 kB
Inactive(anon): 8824 kB
Active(file): 434368 kB
Inactive(file): 474868 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 31998972 kB
SwapFree: 31998972 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 166160 kB
Mapped: 117552 kB
Shmem: 10104 kB
Slab: 192860 kB
SReclaimable: 155668 kB
SUnreclaim: 37192 kB
KernelStack: 7376 kB
PageTables: 15396 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 48448380 kB
Committed_AS: 1225812 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 188456 kB
VmallocChunk: 34359541760 kB
HardwareCorrupted: 0 kB
AnonHugePages: 47104 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 136504 kB
DirectMap2M: 33368064 kB
wolf@server1:~$ cat /etc/sysctl.conf
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
##############################################################3
# Functions previously found in netbase
#
# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1
# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1
# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
kernel.shmmax=18589934592
kernel.shmall=9194304
kernel.shmmin=4096
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.msgmni = 4096
kernel.sem = 250 256000 100 1024
kernel.printk = 4 4 1 7
kernel.maps_protect = 1
fs.inotify.max_user_watches = 524288
vm.mmap_min_addr = 65536
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 4194304
net.ipv4.tcp_rmem = 4096 4194304 4194304
net.ipv4.tcp_wmem = 98304 4194304 4194304
net.ipv4.tcp_mem = 98304 4194304 4194304
net.ipv4.tcp_window_scaling = 1
net.ipv4.ip_local_port_range = 1024 65535
vm.swappiness=0
vm.nr_hugepages=5120
vm.dirty_ratio=30
vm.dirty_writeback_centisecs=3000
vm.hugetlb_shm_group=1001
wolf@server1:~$ sudo sysctl -p
kernel.shmmax = 18589934592
kernel.shmall = 9194304
sysctl: cannot stat /proc/sys/kernel/shmmin: 没有那个文件或目录
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.msgmni = 4096
kernel.sem = 250 256000 100 1024
kernel.printk = 4 4 1 7
sysctl: cannot stat /proc/sys/kernel/maps_protect: 没有那个文件或目录
fs.inotify.max_user_watches = 524288
vm.mmap_min_addr = 65536
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 4194304
net.ipv4.tcp_rmem = 4096 4194304 4194304
net.ipv4.tcp_wmem = 98304 4194304 4194304
net.ipv4.tcp_mem = 98304 4194304 4194304
net.ipv4.tcp_window_scaling = 1
net.ipv4.ip_local_port_range = 1024 65535
vm.swappiness = 0
vm.nr_hugepages = 5120
vm.dirty_ratio = 30
vm.dirty_writeback_centisecs = 3000
vm.hugetlb_shm_group = 1001
wolf@server1:~$ cat /proc/meminfo
MemTotal: 32898820 kB
MemFree: 20839356 kB
MemAvailable: 21657492 kB
Buffers: 304056 kB
Cached: 615288 kB
SwapCached: 0 kB
Active: 601996 kB
Inactive: 483696 kB
Active(anon): 167624 kB
Inactive(anon): 8824 kB
Active(file): 434372 kB
Inactive(file): 474872 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 31998972 kB
SwapFree: 31998972 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 166352 kB
Mapped: 117552 kB
Shmem: 10104 kB
Slab: 192820 kB
SReclaimable: 155668 kB
SUnreclaim: 37152 kB
KernelStack: 7408 kB
PageTables: 15732 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 43205500 kB
Committed_AS: 1242892 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 188456 kB
VmallocChunk: 34359541760 kB
HardwareCorrupted: 0 kB
AnonHugePages: 47104 kB
HugePages_Total: 5120
HugePages_Free: 5120
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 136504 kB
DirectMap2M: 33368064 kB
wolf@server1:~$