PS shows different RSS value from Pmap and SmemGetting information about a process' memory usage from...

Is a suit against a University Dorm for changing policies on a whim likely to succeed (USA)?

Does deswegen have another meaning than "that is why"?

Some Prime Peerage

Is there a real-world mythological counterpart to WoW's "kill your gods for power" theme?

What jurisdiction do Scottish courts have over the Westminster parliament?

Output a Super Mario Image

What are uses of the byte after BRK instruction on 6502?

If I want an interpretable model, are there methods other than Linear Regression?

"Literally" Vs "In the true sense of the word"

POSIX compatible way to get user name associated with a user ID

Is there any way to land a rover on the Moon without using any thrusters?

Is "you will become a subject matter expert" code for "you'll be working on your own 100% of the time"?

How do I say "quirky" in German without sounding derogatory?

Double it your way

why car dealer is insisting on loan v/s cash

What is my breathable atmosphere composed of?

How major are these paintwork & rust problems?

Where to disclose a zero day vulnerability

Why did it become so much more expensive to start a university?

Parallel resistance in electric circuits

Bash, import output from command as command

I asked for a graduate student position from a professor. He replied "welcome". What does that mean?

What officially disallows US presidents from driving?

A simple problem about Rule



PS shows different RSS value from Pmap and Smem


Getting information about a process' memory usage from /proc/pid/smapsNeed explanation on Resident Set Size/Virtual SizeDoes free() unmap the memory of a process?glibc malloc() uses mmap() for small blocks of memory allocation?private memory calculated by pmap, a combination of virtual memory size and resident memory size?CRON Job To Execute Command On Low MemoryMemory usage of a given process (using Linux proc filesystem)Why read-only memory mapped regions have dirty pages?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I want to get the memory consumption by a process. I am using RSS parameter to determine it.



I am getting same RSS value when I am using pmap -xx pid and with smem tool.
But when I am using ps v pid to get the RSS then it is showing different value.



I know for pmap and smem they use /proc/pid/smaps file to get RSS value but I don't have idea about ps tool.
What are the basis of this calculation in ps tool and which is correct ps or pmap and smem










share|improve this question







New contributor



Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0















    I want to get the memory consumption by a process. I am using RSS parameter to determine it.



    I am getting same RSS value when I am using pmap -xx pid and with smem tool.
    But when I am using ps v pid to get the RSS then it is showing different value.



    I know for pmap and smem they use /proc/pid/smaps file to get RSS value but I don't have idea about ps tool.
    What are the basis of this calculation in ps tool and which is correct ps or pmap and smem










    share|improve this question







    New contributor



    Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0












      0








      0








      I want to get the memory consumption by a process. I am using RSS parameter to determine it.



      I am getting same RSS value when I am using pmap -xx pid and with smem tool.
      But when I am using ps v pid to get the RSS then it is showing different value.



      I know for pmap and smem they use /proc/pid/smaps file to get RSS value but I don't have idea about ps tool.
      What are the basis of this calculation in ps tool and which is correct ps or pmap and smem










      share|improve this question







      New contributor



      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I want to get the memory consumption by a process. I am using RSS parameter to determine it.



      I am getting same RSS value when I am using pmap -xx pid and with smem tool.
      But when I am using ps v pid to get the RSS then it is showing different value.



      I know for pmap and smem they use /proc/pid/smaps file to get RSS value but I don't have idea about ps tool.
      What are the basis of this calculation in ps tool and which is correct ps or pmap and smem







      linux memory ps pmap






      share|improve this question







      New contributor



      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 13 mins ago









      Mohit RanawatMohit Ranawat

      1




      1




      New contributor



      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Mohit Ranawat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          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/4.0/"u003ecc by-sa 4.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
          });


          }
          });







          Mohit Ranawat is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded
















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541521%2fps-shows-different-rss-value-from-pmap-and-smem%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









          Mohit Ranawat is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded

















          Mohit Ranawat is a new contributor. Be nice, and check out our Code of Conduct.













          Mohit Ranawat is a new contributor. Be nice, and check out our Code of Conduct.












          Mohit Ranawat 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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f541521%2fps-shows-different-rss-value-from-pmap-and-smem%23new-answer', 'question_page');
          }
          );

          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







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...