Linux How to view the configuration information of the machine

1、 View memory information

cat /proc/meminfo
[root@web ~]# cat /proc/meminfo
MemTotal: kB
MemFree: kB
MemAvailable: kB
Buffers: kB
Cached: kB
SwapCached: kB
Active: kB
Inactive: kB
Active(anon): kB
Inactive(anon): kB
Active(file): kB
Inactive(file): kB
Unevictable: kB
Mlocked: kB
SwapTotal: kB
SwapFree: kB
Dirty: kB
Writeback: kB
AnonPages: kB
Mapped: kB
Shmem: kB
Slab: kB
SReclaimable: kB
SUnreclaim: kB
KernelStack: kB
PageTables: kB
NFS_Unstable: kB
Bounce: kB
WritebackTmp: kB
CommitLimit: kB
Committed_AS: kB
VmallocTotal: kB
VmallocUsed: kB
VmallocChunk: kB
HardwareCorrupted: kB
AnonHugePages: kB
HugePages_Total:
HugePages_Free:
HugePages_Rsvd:
HugePages_Surp:
Hugepagesize: kB
DirectMap4k: kB
DirectMap2M: kB
DirectMap1G: kB
[root@web ~]#

Two 、 Core number calculation instructions

# Total number of cores = Physics CPU Number X Every physics CPU The number of nuclear
# General logic CPU Count = Physics CPU Number X Every physics CPU The number of nuclear X Number of hyper threads

# View physics CPU Number 
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
[root@web ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l [root@web ~]# # View each physical CPU in core The number of ( Nuclear number )
cat /proc/cpuinfo| grep "cpu cores"| uniq
[root@web ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores :
[root@web ~]# # View logic CPU The number of
cat /proc/cpuinfo| grep "processor"| wc -l
[root@web ~]# cat /proc/cpuinfo| grep "processor"| wc -l [root@web ~]#

3、 ... and 、 see CPU Information ( model )

# see CPU Information ( model )
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
[root@web ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
Intel(R) Xeon(R) CPU E5- @ .70GHz
[root@web ~]#

 

Linux How to view the configuration information of the machine

  1. linux Check the hardware information of the machine under :

    see CPU Information ( model ) # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c       8  Intel(R) Xeon(R) CPU    ...

  2. Linux System view system hardware configuration information

    1. see CPU Information # see cpu load uptime # cpu Usage rate ( No, sar be yum -y install sysstat) sar top bn1 |grep %Cpu # Every cpu Use ...

  3. [ Reprint ] linux Look at the machine cpu It's several cores

    linux Look at the machine cpu It's several cores In this paper, from ” Yingyue's blog “:http://wurhuangfeng.blog.163.com/blog/static/35178241201111235829116/ ...

  4. see PHP Configuration information

    see PHP In fact, the configuration information of is just a function . First, set up... At the root of the server phpinfo.php file . Then open the file and enter the following <?php phpinfo(); ?> After saving this file in the browser ...

  5. How to view PHP Configuration information

    1. Problem description How to use it PHP The function view PHP Configuration information 2. Problem function <?php echo phpinfo(); ?> 3. Output results phpinfo() PHP Version => ...

  6. Linux How to view changes DNS To configure

    DNS Server introduction DNS It's the computer domain name system (Domain Name System or Domain Name Service) Abbreviation , It consists of a domain name parser and a domain name server . A domain name server is a server that stores all of the ...

  7. linux Command view CPU And memory information

    How many? cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l Every cpu What are the cores ( hypothesis cpu The configuration is the same ) more /proc/cpu ...

  8. linux The next look at the machine is cpu It's several cores ( turn )

    How many? cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l Every cpu What are the cores ( hypothesis cpu The configuration is the same ) more /proc/cpu ...

  9. linux The next look at the machine is cpu It's several cores

    How many? cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l Every cpu What are the cores ( hypothesis cpu The configuration is the same ) more /proc/cpu ...

Random recommendation

  1. C# Commission of

    Before I have been writing some relatively basic C# Code , Now I've been working on the project for a while , More difficult problems , For example, the delegation and events to be discussed today , This is a C# The content of the advanced chapter . Now I will share with you what I have learned and understood these days . If you are wrong, please ...

  2. Python09 Homework ideas and source code : senior FTP Server development ( For reference only )

    senior FTP Server development One , Job requirements senior FTP Server development User encryption authentication ( complete ) Multiple users log in at the same time ( complete ) Each user has a different home directory and can only access their own home directory ( complete ) Disk quota for users , Different user quotas can be different ( complete ...

  3. postgresql in replace function

    select replace( Field name ,E'\r','') from Table name where Field name like E'%\r%';:   View the modified results , Not really modifying the database update Table name set Field name =r ...

  4. uva 542 - France &#39;98( probability )

    Topic link :uva 542 - France '98 The main idea of the topic : Yes 16 Two teams play , give 16 The name of the team , Then give 16*16 Table for ,g[i][j] Express i Team wins j The probability of the team , said 16 The probability of a team winning a championship . ...

  5. Computer Xiaobai learning software development -C# The choice statement of 、 Exception trapping , Attack programmers

    Writing code also requires reading , Love the whole stack , Love life more . Daily update original IT Programming technology and daily practical video . Our goal is : Play to the server Web Development , Understand the mobile terminal , The computer client is nothing more . Have to say ,C# This is the best language Xiaobian thinks . Its ...

  6. css3 It is allowed to break sentences in words word-wrap And how to deal with broken sentences word-break

    First of all : Browser default behavior , A few words in a line Arranged , If the last long word Too long First, move to the next line , If the length of the word is greater than the width of the parent element , It will overflow . <!doctype html> <h ...

  7. Foreign media comment on Li Kaifu's 《AI&#183; future 》: Four waves are sweeping the world

    Foreign media comment on Li Kaifu's <AI· future >: Four waves are sweeping the world https://mp.weixin.qq.com/s/oElub0QOYjOROhqN3ULUkg [ Netease intelligent information 9 month 17 Daily news ] Li Kaifu ...

  8. cxgrid Copy the value of the current column without editing It's really frustrating

    1. Self contained CTRL +C Only whole lines can be copied , I don't know if it's a version problem . 2. You can't have a grouping code  s:= G1DBView.DataController.Values[G1DBView.Controller. ...

  9. Sign in ssh Tips :ssh_exchange_identification: read: Connection reset by peer error

    vim /etc/hosts.allow add to sshd : ALL

  10. mysql Series 12 、mysql Commonly used hint

    For regular use oracle 's friends may know ,oracle Of hint There are many kinds of functions , For optimization sql Statement provides many methods . Again , stay mysql in , There are similar ones hint function . Here are some common . Force index FORCE ...