cgroup memory.usage_in_bytes always zero for some tasksAdding entire session to a cgroupCannot set memory.memsw.limit_in_bytes in cgroup on Ubuntu server using cgmHow to delete a device parameter for a cgroup?Place all processes belonging to user in a cgroupCould not find writable mount point for cgroup hierarchy 13 while trying to create cgroupcgroup files for uninstalled softwareIs my cgroup overloaded?CGroup perm for every user in gidCgroup memory.usage_in_bytes shows incorrect value

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

Is this apparent Class Action settlement a spam message?

Is expanding the research of a group into machine learning as a PhD student risky?

Is there a problem with hiding "forgot password" until it's needed?

Proof of work - lottery approach

Customer Requests (Sometimes) Drive Me Bonkers!

Fastening aluminum fascia to wooden subfascia

Two monoidal structures and copowering

Failed to fetch jessie backports repository

Opposite of a diet

Applicability of Single Responsibility Principle

How do scammers retract money, while you can’t?

Is the destination of a commercial flight important for the pilot?

How do we know the LHC results are robust?

How can a function with a hole (removable discontinuity) equal a function with no hole?

Do all network devices need to make routing decisions, regardless of communication across networks or within a network?

For a non-Jew, is there a punishment for not observing the 7 Noahide Laws?

Why not increase contact surface when reentering the atmosphere?

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

What is the intuitive meaning of having a linear relationship between the logs of two variables?

How to check is there any negative term in a large list?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

Is exact Kanji stroke length important?



cgroup memory.usage_in_bytes always zero for some tasks


Adding entire session to a cgroupCannot set memory.memsw.limit_in_bytes in cgroup on Ubuntu server using cgmHow to delete a device parameter for a cgroup?Place all processes belonging to user in a cgroupCould not find writable mount point for cgroup hierarchy 13 while trying to create cgroupcgroup files for uninstalled softwareIs my cgroup overloaded?CGroup perm for every user in gidCgroup memory.usage_in_bytes shows incorrect value













2















I am trying to use cgroup to manage memory on a HPC cluster using torque queue manager on CentOS 6 machines. Just to test I login to a node running a job where I have:



pbs_mom(12184)─┬─sh(24312)───9809188.launchp(24339)───fcgene(24362)
├─pbs_mom(12190)
└─pbs_mom(12191)


I have cgconfig service started. I then do



# cd /cgroup/memory
# mkdir jobMOM
# cd jobMOM
# echo 12184 > tasks
# cat cgroup.procs
12184
# cat memory.usage_in_bytes
81920


I then add the other procs in the tree



# for f in 24312 12190 12191 24339 24362 ; do echo $f >> tasks ; done


But I see memory.usage actually go down



# cat memory.usage_in_bytes
49152


But the added processes are using over 18GB of memory combined



# ps -eLo pid,fname,vsize,rss | egrep '^(12184|12190|12191|24312|24339|24362)'
12184 pbs_mom 48076 27432
12184 pbs_mom 48076 27432
12184 pbs_mom 48076 27432
24312 sh 114532 1716
24339 9809188. 106132 1248
24362 fcgene 16815264 16809768


So it seems like the new tasks I added are just ignored. Anyone understand why?



When I deleted this cgroup and created a new one with just process 24339 and 24362 then I always just get 0 for memory.usage_in_bytes. Everything in memory.stat is also 0.










