add new memory types to monitor by vm.memory.size[]

XMLWordPrintable

    • Type: Patch request
    • Resolution: Fixed
    • Priority: Trivial
    • 4.0.0alpha3, 4.0 (plan)
    • Affects Version/s: 3.4.5rc1, 4.0.0alpha1
    • Component/s: Agent (G)
    • Environment:
      Linux kernel 4.15 rc4
    • Sprint 24, Sprint 25, Sprint 26
    • 1

      Submitted patch changes in src/libs/zbxsysinfo/linux/memory.c

      • reordered functions VM_MEMORY_*() to put them in the order as they are used in
        VM_MEMORY_SIZE()
      • added vm.memory.size[] key new parameters:
        vm.memory.size[active]
        vm.memory.size[anon]
        vm.memory.size[inactive]
        vm.memory.size[slabs]
      • added new function VM_MEMORY_PROC_MEMINFO() which is used to handle new vm.memory.size[] parameters
      • use VM_MEMORY_PROC_MEMINFO() to handle:
        vm.memory.size[cached]

      Please let me know if you are happy to add something like this.
      If yes I'll try to add handle more /prc/meminfo entries.

      Patch can be cleanly applied against 3.4 and trunk and probably against older branches as well.

            Assignee:
            Viktors Tjarve
            Reporter:
            Tomasz Kłoczko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: