What is difference in the output of swap -l and swap memory shown in top?Solaris swap allocation with mlocked...
PCB design using code instead of clicking a mouse?
If the Moon were impacted by a suitably sized meteor, how long would it take to impact the Earth?
Efficiently finding furthest two nodes in a graph
Should I intervene when a colleague in a different department makes students run laps as part of their grade?
Raindrops in Python
Complaints from (junior) developers against solution architects: how can we show the benefits of our work and improve relationships?
How to choose using Collection<Id> rather than Collection<String>, or the opposite?
Can a US President, after impeachment and removal, be re-elected or re-appointed?
Spider-Man and Fantastic 4 crossover comic with Double Identity Scene
Prepare a user to perform an action before proceeding to the next step
Patio gate not at right angle to the house
What is the highest achievable score in Catan
What are the cons of stateless password generators?
Why tantalum for the Hayabusa bullets?
Can machine learning learn a function like finding maximum from a list?
Why did I lose on time with 3 pawns vs Knight. Shouldn't it be a draw?
Correct word for a little toy that always stands up?
Solve equation using Mathematica
What force enables us to walk? Friction or normal reaction?
Should students have access to past exams or an exam bank?
Are all French verb conjugation tenses and moods practical and efficient?
When encrypting twice with two separate keys, can a single key decrypt both steps?
Should 2FA be enabled on service accounts?
How to foreshadow to avoid a 'deus ex machina'-construction
What is difference in the output of swap -l and swap memory shown in top?
Solaris swap allocation with mlocked shared memoryIs swap an anachronism?free / top difference. Does free show virtual memory?What does SWAP mean in top?Difference between top and ps outputWhat is the difference between the output of TOP command and Oprofile?What is the difference between MAC OS X “Virtual Memory” and Linux/Unix Swap?difference between inactive and free memory in output of FreeBSD top utility?Is the memory percentage shown in 'top' the actual memory used?What's the difference between /tmp and /swap and /system/volatile in Solaris 11
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am really puzzled to understand the output of swap -l
, swap -s
and memory usages reflected by top
command.
Hence I am not able to finalize that how much SWAP, how much physical memory are used, and how much are free and whether I have to raise memory addition request to sysadmin or not?
Below are the output from my system:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 33554424 **33554424**
$ swap -s
total: 23539804k bytes allocated + 1608016k reserved = **25147820k** used, **10397840k** available
$ prtconf |grep -i Memory
Memory size: 49144 Megabytes
$ top -d 2 -n 2
load averages: 1.36, 1.39, 1.40 19:07:42
120 processes: 118 sleeping, 1 stopped, 1 on cpu
Memory: 48G real, **1411M** free, 24G swap in use, **10G** swap free
Below are the uname and memstat details.
Does it mean we should not look into top at all? And report memory usages in the basis of memstat only?
why swap -l and swap -s are not havign similar stat?
bash-3.2$ uname -a
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
=================Memstat======================
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 1602713 6260 13%
ZFS File Data 4345496 16974 35%
Anon 4974599 19432 40%
Exec and libs 32588 127 0%
Page cache 948627 3705 8%
Free (cachelist) 972 3 0%
Free (freelist) 673589 2631 5%
Total 12578584 49135
Physical 12250367 47852
Please help me to undestand.
solaris swap top
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am really puzzled to understand the output of swap -l
, swap -s
and memory usages reflected by top
command.
Hence I am not able to finalize that how much SWAP, how much physical memory are used, and how much are free and whether I have to raise memory addition request to sysadmin or not?
Below are the output from my system:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 33554424 **33554424**
$ swap -s
total: 23539804k bytes allocated + 1608016k reserved = **25147820k** used, **10397840k** available
$ prtconf |grep -i Memory
Memory size: 49144 Megabytes
$ top -d 2 -n 2
load averages: 1.36, 1.39, 1.40 19:07:42
120 processes: 118 sleeping, 1 stopped, 1 on cpu
Memory: 48G real, **1411M** free, 24G swap in use, **10G** swap free
Below are the uname and memstat details.
Does it mean we should not look into top at all? And report memory usages in the basis of memstat only?
why swap -l and swap -s are not havign similar stat?
bash-3.2$ uname -a
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
=================Memstat======================
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 1602713 6260 13%
ZFS File Data 4345496 16974 35%
Anon 4974599 19432 40%
Exec and libs 32588 127 0%
Page cache 948627 3705 8%
Free (cachelist) 972 3 0%
Free (freelist) 673589 2631 5%
Total 12578584 49135
Physical 12250367 47852
Please help me to undestand.
solaris swap top
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?
– DopeGhoti
Oct 21 '16 at 18:25
add a comment |
I am really puzzled to understand the output of swap -l
, swap -s
and memory usages reflected by top
command.
Hence I am not able to finalize that how much SWAP, how much physical memory are used, and how much are free and whether I have to raise memory addition request to sysadmin or not?
Below are the output from my system:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 33554424 **33554424**
$ swap -s
total: 23539804k bytes allocated + 1608016k reserved = **25147820k** used, **10397840k** available
$ prtconf |grep -i Memory
Memory size: 49144 Megabytes
$ top -d 2 -n 2
load averages: 1.36, 1.39, 1.40 19:07:42
120 processes: 118 sleeping, 1 stopped, 1 on cpu
Memory: 48G real, **1411M** free, 24G swap in use, **10G** swap free
Below are the uname and memstat details.
Does it mean we should not look into top at all? And report memory usages in the basis of memstat only?
why swap -l and swap -s are not havign similar stat?
bash-3.2$ uname -a
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
=================Memstat======================
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 1602713 6260 13%
ZFS File Data 4345496 16974 35%
Anon 4974599 19432 40%
Exec and libs 32588 127 0%
Page cache 948627 3705 8%
Free (cachelist) 972 3 0%
Free (freelist) 673589 2631 5%
Total 12578584 49135
Physical 12250367 47852
Please help me to undestand.
solaris swap top
I am really puzzled to understand the output of swap -l
, swap -s
and memory usages reflected by top
command.
Hence I am not able to finalize that how much SWAP, how much physical memory are used, and how much are free and whether I have to raise memory addition request to sysadmin or not?
Below are the output from my system:
$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 181,1 8 33554424 **33554424**
$ swap -s
total: 23539804k bytes allocated + 1608016k reserved = **25147820k** used, **10397840k** available
$ prtconf |grep -i Memory
Memory size: 49144 Megabytes
$ top -d 2 -n 2
load averages: 1.36, 1.39, 1.40 19:07:42
120 processes: 118 sleeping, 1 stopped, 1 on cpu
Memory: 48G real, **1411M** free, 24G swap in use, **10G** swap free
Below are the uname and memstat details.
Does it mean we should not look into top at all? And report memory usages in the basis of memstat only?
why swap -l and swap -s are not havign similar stat?
bash-3.2$ uname -a
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
=================Memstat======================
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 1602713 6260 13%
ZFS File Data 4345496 16974 35%
Anon 4974599 19432 40%
Exec and libs 32588 127 0%
Page cache 948627 3705 8%
Free (cachelist) 972 3 0%
Free (freelist) 673589 2631 5%
Total 12578584 49135
Physical 12250367 47852
Please help me to undestand.
solaris swap top
solaris swap top
edited Oct 25 '16 at 10:44
Amit Srivastava
asked Oct 21 '16 at 11:14
Amit SrivastavaAmit Srivastava
62 bronze badges
62 bronze badges
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 23 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?
– DopeGhoti
Oct 21 '16 at 18:25
add a comment |
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?
– DopeGhoti
Oct 21 '16 at 18:25
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.
1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?– DopeGhoti
Oct 21 '16 at 18:25
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.
1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?– DopeGhoti
Oct 21 '16 at 18:25
add a comment |
1 Answer
1
active
oldest
votes
As the tag is Solaris I assume you are running Solaris.
As a ex-Solaris admin, I really do not like to have top installed as it is misleading when reporting swap usage vs memory usage. Solaris uses the concept of virtual memory that mixes swap and memory. Although you have a swap device, swap might be allocated in memory if there is plenty available. If you trully want to find out exactly how much swap your system is using it will be a time-consuming job. This is possible by using pmap -x on each process and check the swap part.
If you are running a single application on the system then your sys admin should be able to execute echo "::memstat"|mdb -l. This will provide the current memory status and I expect they should have some monitoring in place checks the memory.
Ifyou applicaton is not the only inthe server and it is running under a specific user id you can do ps -u to provide how much it is consuming.
Hoep this helps
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
add a comment |
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
});
}
});
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%2f317929%2fwhat-is-difference-in-the-output-of-swap-l-and-swap-memory-shown-in-top%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As the tag is Solaris I assume you are running Solaris.
As a ex-Solaris admin, I really do not like to have top installed as it is misleading when reporting swap usage vs memory usage. Solaris uses the concept of virtual memory that mixes swap and memory. Although you have a swap device, swap might be allocated in memory if there is plenty available. If you trully want to find out exactly how much swap your system is using it will be a time-consuming job. This is possible by using pmap -x on each process and check the swap part.
If you are running a single application on the system then your sys admin should be able to execute echo "::memstat"|mdb -l. This will provide the current memory status and I expect they should have some monitoring in place checks the memory.
Ifyou applicaton is not the only inthe server and it is running under a specific user id you can do ps -u to provide how much it is consuming.
Hoep this helps
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
add a comment |
As the tag is Solaris I assume you are running Solaris.
As a ex-Solaris admin, I really do not like to have top installed as it is misleading when reporting swap usage vs memory usage. Solaris uses the concept of virtual memory that mixes swap and memory. Although you have a swap device, swap might be allocated in memory if there is plenty available. If you trully want to find out exactly how much swap your system is using it will be a time-consuming job. This is possible by using pmap -x on each process and check the swap part.
If you are running a single application on the system then your sys admin should be able to execute echo "::memstat"|mdb -l. This will provide the current memory status and I expect they should have some monitoring in place checks the memory.
Ifyou applicaton is not the only inthe server and it is running under a specific user id you can do ps -u to provide how much it is consuming.
Hoep this helps
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
add a comment |
As the tag is Solaris I assume you are running Solaris.
As a ex-Solaris admin, I really do not like to have top installed as it is misleading when reporting swap usage vs memory usage. Solaris uses the concept of virtual memory that mixes swap and memory. Although you have a swap device, swap might be allocated in memory if there is plenty available. If you trully want to find out exactly how much swap your system is using it will be a time-consuming job. This is possible by using pmap -x on each process and check the swap part.
If you are running a single application on the system then your sys admin should be able to execute echo "::memstat"|mdb -l. This will provide the current memory status and I expect they should have some monitoring in place checks the memory.
Ifyou applicaton is not the only inthe server and it is running under a specific user id you can do ps -u to provide how much it is consuming.
Hoep this helps
As the tag is Solaris I assume you are running Solaris.
As a ex-Solaris admin, I really do not like to have top installed as it is misleading when reporting swap usage vs memory usage. Solaris uses the concept of virtual memory that mixes swap and memory. Although you have a swap device, swap might be allocated in memory if there is plenty available. If you trully want to find out exactly how much swap your system is using it will be a time-consuming job. This is possible by using pmap -x on each process and check the swap part.
If you are running a single application on the system then your sys admin should be able to execute echo "::memstat"|mdb -l. This will provide the current memory status and I expect they should have some monitoring in place checks the memory.
Ifyou applicaton is not the only inthe server and it is running under a specific user id you can do ps -u to provide how much it is consuming.
Hoep this helps
answered Oct 23 '16 at 20:28
BitsOfNixBitsOfNix
4,3032 gold badges19 silver badges33 bronze badges
4,3032 gold badges19 silver badges33 bronze badges
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
add a comment |
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
SunOS l28sdp1a 5.10 Generic_150401-03 i86pc i386 i86pc
– Amit Srivastava
Oct 25 '16 at 10:41
add a comment |
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%2f317929%2fwhat-is-difference-in-the-output-of-swap-l-and-swap-memory-shown-in-top%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
Blocks != (kilo)bytes. And for the human-readable tallies (e. g.
1411M
), it depends on whether the author of the tool is dividing Kilobytes by 1,000 or 1,024. Is one megabyte 1,024 bytes * 1,024; or 1,024 bytes * 1,000; or just 1,000,000 bytes? Is a Gigabyte 1,024 bytes * ( 1,024 * 1,024 ); or 1,024b * (1,024 * 1,000); or 1024b * (1,000 * 1,000); or just 1,000,000,000 bytes?– DopeGhoti
Oct 21 '16 at 18:25