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

vzctl set --ram and --swap flags not working as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      Operating System: RHEL/CentOS 5
      Platform: x86_64 (AMD64)

      Description

      I read about the --ram and --swap flags that were introduced in vzctl 3.0.30 on http://openvz.livejournal.com/39765.html and decided to use them to upgrade the memory for a container using the following commands:

      ----
      # vzctl set 101 --ram 6G --swap 3G --save
      # vzctl set 101 --kmemsize unlimited --dcachesize unlimited --lockedpages unlimited --save
      # vzctl restart 101
      ----

      After this running top in the container shows it has 8 GB RAM (all of the RAM available on the host node) instead of 6 GB, and 20 GB swap space (all of the swap space available on the host node) instead of 3 GB.

        Attachments

          Activity

            People

            Assignee:
            kir Kir Kolyshkin
            Reporter:
            nils@lemonbit.com Nils Breunese
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: