show kernel variables like system | getconf -a | sort -k 1

DESCRIPTION

The getconf command displays the value of a specified configuration variable on the standard output. You can specify the configuration variable using one of the forms listed in the SYNOPSIS section. If you use the first form (system_var), getconf simply displays the value of the variable system_var. If you use the second form(path_var pathname),getconf displays the value of the variable path_var for the path name given by pathname.
getconf displays numeric values in decimal format and non-numeric values as simple strings. If the value is undefined, getconf writes the string undefined to the standard output.

The above command shows your machine architecture if it is 32 bit or 64 bit?
root@tecmint [~]# getconf LONG_BIT
32

KERNEL vairbles

# Bits occupied by primitive types
CHAR_BIT                           8
LONG_BIT                           64

# Limits of signed types
CHAR_MAX                           127
CHAR_MIN                           -128
INT_MAX                            2147483647
INT_MIN                            -2147483648
SCHAR_MAX                          127
SCHAR_MIN                          -128
SHRT_MAX                           32767
SHRT_MIN                           -32768

# Biggest values of unsigned types
UCHAR_MAX                          255
UINT_MAX                           4294967295
ULONG_MAX                          18446744073709551615
USHRT_MAX                          65535

# Size of page in RAM & virtual memory
PAGE_SIZE                          4096

# Max length of host name (so short!)
HOST_NAME_MAX                      64

# Max length of login name
LOGIN_NAME_MAX                     256

# Bits used to store file sizes
FILESIZEBITS                       64

# Libc and pthread implementation details
GNU_LIBC_VERSION                   glibc 2.19
GNU_LIBPTHREAD_VERSION             NPTL 2.19

# The most interesting values!
# Cache details of your processor!
LEVEL1_ICACHE_SIZE                 32768
LEVEL1_ICACHE_ASSOC                8
LEVEL1_ICACHE_LINESIZE             64
LEVEL1_DCACHE_SIZE                 32768
LEVEL1_DCACHE_ASSOC                8
LEVEL1_DCACHE_LINESIZE             64
LEVEL2_CACHE_SIZE                  262144
LEVEL2_CACHE_ASSOC                 8
LEVEL2_CACHE_LINESIZE              64
LEVEL3_CACHE_SIZE                  8388608
LEVEL3_CACHE_ASSOC                 16
LEVEL3_CACHE_LINESIZE              64
LEVEL4_CACHE_SIZE                  0
LEVEL4_CACHE_ASSOC                 0
LEVEL4_CACHE_LINESIZE              0

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all