Maximum Memory and CPU Limitations for Linux Server

 

 

grep NR_CPUS /boot/config-`uname -r`



[webdev@test apache-flume-1.8.0-bin]$ grep NR_CPUS /boot/config-`uname -r`
CONFIG_NR_CPUS=4096
You have new mail in /var/spool/mail/root

 

 

 

[root@flink ~]# ll -as /boot/
total 75240
4 dr-xr-xr-x. 4 root root 4096 Aug 4 16:37 .
4 dr-xr-xr-x. 22 root root 4096 Aug 7 09:44 ..
108 -rw-r--r--. 1 root root 108103 May 11 2016 config-2.6.32-642.el6.x86_64
108 -rw-r--r--. 1 root root 108168 Jul 12 2017 config-2.6.32-696.6.3.el6.x86_64
108 -rw-r--r-- 1 root root 108286 Jul 13 20:54 config-2.6.32-754.2.1.el6.x86_64
4 drwxr-xr-x. 3 root root 4096 Aug 24 2017 efi
4 drwxr-xr-x. 2 root root 4096 Aug 4 16:37 grub
17920 -rw-------. 1 root root 18349147 Aug 24 2017 initramfs-2.6.32-642.el6.x86_64.img
17980 -rw-------. 1 root root 18407675 Aug 24 2017 initramfs-2.6.32-696.6.3.el6.x86_64.img
18068 -rw------- 1 root root 18501316 Aug 4 16:37 initramfs-2.6.32-754.2.1.el6.x86_64.img
212 -rw-r--r--. 1 root root 215559 May 11 2016 symvers-2.6.32-642.el6.x86_64.gz
212 -rw-r--r--. 1 root root 215634 Jul 12 2017 symvers-2.6.32-696.6.3.el6.x86_64.gz
212 -rw-r--r-- 1 root root 216190 Jul 13 20:54 symvers-2.6.32-754.2.1.el6.x86_64.gz
2556 -rw-r--r--. 1 root root 2615003 May 11 2016 System.map-2.6.32-642.el6.x86_64
2564 -rw-r--r--. 1 root root 2622686 Jul 12 2017 System.map-2.6.32-696.6.3.el6.x86_64
2596 -rw-r--r-- 1 root root 2654460 Jul 13 20:54 System.map-2.6.32-754.2.1.el6.x86_64
4168 -rwxr-xr-x. 1 root root 4264528 May 11 2016 vmlinuz-2.6.32-642.el6.x86_64
4 -rw-r--r--. 1 root root 166 May 11 2016 .vmlinuz-2.6.32-642.el6.x86_64.hmac
4180 -rwxr-xr-x. 1 root root 4276528 Jul 12 2017 vmlinuz-2.6.32-696.6.3.el6.x86_64
4 -rw-r--r--. 1 root root 170 Jul 12 2017 .vmlinuz-2.6.32-696.6.3.el6.x86_64.hmac
4220 -rwxr-xr-x 1 root root 4320272 Jul 13 20:54 vmlinuz-2.6.32-754.2.1.el6.x86_64
4 -rw-r--r-- 1 root root 170 Jul 13 20:54 .vmlinuz-2.6.32-754.2.1.el6.x86_64.hmac
[root@flink ~]# more /boot/config-2.6.32-*
::::::::::::::
/boot/config-2.6.32-642.el6.x86_64
::::::::::::::
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.32-642.el6.x86_64
# Tue May 10 17:26:02 2016
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_GPIO=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_DEFAULT_IDLE=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_HAVE_CPUMASK_OF_CPU_MAP=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ZONE_DMA32=y
CONFIG_ARCH_POPULATES_NODE_MAP=y

 

posted @ 2018-08-07 09:35  papering  阅读(256)  评论(0编辑  收藏  举报