Meaning of the swap part in the top command

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Do you know in which unit the swap column is display in the top output?



According with top documentation it is in KB, but please take a look in the below image.



enter image description here



What means g or m next to the swap value?



Thanks in advance for your kind support







share|improve this question
















  • 3




    Please do not post pictures of text. Just paste the text.
    – DopeGhoti
    Apr 2 at 16:30














up vote
0
down vote

favorite












Do you know in which unit the swap column is display in the top output?



According with top documentation it is in KB, but please take a look in the below image.



enter image description here



What means g or m next to the swap value?



Thanks in advance for your kind support







share|improve this question
















  • 3




    Please do not post pictures of text. Just paste the text.
    – DopeGhoti
    Apr 2 at 16:30












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Do you know in which unit the swap column is display in the top output?



According with top documentation it is in KB, but please take a look in the below image.



enter image description here



What means g or m next to the swap value?



Thanks in advance for your kind support







share|improve this question












Do you know in which unit the swap column is display in the top output?



According with top documentation it is in KB, but please take a look in the below image.



enter image description here



What means g or m next to the swap value?



Thanks in advance for your kind support









share|improve this question











share|improve this question




share|improve this question










asked Apr 2 at 16:25









federico

31




31







  • 3




    Please do not post pictures of text. Just paste the text.
    – DopeGhoti
    Apr 2 at 16:30












  • 3




    Please do not post pictures of text. Just paste the text.
    – DopeGhoti
    Apr 2 at 16:30







3




3




Please do not post pictures of text. Just paste the text.
– DopeGhoti
Apr 2 at 16:30




Please do not post pictures of text. Just paste the text.
– DopeGhoti
Apr 2 at 16:30










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










If you are referring to the values in the SWAP column, then g means "Gibibytes" (GiB) and m means "Mebibytes" (MiB). This is also true for the values in the header (but the letters used are upper-case).



I believe that it is the base 2-based units rather than the base 10-based units that are in use (judging from the top manual on a Linux system).




According to this ServerFault answer:




Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.




And from another answer at ServerFault:




The top tool uses a broken formula to calculate what it erroneously reports as swap space. It is in fact the result of subtracting the resident set size from the address space size. This is a boneheaded thing to do since one is a measure of virtual memory and the other is a measure of physical memory. So it's not entirely clear what the result is even a measure of at all.







share|improve this answer






















  • I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
    – federico
    Apr 2 at 16:32











  • @federico Ah, I missed that one. It's the same there.
    – Kusalananda
    Apr 2 at 16:39










  • @federico See updated answer.
    – Kusalananda
    Apr 2 at 16:46










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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435081%2fmeaning-of-the-swap-part-in-the-top-command%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










If you are referring to the values in the SWAP column, then g means "Gibibytes" (GiB) and m means "Mebibytes" (MiB). This is also true for the values in the header (but the letters used are upper-case).



I believe that it is the base 2-based units rather than the base 10-based units that are in use (judging from the top manual on a Linux system).




According to this ServerFault answer:




Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.




And from another answer at ServerFault:




The top tool uses a broken formula to calculate what it erroneously reports as swap space. It is in fact the result of subtracting the resident set size from the address space size. This is a boneheaded thing to do since one is a measure of virtual memory and the other is a measure of physical memory. So it's not entirely clear what the result is even a measure of at all.







share|improve this answer






















  • I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
    – federico
    Apr 2 at 16:32











  • @federico Ah, I missed that one. It's the same there.
    – Kusalananda
    Apr 2 at 16:39










  • @federico See updated answer.
    – Kusalananda
    Apr 2 at 16:46














up vote
2
down vote



accepted










If you are referring to the values in the SWAP column, then g means "Gibibytes" (GiB) and m means "Mebibytes" (MiB). This is also true for the values in the header (but the letters used are upper-case).



I believe that it is the base 2-based units rather than the base 10-based units that are in use (judging from the top manual on a Linux system).




