How to check RAM size?
What is the command to find the RAM size in computer? I want to see result in MB.
ram
add a comment |
What is the command to find the RAM size in computer? I want to see result in MB.
ram
add a comment |
What is the command to find the RAM size in computer? I want to see result in MB.
ram
What is the command to find the RAM size in computer? I want to see result in MB.
ram
ram
edited 3 hours ago
today
1085
1085
asked Mar 31 '17 at 18:34
KonradDosKonradDos
4111511
4111511
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
From a terminal you should be able to use:
free -m
From man
page:
-m
,--mebi
Display the amount of memory in mebibytes.
--mega
Display the amount of memory in megabytes. Implies--si
.
Note: A kilobyte (kB) is 1000 Bytes.
add a comment |
Open terminal.
Run "free
" to see RAM information in KB.
Run "free -m
" to see RAM information in MB.
Run "free -g
" to see RAM information in GB.
add a comment |
Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.
This value (and the value shown as Total in output of free -m
on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.
To see the total amount of physical RAM installed, you can run sudo lshw -c memory
which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
add a comment |
Physical memory available in MB:
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Virtual memory available in MB:
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
..or use /proc/meminfo:
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'
To see the physical chip information, you can use dmidecode
to extract the DMI type 17 (Memory Device) tagged information:
sudo dmidecode -t 17
this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory
which give a little bit more information.
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f898941%2fhow-to-check-ram-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
From a terminal you should be able to use:
free -m
From man
page:
-m
,--mebi
Display the amount of memory in mebibytes.
--mega
Display the amount of memory in megabytes. Implies--si
.
Note: A kilobyte (kB) is 1000 Bytes.
add a comment |
From a terminal you should be able to use:
free -m
From man
page:
-m
,--mebi
Display the amount of memory in mebibytes.
--mega
Display the amount of memory in megabytes. Implies--si
.
Note: A kilobyte (kB) is 1000 Bytes.
add a comment |
From a terminal you should be able to use:
free -m
From man
page:
-m
,--mebi
Display the amount of memory in mebibytes.
--mega
Display the amount of memory in megabytes. Implies--si
.
Note: A kilobyte (kB) is 1000 Bytes.
From a terminal you should be able to use:
free -m
From man
page:
-m
,--mebi
Display the amount of memory in mebibytes.
--mega
Display the amount of memory in megabytes. Implies--si
.
Note: A kilobyte (kB) is 1000 Bytes.
edited 4 hours ago
Pablo Bianchi
2,4551530
2,4551530
answered Mar 31 '17 at 18:35
FCTWFCTW
62169
62169
add a comment |
add a comment |
Open terminal.
Run "free
" to see RAM information in KB.
Run "free -m
" to see RAM information in MB.
Run "free -g
" to see RAM information in GB.
add a comment |
Open terminal.
Run "free
" to see RAM information in KB.
Run "free -m
" to see RAM information in MB.
Run "free -g
" to see RAM information in GB.
add a comment |
Open terminal.
Run "free
" to see RAM information in KB.
Run "free -m
" to see RAM information in MB.
Run "free -g
" to see RAM information in GB.
Open terminal.
Run "free
" to see RAM information in KB.
Run "free -m
" to see RAM information in MB.
Run "free -g
" to see RAM information in GB.
edited 4 hours ago
Pablo Bianchi
2,4551530
2,4551530
answered Apr 1 '17 at 5:02
VictorVictor
37922
37922
add a comment |
add a comment |
Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.
This value (and the value shown as Total in output of free -m
on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.
To see the total amount of physical RAM installed, you can run sudo lshw -c memory
which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
add a comment |
Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.
This value (and the value shown as Total in output of free -m
on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.
To see the total amount of physical RAM installed, you can run sudo lshw -c memory
which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
add a comment |
Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.
This value (and the value shown as Total in output of free -m
on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.
To see the total amount of physical RAM installed, you can run sudo lshw -c memory
which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.
Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.
This value (and the value shown as Total in output of free -m
on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.
To see the total amount of physical RAM installed, you can run sudo lshw -c memory
which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.
answered Mar 31 '17 at 18:51
dobeydobey
32.6k33586
32.6k33586
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
add a comment |
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
1
1
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
More useful answer..!
– Riken Shah
May 27 '18 at 13:27
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
Then why was this more useful answer from 18 months ago, downvoted today?
– dobey
Nov 20 '18 at 13:29
1
1
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..
– Cranky
Nov 21 '18 at 19:54
add a comment |
Physical memory available in MB:
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Virtual memory available in MB:
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
..or use /proc/meminfo:
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'
To see the physical chip information, you can use dmidecode
to extract the DMI type 17 (Memory Device) tagged information:
sudo dmidecode -t 17
this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory
which give a little bit more information.
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
add a comment |
Physical memory available in MB:
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Virtual memory available in MB:
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
..or use /proc/meminfo:
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'
To see the physical chip information, you can use dmidecode
to extract the DMI type 17 (Memory Device) tagged information:
sudo dmidecode -t 17
this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory
which give a little bit more information.
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
add a comment |
Physical memory available in MB:
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Virtual memory available in MB:
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
..or use /proc/meminfo:
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'
To see the physical chip information, you can use dmidecode
to extract the DMI type 17 (Memory Device) tagged information:
sudo dmidecode -t 17
this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory
which give a little bit more information.
Physical memory available in MB:
echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
Virtual memory available in MB:
echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))
..or use /proc/meminfo:
grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'
To see the physical chip information, you can use dmidecode
to extract the DMI type 17 (Memory Device) tagged information:
sudo dmidecode -t 17
this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory
which give a little bit more information.
edited 3 hours ago
Pablo Bianchi
2,4551530
2,4551530
answered Mar 31 '17 at 19:15
Colin Ian KingColin Ian King
12.1k13747
12.1k13747
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
add a comment |
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
With 1024 seems to be a mebibyte (MiB), no MB.
– Pablo Bianchi
3 hours ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f898941%2fhow-to-check-ram-size%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown