{"id":32226,"date":"2022-05-01T23:09:28","date_gmt":"2022-05-01T21:09:28","guid":{"rendered":"https:\/\/www.linuxboxen.dk\/?p=32226"},"modified":"2022-05-01T23:09:28","modified_gmt":"2022-05-01T21:09:28","slug":"find-ram-stoerrelse-samt-type","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=32226","title":{"rendered":"Find ram st\u00f8rrelse samt type."},"content":{"rendered":"<p>Hvordan ser du informationer om RAM-hastighed og -type (line DDR eller DDR2 eller DDR3 eller DDR4) uden at \u00e5bne min computer t\u00e6nker du ? Jeg skal k\u00f8be RAM, og jeg skal kende den n\u00f8jagtige hastighed og type installeret. Hvordan finder jeg ud af ram-information fra en shell-prompt? Hvordan kan jeg tjekke ram hastighed i Linux?<\/p>\n<p>Du skal bruge biosdecode kommandolinje v\u00e6rkt\u00f8jet. Dmidecode er et v\u00e6rkt\u00f8j eller dumpning af en computers DMI (nogle siger SMBIOS) tabelindhold i et menneskeligt l\u00e6sbart format.<\/p>\n<p><span id=\"more-1518\"><\/span>Du skal bruge <a href=\"https:\/\/www.linuxboxen.dk\/dmidecode\/\">biosdecode<\/a> kommandoen. Dmidecode er et v\u00e6rkt\u00f8j til at f\u00e5 informationer om din maskine hardware info DMI (nogle kalder det for SMBIOS).<\/p>\n<div>\n<h2>Linux check af ram hastighed samt type.<\/h2>\n<\/div>\n<div>\n<p>Proceduren er f\u00f8lgende:<\/p>\n<\/div>\n<div>\n<ol>\n<li>\u00c5ben en terminal og login.<\/li>\n<li>Skriv \u201c<kbd>sudo dmidecode --type 17<\/kbd>\u201d komandoen.<\/li>\n<li>Se efter \u201c<strong>Type:<\/strong>\u201d linjen samt for ram \u201c<strong>Speed:<\/strong>\u201d<\/li>\n<\/ol>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-32236 alignnone\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/uploads\/2022\/05\/welcome-ram-speed-linux.webp\" alt=\"\" width=\"599\" height=\"443\" \/><\/p>\n<p>Lad og lidt mere detaljer om kommandoen.<\/p>\n<\/div>\n<div>\n<h2>Installation<\/h2>\n<\/div>\n<div>\n<p>Brug <a title=\"apt Command Examples for Ubuntu\/Debian for new users\" href=\"https:\/\/www.linuxboxen.dk\/apt-kommandoen\/\">apt command<\/a>\/<a title=\"Ubuntu\/Debian Linux apt-get package management cheat sheet\" href=\"https:\/\/www.linuxboxen.dk\/apt-kommandoen\/\">apt-get command<\/a> for at installere dmidecode p\u00e5 Debian eller Ubuntu Linux:<br \/>\n<code>sudo apt install dmidecode<\/code><br \/>\nFedora Linux bruger, skriv denne kommando.<br \/>\n<code>sudo dnf install dmidecode<\/code><br \/>\nCentOS\/RHEL\/Oracle Linux bruger, k\u00f8r denne kommando<a title=\"How to use yum command on CentOS\/RHEL\" href=\"https:\/\/www.cyberciti.biz\/faq\/rhel-centos-fedora-linux-yum-command-howto\/\"> yum command<\/a>:<br \/>\n<code>sudo yum install dmidecode<\/code><\/p>\n<\/div>\n<div>\n<p>For at se ram hastighed og type p\u00e5 Linux.<\/p>\n<\/div>\n<div>\n<p>\u00c5ben en shell og skriv:<br \/>\n<code>$ sudo dmidecode --type 17<\/code><br \/>\nEller<br \/>\n<code>$ sudo dmidecode --type 17 | more<\/code><br \/>\nOutput:<\/p>\n<\/div>\n<div>\n<pre># dmidecode 3.1\nGetting SMBIOS data from sysfs.\nSMBIOS 2.6 present.\n\nHandle 0x0027, DMI type 17, 28 bytes\nMemory Device\n\tArray Handle: 0x0024\n\tError Information Handle: No Error\n\tTotal Width: 64 bits\n\tData Width: 64 bits\n\tSize: 4096 MB\n\tForm Factor: DIMM\n\tSet: None\n\tLocator: DIMM0\n\tBank Locator: BANK0\n\tType: DDR3\n\tType Detail: Synchronous\n\tSpeed: 1333 MT\/s\n\tManufacturer: Kingston     \n\tSerial Number: 5E2EFD0\n\tAsset Tag: AssetTagNum0\n\tPart Number: 9905471-009.A00LF \n\tRank: 2\n\nHandle 0x002A, DMI type 17, 28 bytes\nMemory Device\n\tArray Handle: 0x0024\n\tError Information Handle: No Error\n\tTotal Width: 64 bits\n\tData Width: 64 bits\n\tSize: 4096 MB\n\tForm Factor: DIMM\n\tSet: None\n\tLocator: DIMM1\n\tBank Locator: BANK1\n\tType: DDR3\n\tType Detail: Synchronous\n\tSpeed: 1333 MT\/s\n\tManufacturer: Corsair      \n\tSerial Number: 0000000\n\tAsset Tag: AssetTagNum1\n\tPart Number: CMX8GX3M2A1600C9  \n\tRank: 2\n\n<\/pre>\n<\/div>\n<div>\n<div class=\"google-auto-placed ap_container\"><\/div>\n<\/div>\n<div>\n<p>Du kan jo bruge grep med speed som argument som vist her (se <a href=\"https:\/\/www.linuxboxen.dk\/grep\/\">grep<\/a> kopmmandoen) og skip alt andet info syntax:<\/p>\n<\/div>\n<div>\n<div class=\"wp-geshi-highlight-wrap5\">\n<div class=\"wp-geshi-highlight-wrap4\">\n<div class=\"wp-geshi-highlight-wrap3\">\n<div class=\"wp-geshi-highlight-wrap2\">\n<div class=\"wp-geshi-highlight-wrap\">\n<div class=\"wp-geshi-highlight\">\n<div class=\"bash\">\n<pre class=\"de1\"><span class=\"kw2\">$ sudo<\/span> dmidecode <span class=\"re5\">-t<\/span> memory <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> <span class=\"re5\">-i<\/span> speed\n$ dmidecode <span class=\"re5\">--type<\/span> <span class=\"nu0\">17<\/span>  <span class=\"sy0\">|<\/span> <span class=\"kw2\">grep<\/span> <span class=\"re5\">-i<\/span> speed<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<p>Efter grep:<\/p>\n<\/div>\n<div>\n<pre>\tSpeed: 1333 MT\/s\n\tSpeed: 1333 MT\/s\n<\/pre>\n<\/div>\n<div>\n<h2>Sig hej til lshw<\/h2>\n<\/div>\n<div>\n<p>Do kan f\u00e5 samme info med\u00a0 denne kommando:<br \/>\n<code>$ sudo lshw -short -C memory<\/code><br \/>\nOutput:<\/p>\n<\/div>\n<div>\n<pre>H\/W path             Device      Class          Description\n===========================================================\n\/0\/0                             memory         64KiB BIOS\n\/0\/4\/5                           memory         256KiB L1 cache\n\/0\/4\/6                           memory         1MiB L2 cache\n\/0\/4\/7                           memory         8MiB L3 cache\n\/0\/24                            memory         16GiB System Memory\n\/0\/24\/0                          memory         4GiB DIMM DDR3 Synchronous 1333 MHz (0,8 ns)\n\/0\/24\/1                          memory         4GiB DIMM DDR3 Synchronous 1333 MHz (0,8 ns)\n\/0\/24\/2                          memory         4GiB DIMM DDR3 Synchronous 1333 MHz (0,8 ns)\n\/0\/24\/3                          memory         4GiB DIMM DDR3 Synchronous 1333 MHz (0,8 ns)<\/pre>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_32226\" class=\"pvc_stats all  \" data-element-id=\"32226\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hvordan ser du informationer om RAM-hastighed og -type (line DDR eller DDR2 eller DDR3 eller DDR4) uden at \u00e5bne min computer t\u00e6nker du ? Jeg skal k\u00f8be RAM, og jeg skal kende den n\u00f8jagtige hastighed og type installeret. Hvordan finder jeg ud af ram-information fra en shell-prompt? Hvordan kan jeg tjekke ram hastighed i Linux? [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_32226\" class=\"pvc_stats all  \" data-element-id=\"32226\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[2,6],"tags":[],"class_list":["post-32226","post","type-post","status-publish","format-standard","hentry","category-tips","category-danskshell"],"a3_pvc":{"activated":true,"total_views":16,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/32226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32226"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/32226\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}