How to enumerate memory used and reserved by kernel and drivers
How can lift be less than thrust that is less than weight?
How large would a mega structure have to be to host 1 billion people indefinitely?
Helping ease my back pain by studying 13 hours everyday , even weekends
Does Doppler effect happen instantly?
Do I need a shock-proof watch for cycling?
Intuition for the role of diffeomorphisms
Story about hunting giant lizards for hides on privately owned planet
LWC - Local Dev - How can I run the local server on HTTPS?
Do I have to explain the mechanical superiority of the player-character within the fiction of the game?
Confusion over 220 and 230 volt outlets
What's currently blocking the construction of the wall between Mexico and the US?
Cut the gold chain
How to maintain a closed environment for one person for a long period of time
Trainee keeps passing deadlines for independent learning
Why does using different ArrayList constructors cause a different growth rate of the internal array?
How do I farm creepers for XP without them exploding?
Number of solutions mod p and Betti numbers
Why does the Saturn V have standalone inter-stage rings?
Music theory behind A chord in the key of G
Does a vocal melody have any rhythmic responsibility to the underlying arrangement in pop music?
UK - Working without a contract. I resign and guy wants to sue me
Designing a magic-compatible polearm
Why tighten down in a criss-cross pattern?
Loss of power when I remove item from the outlet
How to enumerate memory used and reserved by kernel and drivers
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am running two VMs (Ubuntu 18.04), both with 0.5 GiB of memory. One is on AWS and one is on Azure. I found that despite both systems having 512 MiB of memory, the AWS system has 479 MiB of usable memory:
~$ free --mebi
total used free shared buff/cache available
Mem: 479 131 17 1 330 334
Swap: 0 0 0
and the Azure system only has 392 MiB:
~$ free --mebi
total used free shared buff/cache available
Mem: 392 289 28 2 74 89
Swap: 0 0 0
The biggest difference I can see between these two systems is that the Azure system reserves far more memory at boot:
AWS:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 467376K/523892K available (12300K kernel code, 2394K rwdata, 3924K rodata, 2376K init, 2376K bss, 56516K reserved, 0K cma-reserved)
Azure:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 376860K/523832K available (14348K kernel code, 2578K rwdata, 4252K rodata, 2320K init, 2296K bss, 146972K reserved, 0K cma-reserved)
Is there a way I can enumerate the memory used and reserved by each driver, kernel module, and the kernel itself? Or more broadly, does anyone know exactly why the Azure VM uses more memory?
memory
New contributor
add a comment |
I am running two VMs (Ubuntu 18.04), both with 0.5 GiB of memory. One is on AWS and one is on Azure. I found that despite both systems having 512 MiB of memory, the AWS system has 479 MiB of usable memory:
~$ free --mebi
total used free shared buff/cache available
Mem: 479 131 17 1 330 334
Swap: 0 0 0
and the Azure system only has 392 MiB:
~$ free --mebi
total used free shared buff/cache available
Mem: 392 289 28 2 74 89
Swap: 0 0 0
The biggest difference I can see between these two systems is that the Azure system reserves far more memory at boot:
AWS:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 467376K/523892K available (12300K kernel code, 2394K rwdata, 3924K rodata, 2376K init, 2376K bss, 56516K reserved, 0K cma-reserved)
Azure:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 376860K/523832K available (14348K kernel code, 2578K rwdata, 4252K rodata, 2320K init, 2296K bss, 146972K reserved, 0K cma-reserved)
Is there a way I can enumerate the memory used and reserved by each driver, kernel module, and the kernel itself? Or more broadly, does anyone know exactly why the Azure VM uses more memory?
memory
New contributor
add a comment |
I am running two VMs (Ubuntu 18.04), both with 0.5 GiB of memory. One is on AWS and one is on Azure. I found that despite both systems having 512 MiB of memory, the AWS system has 479 MiB of usable memory:
~$ free --mebi
total used free shared buff/cache available
Mem: 479 131 17 1 330 334
Swap: 0 0 0
and the Azure system only has 392 MiB:
~$ free --mebi
total used free shared buff/cache available
Mem: 392 289 28 2 74 89
Swap: 0 0 0
The biggest difference I can see between these two systems is that the Azure system reserves far more memory at boot:
AWS:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 467376K/523892K available (12300K kernel code, 2394K rwdata, 3924K rodata, 2376K init, 2376K bss, 56516K reserved, 0K cma-reserved)
Azure:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 376860K/523832K available (14348K kernel code, 2578K rwdata, 4252K rodata, 2320K init, 2296K bss, 146972K reserved, 0K cma-reserved)
Is there a way I can enumerate the memory used and reserved by each driver, kernel module, and the kernel itself? Or more broadly, does anyone know exactly why the Azure VM uses more memory?
memory
New contributor
I am running two VMs (Ubuntu 18.04), both with 0.5 GiB of memory. One is on AWS and one is on Azure. I found that despite both systems having 512 MiB of memory, the AWS system has 479 MiB of usable memory:
~$ free --mebi
total used free shared buff/cache available
Mem: 479 131 17 1 330 334
Swap: 0 0 0
and the Azure system only has 392 MiB:
~$ free --mebi
total used free shared buff/cache available
Mem: 392 289 28 2 74 89
Swap: 0 0 0
The biggest difference I can see between these two systems is that the Azure system reserves far more memory at boot:
AWS:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 467376K/523892K available (12300K kernel code, 2394K rwdata, 3924K rodata, 2376K init, 2376K bss, 56516K reserved, 0K cma-reserved)
Azure:
~$ dmesg | grep "Memory"
[ 0.000000] Memory: 376860K/523832K available (14348K kernel code, 2578K rwdata, 4252K rodata, 2320K init, 2296K bss, 146972K reserved, 0K cma-reserved)
Is there a way I can enumerate the memory used and reserved by each driver, kernel module, and the kernel itself? Or more broadly, does anyone know exactly why the Azure VM uses more memory?
memory
memory
New contributor
New contributor
New contributor
asked 1 min ago
jdgregsonjdgregson
1012
1012
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
jdgregson is a new contributor. Be nice, and check out our Code of Conduct.
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%2funix.stackexchange.com%2fquestions%2f525761%2fhow-to-enumerate-memory-used-and-reserved-by-kernel-and-drivers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
jdgregson is a new contributor. Be nice, and check out our Code of Conduct.
jdgregson is a new contributor. Be nice, and check out our Code of Conduct.
jdgregson is a new contributor. Be nice, and check out our Code of Conduct.
jdgregson is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f525761%2fhow-to-enumerate-memory-used-and-reserved-by-kernel-and-drivers%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