Meaning of the swap part in the top command
Clash 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.
What means g or m next to the swap value?
Thanks in advance for your kind support
linux top
add a comment |Â
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.
What means g or m next to the swap value?
Thanks in advance for your kind support
linux top
3
Please do not post pictures of text. Just paste the text.
â DopeGhoti
Apr 2 at 16:30
add a comment |Â
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.
What means g or m next to the swap value?
Thanks in advance for your kind support
linux top
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.
What means g or m next to the swap value?
Thanks in advance for your kind support
linux top
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
add a comment |Â
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
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
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
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
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
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
3
Please do not post pictures of text. Just paste the text.
â DopeGhoti
Apr 2 at 16:30