unit of fMEM in /proc/lve/list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris.webz
    Junior Member
    • Mar 2021
    • 4

    #1

    unit of fMEM in /proc/lve/list

    I need to know whats the unit of integer number in column of fMEM while using `cat /proc/lve/list`
    Its number of failed visits because of lake of memory or its the total memory which was required to not getting error 500 for those visits?
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    number of memory faults.

    Comment

    • tincboy
      Junior Member
      • Dec 2019
      • 8

      #3
      Its a little strange number, because Ive sampled it with 5 minutes interval on a website which has less than 2 visits per minute, but in this intervals I can see the number is increasing by 5 to 50 counts,

      Comment

      • iseletsk
        Senior Member
        • Dec 2017
        • 1199

        #4
        1 visit can mean multiple processes started, and some processes can generate multiple memory faults.

        Comment

        • tincboy
          Junior Member
          • Dec 2019
          • 8

          #5
          Do you have any benchmark regarding each famous web application like Joomla, Prestashop , etc memory usages?

          Comment

          • iseletsk
            Senior Member
            • Dec 2017
            • 1199

            #6
            No, we never did that. Plus, it depends on plugins, 32bit vs 64bit, modules compiled into php, usage of opcode cache, etc...

            Comment

            • tincboy
              Junior Member
              • Dec 2019
              • 8

              #7
              Ive an other related to `/proc/lve/list` question,
              If I sample CPU column for an lve with interval of 60 seconds and then divide the subtract of these two samples by 60, will it give me the average usage of CPU in Hertz?

              Comment

              • iseletsk
                Senior Member
                • Dec 2017
                • 1199

                #8
                For lve version > 4 use (first digit in /proc/lve/list)
                1000000000 * procs

                where procs is the number of processors as in /proc/cpuinfo

                for lve version <= 4:
                add up all the: cpu mhz * 1024 * 1024 from /proc/cpuinfo

                Comment

                • tincboy
                  Junior Member
                  • Dec 2019
                  • 8

                  #9
                  Thanks for you explanation, but Ive trouble finding procs,
                  Its my cpuinfo, would you please let me know how many is my procs?

                  Code:
                  processor       : 7
                  
                  vendor_id       : GenuineIntel
                  
                  cpu family      : 6
                  
                  model           : 26
                  
                  model name      : Intel(R) Core(TM) i7 CPU         960  @ 3.20GHz
                  
                  stepping        : 5
                  
                  cpu MHz         : 3201.000
                  
                  cache size      : 8192 KB
                  
                  physical id     : 0
                  
                  siblings        : 8
                  
                  core id         : 3
                  
                  cpu cores       : 4
                  
                  apicid          : 7
                  
                  initial apicid  : 7
                  
                  fpu             : yes
                  
                  fpu_exception   : yes
                  
                  cpuid level     : 11
                  
                  wp              : yes
                  
                  flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
                  
                  bogomips        : 6414.45
                  
                  clflush size    : 64
                  
                  cache_alignment : 64
                  
                  address sizes   : 36 bits physical, 48 bits virtual
                  
                  power management:

                  Comment

                  • iseletsk
                    Senior Member
                    • Dec 2017
                    • 1199

                    #10
                    Procs is the total number of times processor field is in that file.

                    Comment

                    • tincboy
                      Junior Member
                      • Dec 2019
                      • 8

                      #11
                      Thanks again dear Igor for your fast response,
                      but I didn find out what you mentioned clearly.
                      Would you please specify exactly which row of that information you mean?

                      Comment

                      • iseletsk
                        Senior Member
                        • Dec 2017
                        • 1199

                        #12
                        This one.

                        processor : 7

                        Comment

                        Working...