ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Can some one explain CPU shares|Weight-sum|weight

    IT Discussion
    cpu weight shares
    5
    12
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Emad RE
      Emad R
      last edited by

      hello I read this;

      https://www.ibm.com/support/knowledgecenter/en/linuxonibm/com.ibm.linux.z.ldva/ldva_c_CPU_weight.html

      and this is what I understood, lets say i have 8 core cpu

      each cpu thread is 1024 ?
      from total of 1024 *8

      what if it it was 8 core cpu dual threads = 16 threads, then the total weight is 1024 *16
      and if I give 2048 that means I have dual cores to the instance ?

      Is that correct ?

      1 Reply Last reply Reply Quote 0
      • travisdh1T
        travisdh1
        last edited by

        Why are you trying to over complicate things? While fractional CPU assignment is a possibility, any given virtualization platform will be able to give at least 1 full cpu to each virtual machine today. The only way I see that document as being helpful at all is you are actually running IBM's own CPU cores. Even then, I don't know how much reality that document actually gives too what the hardware is able to do.

        Emad RE 1 Reply Last reply Reply Quote 0
        • Emad RE
          Emad R @travisdh1
          last edited by

          @travisdh1

          DOcker uses this

          travisdh1T 1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @Emad R
            last edited by

            @emad-r said in Can some one explain CPU shares|Weight-sum|weight:

            @travisdh1

            DOcker uses this

            It might have some more bearing on the people actually writing code for containers, I'll grant them them that much. It still has nothing to do with someone actually running docker.

            Emad RE 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              It would mean the weight of two cores, but doesn'tmean two cores.

              1 Reply Last reply Reply Quote 1
              • Emad RE
                Emad R @travisdh1
                last edited by

                @travisdh1

                5_1518712089039_2018-02-15 18_27_59-Containers - fedora.kvm.raid.png 4_1518712089038_2018-02-15 18_27_56-Containers - fedora.kvm.raid.png 3_1518712089038_2018-02-15 18_27_51-Containers - fedora.kvm.raid.png 2_1518712089037_2018-02-15 18_27_44-Containers - fedora.kvm.raid.png 1_1518712089037_2018-02-15 18_27_13-Containers - fedora.kvm.raid.png 0_1518712089036_2018-02-15 18_26_52-Containers - fedora.kvm.raid.png

                travisdh1T 1 Reply Last reply Reply Quote 0
                • travisdh1T
                  travisdh1 @Emad R
                  last edited by

                  @emad-r said in Can some one explain CPU shares|Weight-sum|weight:

                  @travisdh1

                  5_1518712089039_2018-02-15 18_27_59-Containers - fedora.kvm.raid.png 4_1518712089038_2018-02-15 18_27_56-Containers - fedora.kvm.raid.png 3_1518712089038_2018-02-15 18_27_51-Containers - fedora.kvm.raid.png 2_1518712089037_2018-02-15 18_27_44-Containers - fedora.kvm.raid.png 1_1518712089037_2018-02-15 18_27_13-Containers - fedora.kvm.raid.png 0_1518712089036_2018-02-15 18_26_52-Containers - fedora.kvm.raid.png

                  Everything your showing me is making me like Docker less and less. Wasn't it supposed to simplify the sysadmin side of things so that the developers could do both jobs?

                  scottalanmillerS RomoR 2 Replies Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @travisdh1
                    last edited by

                    @travisdh1 said in Can some one explain CPU shares|Weight-sum|weight:

                    @emad-r said in Can some one explain CPU shares|Weight-sum|weight:

                    @travisdh1

                    5_1518712089039_2018-02-15 18_27_59-Containers - fedora.kvm.raid.png 4_1518712089038_2018-02-15 18_27_56-Containers - fedora.kvm.raid.png 3_1518712089038_2018-02-15 18_27_51-Containers - fedora.kvm.raid.png 2_1518712089037_2018-02-15 18_27_44-Containers - fedora.kvm.raid.png 1_1518712089037_2018-02-15 18_27_13-Containers - fedora.kvm.raid.png 0_1518712089036_2018-02-15 18_26_52-Containers - fedora.kvm.raid.png

                    Everything your showing me is making me like Docker less and less. Wasn't it supposed to simplify the sysadmin side of things so that the developers could do both jobs?

                    No, Docker isn't for system admins at all. It's just for devs (by design and intent.)

                    travisdh1T 1 Reply Last reply Reply Quote 0
                    • RomoR
                      Romo @travisdh1
                      last edited by Romo

                      It is not really needed to tinker with CPU priorities unless you really, really know what you are doing.

                      Setting CPU scheduling and priorities on docker containers is just like doing it on any other Linux process it is just tinkering with CFS scheduler which is the Linux Kernel default scheduler.

                      So basically, do you set CPU schedules, limits and priorites for any other linux process? Most probably the answer will be no because you let the kernel and its default scheduler handle things without worrying about them. But if you know what you are doing and need those kinds of kernel feature go ahead and tinker with them.

                      We just always need to remember, Docker container are not VMS

                      Edit:
                      Right from the docker documentation:
                      alt text

                      Emad RE 1 Reply Last reply Reply Quote 2
                      • momurdaM
                        momurda
                        last edited by momurda

                        You can do this same sort of thing in VMWare. In fact it is easier to see the effects here
                        0_1518717879176_fd1420ae-e0c7-48c5-8e83-49b9eb5ab0a0-image.png

                        1 Reply Last reply Reply Quote 0
                        • Emad RE
                          Emad R @Romo
                          last edited by

                          @romo said in Can some one explain CPU shares|Weight-sum|weight:

                          It is not really needed to tinker with CPU priorities unless you really, really know what you are doing.

                          Setting CPU scheduling and priorities on docker containers is just like doing it on any other Linux process it is just tinkering with CFS scheduler which is the Linux Kernel default scheduler.

                          So basically, do you set CPU schedules, limits and priorites for any other linux process? Most probably the answer will be no because you let the kernel and its default scheduler handle things without worrying about them. But if you know what you are doing and need those kinds of kernel feature go ahead and tinker with them.

                          We just always need to remember, Docker container are not VMS

                          Edit:
                          Right from the docker documentation:
                          alt text

                          got it, keep it as 1024 then.

                          1 Reply Last reply Reply Quote 0
                          • travisdh1T
                            travisdh1 @scottalanmiller
                            last edited by

                            @scottalanmiller said in Can some one explain CPU shares|Weight-sum|weight:

                            @travisdh1 said in Can some one explain CPU shares|Weight-sum|weight:

                            @emad-r said in Can some one explain CPU shares|Weight-sum|weight:

                            @travisdh1

                            5_1518712089039_2018-02-15 18_27_59-Containers - fedora.kvm.raid.png 4_1518712089038_2018-02-15 18_27_56-Containers - fedora.kvm.raid.png 3_1518712089038_2018-02-15 18_27_51-Containers - fedora.kvm.raid.png 2_1518712089037_2018-02-15 18_27_44-Containers - fedora.kvm.raid.png 1_1518712089037_2018-02-15 18_27_13-Containers - fedora.kvm.raid.png 0_1518712089036_2018-02-15 18_26_52-Containers - fedora.kvm.raid.png

                            Everything your showing me is making me like Docker less and less. Wasn't it supposed to simplify the sysadmin side of things so that the developers could do both jobs?

                            No, Docker isn't for system admins at all. It's just for devs (by design and intent.)

                            That was kinda my point.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post