share|improve this question


























    2















    I am trying to use cgroup to manage memory on a HPC cluster using torque queue manager on CentOS 6 machines. Just to test I login to a node running a job where I have:



    pbs_mom(12184)─┬─sh(24312)───9809188.launchp(24339)───fcgene(24362)
    ├─pbs_mom(12190)
    └─pbs_mom(12191)


    I have cgconfig service started. I then do



    # cd /cgroup/memory
    # mkdir jobMOM
    # cd jobMOM
    # echo 12184 > tasks
    # cat cgroup.procs
    12184
    # cat memory.usage_in_bytes
    81920


    I then add the other procs in the tree



    # for f in 24312 12190 12191 24339 24362 ; do echo $f >> tasks ; done


    But I see memory.usage actually go down



    # cat memory.usage_in_bytes
    49152


    But the added processes are using over 18GB of memory combined



    # ps -eLo pid,fname,vsize,rss | egrep '^(12184|12190|12191|24312|24339|24362)'
    12184 pbs_mom 48076 27432
    12184 pbs_mom 48076 27432
    12184 pbs_mom 48076 27432
    24312 sh 114532 1716
    24339 9809188. 106132 1248
    24362 fcgene 16815264 16809768


    So it seems like the new tasks I added are just ignored. Anyone understand why?



    When I deleted this cgroup and created a new one with just process 24339 and 24362 then I always just get 0 for memory.usage_in_bytes. Everything in memory.stat is also 0.










    share|improve this question
























      2












      2








      2








      I am trying to use cgroup to manage memory on a HPC cluster using torque queue manager on CentOS 6 machines. Just to test I login to a node running a job where I have:



      pbs_mom(12184)─┬─sh(24312)───9809188.launchp(24339)───fcgene(24362)
      ├─pbs_mom(12190)
      └─pbs_mom(12191)


      I have cgconfig service started. I then do



      # cd /cgroup/memory
      # mkdir jobMOM
      # cd jobMOM
      # echo 12184 > tasks
      # cat cgroup.procs
      12184
      # cat memory.usage_in_bytes
      81920


      I then add the other procs in the tree



      # for f in 24312 12190 12191 24339 24362 ; do echo $f >> tasks ; done


      But I see memory.usage actually go down



      # cat memory.usage_in_bytes
      49152


      But the added processes are using over 18GB of memory combined



      # ps -eLo pid,fname,vsize,rss | egrep '^(12184|12190|12191|24312|24339|24362)'
      12184 pbs_mom 48076 27432
      12184 pbs_mom 48076 27432
      12184 pbs_mom 48076 27432
      24312 sh 114532 1716
      24339 9809188. 106132 1248
      24362 fcgene 16815264 16809768


      So it seems like the new tasks I added are just ignored. Anyone understand why?



      When I deleted this cgroup and created a new one with just process 24339 and 24362 then I always just get 0 for memory.usage_in_bytes. Everything in memory.stat is also 0.










      share|improve this question














      I am trying to use cgroup to manage memory on a HPC cluster using torque queue manager on CentOS 6 machines. Just to test I login to a node running a job where I have:



      pbs_mom(12184)─┬─sh(24312)───9809188.launchp(24339)───fcgene(24362)
      ├─pbs_mom(12190)
      └─pbs_mom(12191)


      I have cgconfig service started. I then do



      # cd /cgroup/memory
      # mkdir jobMOM
      # cd jobMOM
      # echo 12184 > tasks
      # cat cgroup.procs
      12184
      # cat memory.usage_in_bytes
      81920


      I then add the other procs in the tree



      # for f in 24312 12190 12191 24339 24362 ; do echo $f >> tasks ; done


      But I see memory.usage actually go down



      # cat memory.usage_in_bytes
      49152


      But the added processes are using over 18GB of memory combined



      # ps -eLo pid,fname,vsize,rss | egrep '^(12184|12190|12191|24312|24339|24362)'
      12184 pbs_mom 48076 27432
      12184 pbs_mom 48076 27432
      12184 pbs_mom 48076 27432
      24312 sh 114532 1716
      24339 9809188. 106132 1248
      24362 fcgene 16815264 16809768


      So it seems like the new tasks I added are just ignored. Anyone understand why?



      When I deleted this cgroup and created a new one with just process 24339 and 24362 then I always just get 0 for memory.usage_in_bytes. Everything in memory.stat is also 0.







      cgroups






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 23 '15 at 16:15









      rainesraines

      796




      796




















          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
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f211635%2fcgroup-memory-usage-in-bytes-always-zero-for-some-tasks%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















          draft saved

          draft discarded
















































          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%2f211635%2fcgroup-memory-usage-in-bytes-always-zero-for-some-tasks%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