#Linux, da qualche tempo il mio #OS di default (adesso ho #debian9 con #xfce – da quando ancora in rc – la versione definitiva verrà rilasciata tra un paio di giorni), è un sistema che mi piace sempre più! Oggi, ad esempio, stavo cercando info per eventuale upgrade hardware e provavo a capire un po’ di più sulle ram installate e l’eventuale capacità massima. Da breve ricerca, ho subito trovato due comandini da terminale che danno tutte le info utili (meglio che smontarlo e cercare il manuale della mobo) xD
Capacità massima (dalla motherboard):
root@debian:/# dmidecode -t 16 # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.5 present. Handle 0x002D, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 8 GB Error Information Handle: Not Provided Number Of Devices: 4
Info sulle ram installate:
root@debian:/# dmidecode -t 17 # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.5 present. Handle 0x002F, DMI type 17, 27 bytes Memory Device Array Handle: 0x002D Error Information Handle: Not Provided Total Width: 64 bits Data Width: 72 bits Size: 2048 MB Form Factor: DIMM Set: None Locator: DIMM0 Bank Locator: BANK0 Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Manufacturer0 Serial Number: SerNum0 Asset Tag: AssetTagNum0 Part Number: PartNum0 Handle 0x0031, DMI type 17, 27 bytes Memory Device Array Handle: 0x002D Error Information Handle: Not Provided Total Width: 64 bits Data Width: 72 bits Size: 2048 MB Form Factor: DIMM Set: None Locator: DIMM1 Bank Locator: BANK1 Type: DDR2 Type Detail: Synchronous Speed: Unknown Manufacturer: Manufacturer1 Serial Number: SerNum1 Asset Tag: AssetTagNum1 Part Number: PartNum1 Handle 0x0033, DMI type 17, 27 bytes Memory Device Array Handle: 0x002D Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM2 Bank Locator: BANK2 Type: Unknown Type Detail: Unknown Speed: Unknown Manufacturer: Manufacturer2 Serial Number: SerNum2 Asset Tag: AssetTagNum2 Part Number: PartNum2 Handle 0x0035, DMI type 17, 27 bytes Memory Device Array Handle: 0x002D Error Information Handle: Not Provided Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: DIMM3 Bank Locator: BANK3 Type: Unknown Type Detail: Unknown Speed: Unknown Manufacturer: Manufacturer3 Serial Number: SerNum3 Asset Tag: AssetTagNum3 Part Number: PartNum3
Ram libera/usata:
root@debian:/# free total used free shared buff/cache available Mem: 4051200 3413844 179476 174648 457880 239932 Swap: 4190204 81532 4108672 ##### Oppure ##### root@debian:/# cat /proc/meminfo MemTotal: 4051200 kB MemFree: 111884 kB MemAvailable: 174380 kB Buffers: 16304 kB Cached: 427780 kB SwapCached: 14252 kB Active: 3030744 kB Inactive: 714556 kB Active(anon): 2884228 kB Inactive(anon): 613472 kB Active(file): 146516 kB Inactive(file): 101084 kB Unevictable: 96 kB Mlocked: 96 kB SwapTotal: 4190204 kB SwapFree: 4097268 kB Dirty: 188 kB Writeback: 0 kB AnonPages: 3287948 kB Mapped: 362120 kB Shmem: 196464 kB Slab: 78568 kB SReclaimable: 37736 kB SUnreclaim: 40832 kB KernelStack: 9232 kB PageTables: 51208 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 6215804 kB Committed_AS: 8253088 kB VmallocTotal: 34359738367 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 155392 kB DirectMap2M: 4038656 kB
Volete sapere tutto in tempo reale?
root@debian:/# top top - 19:27:27 up 1:06, 1 user, load average: 1,71, 1,45, 1,02 Tasks: 211 total, 1 running, 208 sleeping, 0 stopped, 2 zombie %Cpu(s): 5,4 us, 1,8 sy, 0,0 ni, 92,1 id, 0,7 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem : 4051200 total, 146620 free, 3497220 used, 407360 buff/cache KiB Swap: 4190204 total, 3935316 free, 254888 used. 153764 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 697 root 20 0 507292 109620 22572 S 4,3 2,7 5:47.86 Xorg 2924 lupastro 20 0 504148 22252 12064 S 3,0 0,5 0:04.29 xfce4-term+ 1007 lupastro 20 0 1817924 224820 35708 S 1,7 5,5 1:48.39 thunderbird 2853 lupastro 20 0 1215772 385748 106028 S 1,3 9,5 0:46.92 chrome 3159 lupastro 20 0 1119452 272520 60828 S 1,3 6,7 0:10.67 chrome 1955 lupastro 20 0 1389628 215112 97604 S 0,7 5,3 4:48.17 chrome 2894 lupastro 20 0 1154792 313680 84020 S 0,7 7,7 2:40.94 chrome 3152 root 20 0 45040 3160 2392 R 0,7 0,1 0:00.43 top 834 lupastro 20 0 192824 13136 8960 S 0,3 0,3 0:42.29 xfwm4 898 lupastro 20 0 423924 16968 10460 S 0,3 0,4 0:10.74 xfce4-panel 936 lupastro 20 0 173924 7184 6420 S 0,3 0,2 0:04.88 panel-19-c+ 1269 root 20 0 0 0 0 S 0,3 0,0 0:03.62 kworker/0:5 1780 lupastro 20 0 1254108 641196 11988 S 0,3 15,8 0:25.83 gimp-2.8 2131 lupastro 20 0 1548388 374960 104644 S 0,3 9,3 0:58.44 chrome 2666 root 20 0 0 0 0 S 0,3 0,0 0:02.85 kworker/u4+ 1 root 20 0 139224 2888 1748 S 0,0 0,1 0:01.06 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0,0 0,0 0:00.10 ksoftirqd/0 4 root 20 0 0 0 0 S 0,0 0,0 0:02.63 kworker/0:0 5 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:+ 7 root 20 0 0 0 0 S 0,0 0,0 0:03.14 rcu_sched 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh 9 root rt 0 0 0 0 S 0,0 0,0 0:00.00 migration/0 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-dr+ 11 root rt 0 0 0 0 S 0,0 0,0 0:00.01 watchdog/0 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1 14 root rt 0 0 0 0 S 0,0 0,0 0:00.00 watchdog/1 15 root rt 0 0 0 0 S 0,0 0,0 0:00.14 migration/1 16 root 20 0 0 0 0 S 0,0 0,0 0:00.65 ksoftirqd/1 18 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/1:+ 19 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 20 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns 21 root 20 0 0 0 0 S 0,0 0,0 0:00.00 khungtaskd 22 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper 23 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback 24 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kcompactd0 26 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd 27 root 39 19 0 0 0 S 0,0 0,0 0:00.00 khugepaged 28 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd 30 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset 31 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd 32 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 devfreq_wq
Facile, non trovate? 😀
Altri comandi utili da segnalare? Tanto da farci un articolo? Commentate 😉
Shortlink: https://wp.me/p85naD-1zc (Copia)