UBUNTU 20.04 SERVER INFO

정규호·2024년 1월 4일

CORE & THREAD INFO

how can I check counts of Ubuntu 20.04 cpu cores and threads

To check the number of CPU cores and threads on Ubuntu 20.04, you can use the lscpu command. Open a terminal and run the following command:

$ lscpu

This command provides detailed information about the CPU architecture, cores, threads, and other relevant information. Look for the lines that mention "Core(s) per socket" and "Thread(s) per core" to determine the number of cores and threads.
Here's an example output:

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtual
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              2
Core(s) per socket:              2
Socket(s):                       1

In this example:
CPU(s) indicates the total number of logical CPUs.
Thread(s) per core indicates the number of threads per core.
Core(s) per socket indicates the number of cores per CPU socket.
In this case, there are 4 logical CPUs, each with 2 threads per core and 2 cores per socket. Adjust the values based on your specific system.

RAM

how can i check memory infos on ubuntu 20.04 lts

You can check memory information on Ubuntu 20.04 LTS using various commands. Here are a few options:

  1. Using free command:
    Open a terminal and run the following command:
free -h

This will display information about total, used, and free memory in a human-readable format (-h for human-readable).

  1. Using /proc/meminfo:
    You can also check detailed memory information by reading the /proc/meminfo file. Run the following command:
cat /proc/meminfo

This will display detailed information about various memory statistics.

  1. Using top command:
    The top command provides real-time information about system resource usage. Run the following command:
top

When top is running, you can see memory information at the top of the display.

  1. Using htop:
    If htop is not installed, you can install it using:
sudo apt-get install htop

Then, run htop:

htop

htop provides an interactive and more user-friendly interface to monitor system resources.
Choose the method that suits your needs and preferences.

profile
The Man Who Lift

0개의 댓글