1. 26 10月, 2017 1 次提交
    • C
      Increase default file handle limits for virtlogd · d7444764
      Christian Ehrhardt 提交于
      The initial assumption was ~2 files per guest, but some common setups
      like Openstack drive up to 4 files per guest.
      
      E.g. on Arm where the following XML leads to 4 file handles:
          <serial type='file'>
            <source path='/var/lib/nova/instances/7c0dcd78-.../console.log'/>
            <target port='0'/>
            <alias name='serial0'/>
          </serial>
          <console type='file'>
            <source path='/var/lib/nova/instances/7c0dcd78-.../console.log'/>
            <target type='serial' port='0'/>
            <alias name='serial0'/>
          </console>
      
      With that in mind and the target to support 4k guests by default we
      should raise the limit to 16k.
      Signed-off-by: NChristian Ehrhardt <christian.ehrhardt@canonical.com>
      d7444764
  2. 16 10月, 2017 1 次提交
  3. 16 3月, 2017 1 次提交
    • D
      Increase default file handle limits for daemons · 27cd7635
      Daniel P. Berrange 提交于
      Linux still defaults to a 1024 open file handle limit. This causes
      scalability problems for libvirtd / virtlockd / virtlogd on large
      hosts which might want > 1024 guest to be running. In fact if each
      guest needs > 1 FD, we can't even get to 500 guests. This is not
      good enough when we see machines with 100's of physical cores and
      TBs of RAM.
      
      In comparison to other memory requirements of libvirtd & related
      daemons, the resource usage associated with open file handles
      is essentially line noise. It is thus reasonable to increase the
      limits unconditionally for all installs.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      27cd7635
  4. 20 9月, 2016 1 次提交
    • A
      virtlogd: Don't stop or restart along with libvirtd · f496ce1d
      Andrea Bolognani 提交于
      Commit 839a0608 tied the lifecycle of virtlogd more
      closely to that of libvirtd. Unfortunately, while starting
      virtlogd when libvirtd is started is definitely a good idea,
      restarting virtlogd or shutting it down at any time outside
      of system poweroff is not.
      
      Revert part of that commit by removing the PartOf= lines,
      meaning that only startup requests will be propagated from
      libvirtd to virtlogd.
      
      Resolves: https://bugzilla.redhat.com/1372576
      f496ce1d
  5. 06 9月, 2016 1 次提交
    • A
      virtlogd.socket: Tie lifecycle to libvirtd.service · 839a0608
      Andrea Bolognani 提交于
      We already guarantee that virtlogd.socket is enabled/disabled
      along with libvirtd.service, but if libvirtd.service has just
      been installed and is started before rebooting, then
      virtlogd.socket will not be running and guest startup will
      fail.
      
      Add Requires=virtlogd.socket to libvirtd.service to make sure
      virtlogd.socket is always started along with libvirtd.service,
      and add Before=libvirtd.service to both virtlogd.socket and
      virtlogd.service so that virtlogd never disappears before
      libvirtd has exited.
      
      Also add PartOf=libvirtd.service to both virtlogd.socket and
      virtlogd.service, so that virtlogd can be shut down when not
      needed.
      
      Resolves: https://bugzilla.redhat.com/1372576
      839a0608
  6. 26 11月, 2015 1 次提交