1. 04 3月, 2020 17 次提交
  2. 27 2月, 2020 1 次提交
    • P
      daemon: set default memlock limit for systemd service · b379fee1
      Pavel Hrdina 提交于
      The default memlock limit is 64k which is not enough to start a single
      VM. The requirements for one VM are 12k, 8k for eBPF map and 4k for eBPF
      program, however, it fails to create eBPF map and program with 64k limit.
      By testing I figured out that the minimal limit is 80k to start a single
      VM with functional eBPF and if I add 12k I can start another one.
      
      This leads into following calculation:
      
      80k as memlock limit worked to start a VM with eBPF which means there
      is 68k of lock memory that I was not able to figure out what was using
      it.  So to get a number for 4096 VMs:
      
              68 + 12 * 4096 = 49220
      
      If we round it up we will get 64M of memory lock limit to support 4096
      VMs with default map size which can hold 64 entries for devices.
      
      This should be good enough as a sane default and users can change it if
      the need to.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1807090Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      b379fee1
  3. 26 2月, 2020 4 次提交
  4. 25 2月, 2020 2 次提交
  5. 24 2月, 2020 2 次提交
  6. 23 2月, 2020 12 次提交
  7. 21 2月, 2020 2 次提交