According to this ServerFault answer:




Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.




And from another answer at ServerFault:




The top tool uses a broken formula to calculate what it erroneously reports as swap space. It is in fact the result of subtracting the resident set size from the address space size. This is a boneheaded thing to do since one is a measure of virtual memory and the other is a measure of physical memory. So it's not entirely clear what the result is even a measure of at all.







share|improve this answer






















  • I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
    – federico
    Apr 2 at 16:32











  • @federico Ah, I missed that one. It's the same there.
    – Kusalananda
    Apr 2 at 16:39










  • @federico See updated answer.
    – Kusalananda
    Apr 2 at 16:46












up vote
2
down vote



accepted







up vote
2
down vote



accepted






If you are referring to the values in the SWAP column, then g means "Gibibytes" (GiB) and m means "Mebibytes" (MiB). This is also true for the values in the header (but the letters used are upper-case).



I believe that it is the base 2-based units rather than the base 10-based units that are in use (judging from the top manual on a Linux system).




According to this ServerFault answer:




Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.




And from another answer at ServerFault:




The top tool uses a broken formula to calculate what it erroneously reports as swap space. It is in fact the result of subtracting the resident set size from the address space size. This is a boneheaded thing to do since one is a measure of virtual memory and the other is a measure of physical memory. So it's not entirely clear what the result is even a measure of at all.







share|improve this answer














If you are referring to the values in the SWAP column, then g means "Gibibytes" (GiB) and m means "Mebibytes" (MiB). This is also true for the values in the header (but the letters used are upper-case).



I believe that it is the base 2-based units rather than the base 10-based units that are in use (judging from the top manual on a Linux system).




According to this ServerFault answer:




Top (at least in some versions) calculates SWAP per process as VIRT - RSS instead of reporting real swap usage. Under Linux the result is a completely meaningless number.




And from another answer at ServerFault:




The top tool uses a broken formula to calculate what it erroneously reports as swap space. It is in fact the result of subtracting the resident set size from the address space size. This is a boneheaded thing to do since one is a measure of virtual memory and the other is a measure of physical memory. So it's not entirely clear what the result is even a measure of at all.








share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 2 at 16:46

























answered Apr 2 at 16:29









Kusalananda

102k13201317




102k13201317











  • I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
    – federico
    Apr 2 at 16:32











  • @federico Ah, I missed that one. It's the same there.
    – Kusalananda
    Apr 2 at 16:39










  • @federico See updated answer.
    – Kusalananda
    Apr 2 at 16:46
















  • I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
    – federico
    Apr 2 at 16:32











  • @federico Ah, I missed that one. It's the same there.
    – Kusalananda
    Apr 2 at 16:39










  • @federico See updated answer.
    – Kusalananda
    Apr 2 at 16:46















I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
– federico
Apr 2 at 16:32





I referred to the highlighted column, Swap column. In total I have 21GB swap memory, and the first process is using 57g. Could this mean 57GB of swap used?
– federico
Apr 2 at 16:32













@federico Ah, I missed that one. It's the same there.
– Kusalananda
Apr 2 at 16:39




@federico Ah, I missed that one. It's the same there.
– Kusalananda
Apr 2 at 16:39












@federico See updated answer.
– Kusalananda
Apr 2 at 16:46




@federico See updated answer.
– Kusalananda
Apr 2 at 16:46












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435081%2fmeaning-of-the-swap-part-in-the-top-command%23new-answer', 'question_page');

);

Post as a guest













































































ltYOsvyddzzAUg9Rh4Q50Ors1M5CdVzKWMxsS k,a cyND2,CvC7nLmj,MiJ Uvs1zciOuucVgwF5xtMNL9Tqw28UDL0G
lp6SMx33 9m4XZ4 hVXHdNMLVul4FFBMyr hRk,CWpd8Q5O PBpJ6kzB wSP4F wtqhcb0vLbjdgoOQgv,g,n2yl4,bD,4 bShWT

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS