Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-5190

Add new field for CPUs to vzlist

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      Operating System: Other
      Platform: Other

      Description

      There is not a category for vzlist, so I am listing this under vzctl.

      Request for enhancement: Add a 'cpus' field name that shows the number of VCPUs assigned to containers. I.E. the value from CPUS="" in the container configuration file.

        Activity

        Hide
        kir Kir Kolyshkin added a comment - - edited

        As a workaround, for running CT on a recent kernel/vzctl try

        cat /proc/vz/fairsched/$CTID/cpu.shares

        0 means unlimited.

        Note there are many other interesting things in there

        Show
        kir Kir Kolyshkin added a comment - - edited As a workaround, for running CT on a recent kernel/vzctl try cat /proc/vz/fairsched/$CTID/cpu.shares 0 means unlimited. Note there are many other interesting things in there
        Hide
        kir Kir Kolyshkin added a comment - - edited
        Show
        kir Kir Kolyshkin added a comment - - edited Fixed in GIT http://git.openvz.org/?p=vzctl;a=commit;h=353a3feaa7ef453a69db8f8e7b010e883eecaea1 Available in vzctl-3.0.30
        Hide
        toddmueller@gmail.com Todd Mueller added a comment -

        Awsome, thank you!

        Show
        toddmueller@gmail.com Todd Mueller added a comment - Awsome, thank you!
        Hide
        sergeyb Sergey Bronnikov added a comment -

        Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.

        Show
        sergeyb Sergey Bronnikov added a comment - Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.

          People

          • Assignee:
            kir Kir Kolyshkin
            Reporter:
            toddmueller@gmail.com Todd Mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: