关于网络核心的设置: net.core.netdev_budget = 300 net.core.somaxconn = 128 net.core.xfrm_larval_drop = 0 net.core.xfrm_acq_expires = 30 net.core.xfrm_aevent_rseqth = 2 net.core.xfrm_aevent_etime = 10 net.core.optmem_max = 20480 net.core.message_burst = 10 net.core.message_cost = 5
net.core.netdev_max_backlog = 1000 net.core.dev_weight = 64
net.core.rmem_default = 126976 net.core.wmem_default = 126976 net.core.rmem_max = 131071 net.core.wmem_max = 131071
vm的相关设置:
vm.flush_mmap_pages = 1 vm.pagecache = 100 vm.min_slab_ratio = 5
vm.min_unmapped_ratio = 1 vm.zone_reclaim_mode = 0
vm.swap_token_timeout = 300 0 vm.legacy_va_layout = 0 vm.vfs_cache_pressure = 100 vm.block_dump = 0 vm.laptop_mode = 0
vm.max_map_count = 65536 vm.percpu_pagelist_fraction = 0 vm.min_free_kbytes = 8116 vm.drop_caches = 0
vm.lowmem_reserve_ratio = 256 256 vm.hugetlb_shm_group = 0 vm.nr_hugepages = 0 vm.swappiness = 60
vm.nr_pdflush_threads = 2
vm.dirty_expire_centisecs = 2999 vm.dirty_writeback_centisecs = 499 vm.mmap_min_addr = 65536 vm.dirty_ratio = 40
vm.dirty_background_ratio = 10
32 13
vm.page-cluster = 3
vm.overcommit_ratio = 50 vm.panic_on_oom = 0
vm.overcommit_memory = 0
内核的相关参数设置: kernel.vsyscall64 = 1
kernel.max_lock_depth = 1024 kernel.compat-log = 1
kernel.softlockup_thresh = 10 kernel.acpi_video_flags = 0 kernel.randomize_va_space = 1 kernel.bootloader_type = 113
kernel.panic_on_unrecovered_nmi = 0 kernel.unknown_nmi_panic = 0 kernel.ngroups_max = 65536 kernel.printk_ratelimit_burst = 10 kernel.printk_ratelimit = 5 kernel.panic_on_oops = 1 kernel.pid_max = 32768 kernel.overflowgid = 65534 kernel.overflowuid = 65534 kernel.pty.nr = 2
kernel.pty.max = 4096
kernel.random.uuid = 1091ca37-3ca0-4f4a-b2ba-573b6b5e7330 kernel.random.boot_id = 3ba0c400-71cd-4026-986f-6a4da9dd72e2 kernel.random.write_wakeup_threshold = 128 kernel.random.read_wakeup_threshold = 64 kernel.random.entropy_avail = 2490 kernel.random.poolsize = 4096 kernel.threads-max = 81920 kernel.cad_pid = 1 kernel.sysrq = 0
kernel.sem = 250 32000 32 128 kernel.msgmnb = 65536 kernel.msgmni = 16 kernel.msgmax = 65536 kernel.shmmni = 4096
kernel.shmall = 4294967296 kernel.shmmax = 68719476736 kernel.acct = 4 2 30 kernel.hotplug =
kernel.modprobe = /sbin/modprobe
14
kernel.printk = 6 4 1 7 kernel.ctrl-alt-del = 0 kernel.real-root-dev = 0 kernel.cap-bound = -257 kernel.tainted = 0
kernel.core_pattern = core kernel.core_uses_pid = 1 kernel.print-fatal-signals = 0 kernel.exec-shield = 1 kernel.panic = 0
kernel.domainname = (none)
kernel.hostname = server150.8264.com
kernel.version = #1 SMP Tue Jun 10 18:51:06 EDT 2008 kernel.osrelease = 2.6.18-92.el5 kernel.ostype = Linux
kernel.sched_interactive = 2
文件系统相关的设置:
fs.mqueue.msgsize_max = 8192 fs.mqueue.msg_max = 10 fs.mqueue.queues_max = 256 fs.quota.warnings = 1 fs.quota.syncs = 20 fs.quota.free_dquots = 0
fs.quota.allocated_dquots = 0 fs.quota.cache_hits = 0 fs.quota.writes = 0 fs.quota.reads = 0 fs.quota.drops = 0 fs.quota.lookups = 0 fs.suid_dumpable = 0
fs.inotify.max_queued_events = 16384 fs.inotify.max_user_watches = 8192 fs.inotify.max_user_instances = 128 fs.aio-max-nr = 65536 fs.aio-nr = 0
fs.lease-break-time = 45 fs.dir-notify-enable = 1 fs.leases-enable = 1 fs.overflowgid = 65534 fs.overflowuid = 65534
fs.dentry-state = 1428009 1410590 45 0 0 fs.file-max = 344068
15
0 fs.file-nr = 510 0 344068
fs.inode-state = 1573433 146883 0 0 0 0 0 fs.inode-nr = 1573433 146883 fs.binfmt_misc.status = enabled
16