Administrare server open source

Platforma de hosting cu software liber, gratuit, open source.

Comentariile sunt închise pentru FreeBSD – informatii despre procesor

In FreeBSD pentru a afla mai multe informatii despre procesor putem folosi una din urmatoarele doua metode:

[root@Server ~]# grep -i cpu /var/run/dmesg.boot
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2790.72-MHz 686-class CPU)
Logical CPUs per core: 2
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 6
cpu3 (AP): APIC ID: 7
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
cpu2: ACPI CPU on acpi0
cpu3: ACPI CPU on acpi0
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
[root@Server ~]#

In cazul de fata am cautat in fisierul /var/run/dmesg.boot, care e updatat la fiecare restartare, informatiile despre procesor.

A doua metoda ar fi sa folosim sysctl pentru a afla ceva mai multe detalii:

[root@Server ~]# sysctl -a | grep -i cpu
kern.threads.virtual_cpu: 4
kern.ccpu: 1948
kern.sched.ipiwakeup.onecpu: 0
kern.smp.cpus: 4
kern.smp.maxcpus: 16
debug.cpufreq.verbose: 0
debug.cpufreq.lowest: 0
debug.kdb.stop_cpus: 1
debug.PMAP1changedcpu: 10099
hw.model: Intel(R) Xeon(TM) CPU 2.80GHz
hw.ncpu: 4
hw.acpi.cpu.cx_supported: C1/0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%
machdep.cpu_idle_hlt: 1
machdep.hlt_cpus: 10
machdep.hlt_logical_cpus: 0
machdep.logical_cpus_mask: 10
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.2.%desc: ACPI CPU
dev.cpu.2.%driver: cpu
dev.cpu.2.%location: handle=_PR_.CPU2
dev.cpu.2.%pnpinfo: _HID=none _UID=0
dev.cpu.2.%parent: acpi0
dev.cpu.3.%desc: ACPI CPU
dev.cpu.3.%driver: cpu
dev.cpu.3.%location: handle=_PR_.CPU3
dev.cpu.3.%pnpinfo: _HID=none _UID=0
dev.cpu.3.%parent: acpi0
[root@Server ~]#

Dupa cum se poate vedea a doua varianta ne da mult mai multe informatii ceea ce e util in unele cazuri – Ex. scripturi de detectare a configuratiei sistemului.

Linux

Comments are closed.