1.
free -m2.
vmstat -s3.
cat /proc/meminfo4.
top5.
htopThis is a tutorial for HP-Compaq TC4400 Users on Ubuntu. Note, that I'm a total beginner with Linux, so this page will contain everything I did with my Notebook called Alice :-)
free -mvmstat -scat /proc/meminfotophtop~$ uname -a
Linux 3.13.0-74-generic #118~precise1-Ubuntu SMP Fri Dec 18 10:38:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~$ sudo dmidecode --type 16
# dmidecode 2.11
SMBIOS 2.4 present.
Handle 0x000A, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 4 GB
Error Information Handle: No Error
Number Of Devices: 2
~$ sudo dmidecode --type 19
# dmidecode 2.11
SMBIOS 2.4 present.
Handle 0x000D, DMI type 19, 15 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000FFFFFFFF
Range Size: 4 GB
Physical Array Handle: 0x000A
Partition Width: 2
~$ cat /proc/meminfo | grep "MemTotal"
MemTotal: 3460508 kB
~$ free -m
total used free shared buffers cached
Mem: 3379 2673 705 0 346 1109
-/+ buffers/cache: 1217 2161
Swap: 4881 0 4881
~$ cat /var/log/dmesg | grep "Memory"
[ 0.000000] Memory: 3439500K/3530168K available (7639K kernel code, 1140K rwdata, 3512K rodata, 1360K init, 1448K bss, 90668K reserved)
[ 15.528520] [drm] Memory usable by graphics device = 256M
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] original variable MTRRs
[ 0.000000] reg 0, base: 0GB, range: 2GB, type WB
[ 0.000000] reg 1, base: 2GB, range: 1GB, type WB
[ 0.000000] reg 2, base: 3GB, range: 256MB, type WB
[ 0.000000] reg 3, base: 3328MB, range: 128MB, type WB
[ 0.000000] reg 4, base: 64888MB, range: 8MB, type UC
[ 0.000000] reg 5, base: 4175488KB, range: 128KB, type UC
[ 0.000000] total RAM covered: 3456M
[ 0.000000] Found optimal setting for mtrr clean up
[ 0.000000] gran_size: 64K chunk_size: 1G num_reg: 3 lose cover RAM: 0G
[ 0.000000] New variable MTRRs
[ 0.000000] reg 0, base: 0GB, range: 4GB, type WB
[ 0.000000] reg 1, base: 3456MB, range: 128MB, type UC
[ 0.000000] reg 2, base: 3584MB, range: 512MB, type UC
~$ cat /proc/mtrr
reg00: base=0x000000000 ( 0MB), size= 4096MB, count=1: write-back
reg01: base=0x0d8000000 ( 3456MB), size= 128MB, count=1: uncachable
reg02: base=0x0e0000000 ( 3584MB), size= 512MB, count=1: uncachable
~$ smem -R 4G -w
Area Used Cache Noncache
firmware/hardware 733796 0 733796
kernel image 0 0 0
kernel dynamic memory 1827468 1718276 109192
userspace memory 1180160 207332 972828
free memory 452880 452880 0
~$ smem -R 3G -w
Area Used Cache Noncache
firmware/hardware 72292 0 72292
kernel image 0 0 0
kernel dynamic memory 2324328 2228148 96180
userspace memory 648196 164924 483272
free memory 100912 100912 0
~$ free -m
total used free shared buffers cached
Mem: 3001 2919 81 0 26 2164
-/+ buffers/cache: 727 2273
Swap: 4881 0 4881
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] original variable MTRRs
[ 0.000000] reg 0, base: 0GB, range: 2GB, type WB
[ 0.000000] reg 1, base: 2GB, range: 1GB, type WB
[ 0.000000] reg 2, base: 64504MB, range: 8MB, type UC
[ 0.000000] reg 3, base: 4175488KB, range: 128KB, type UC
[ 0.000000] total RAM covered: 3072M
[ 0.000000] Found optimal setting for mtrr clean up
[ 0.000000] gran_size: 64K chunk_size: 64K num_reg: 2 lose cover RAM: 0G
[ 0.000000] New variable MTRRs
[ 0.000000] reg 0, base: 0GB, range: 2GB, type WB
[ 0.000000] reg 1, base: 2GB, range: 1GB, type WB