BSD, CPU, RAM, etc

Desde el terminal:

  • CPU Info:

    #sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
    hw.machine: amd64
    hw.model: Intel(R) Atom(TM) CPU D525   @ 1.80GHz
    hw.ncpu: 4
    hw.machine_arch: amd64

  • CPU Temperatura:

    #sysctl dev.cpu | grep temperature
    dev.cpu.3.temperature: 42.0C
    dev.cpu.1.temperature: 43.0C
    dev.cpu.2.temperature: 42.0C
    dev.cpu.0.temperature: 44.0C

  • RAM:

    #sysctl hw | egrep 'hw.(phys|user|real)'
    hw.physmem: 2097270784
    hw.usermem: 1729941504
    hw.realmem: 2147483648
    #grep memory /var/run/dmesg.boot
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory
    real memory  = 2147483648 (2048 MB)
    avail memory = 2031947776 (1937 MB)
    agp0: aperture size is 256M, detected 8188k stolen memory

  • RAM, script:

Descarga, solo la primera vez:

#curl -O https://raw.githubusercontent.com/ocochard/myscripts/master/FreeBSD/freebsd-memory.sh
Ejecutar:
#sh freebsd-memory.sh
SYSTEM MEMORY INFORMATION:
mem_wire:         367579136 (    350MB) [ 17%] Wired: disabled for paging out
mem_active:  +     15933440 (     15MB) [  0%] Active: recently referenced
mem_inactive:+    220573696 (    210MB) [ 10%] Inactive: recently not referenced
mem_cache:   +            0 (      0MB) [  0%] Cached: almost avail. for allocation
mem_free:    +   1433530368 (   1367MB) [ 70%] Free: fully available for allocation
mem_gap_vm:  +      4796416 (      4MB) [  0%] Memory gap: UNKNOWN
______________ ____________ ___________ ______
mem_all:     =   2042413056 (   1947MB) [100%] Total real memory managed
mem_gap_sys: +     54857728 (     52MB)        Memory gap: Kernel?!
______________ ____________ ___________
mem_phys:    =   2097270784 (   2000MB)        Total real memory available
mem_gap_hw:  +     50212864 (     47MB)        Memory gap: Segment Mappings?!
______________ ____________ ___________
mem_hw:      =   2147483648 (   2048MB)        Total real memory installed

SYSTEM MEMORY SUMMARY:
mem_used:         493379584 (    470MB) [ 22%] Logically used memory
mem_avail:   +   1654104064 (   1577MB) [ 77%] Logically available memory
______________ ____________ __________ _______
mem_total:   =   2147483648 (   2048MB) [100%] Logically total memory