Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2307

cf-server high RSS usage on illumos (Solaris)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-serverd
    • Labels:
      None

      Description

      Spawned this ticket from #7525. Info provided by Brian Benett, for cf-serverd running for a few days:

      ps output
      <pre>
      USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND
      root 11270 0.0 1.0 166068 158500 ? S Mar 06 17:32 /var/cfengine/bin/cf-serverd
      </pre>

      Output instrumented by @libumem@ and provided by the @mdb@ tool:
      <pre>
      domino:~] mdb /var/cfengine/bin/cf-serverd ./core.11270
      Loading modules: [ libumem.so.1 libc.so.1 ld.so.1 ]
      > ::findleaks
      CACHE LEAKED BUFFER CALLER
      0000000000442028 78563 000000000051f660 ?
      0000000000444028 1 00000000005c2160 ?
      000000000044e028 21 000000000047d040 ?
      ------------------------------------------------------------------------
      Total 78585 buffers, 3866608 bytes
      > 0000000000442028::whatis
      442028 is allocated from umem_cache vmem arena
      > 000000000051f660::whatis
      51f660 is allocated from umem_alloc_48
      And here's a partial output from ::umasstat
      > ::umastat
      cache buf buf buf buf memory alloc alloc
      name size in use in ptc total in use succeed fail
      ------------------------- ------ ------- ------- ------- ------- --------- -----
      umem_alloc_48 48 323024 1 323484 15.0M 5977812 0
      </pre>

      Call stack from another cf-serverd instance:
      <pre>
      > ::umausers umem_alloc_640
      100073600 bytes for 156365 allocations with data size 640:
      libumem.so.1`umem_cache_alloc_debug+0xfd
      libumem.so.1`umem_cache_alloc+0xb3
      libumem.so.1`umem_alloc+0x64
      libumem.so.1`umem_malloc+0x3f
      libcrypto.so.1.0.0`CRYPTO_malloc+0x62
      libcrypto.so.1.0.0`ERR_get_state+0xc6
      libcrypto.so.1.0.0`ERR_clear_error+0xe
      libssl.so.1.0.0`ssl23_accept+0x34
      ServerTLSSessionEstablish+0x7a
      HandleConnection+0x358
      libc.so.1`_thrp_setup+0x8a
      libc.so.1`_lwp_start
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel