خرید بک لینک

In my Vagrantfile I have the following provider defined:

Excerpt from Vagrantfile:

config.vm.provider :virtualbox do |vb|
  vb.gui = false
  vb.customize ["modifyvm", :id, "--memory", "4096"]
end

When I ru free -m within the created VM I see the following report:

             total       used       free     shared    buffers     cached
Mem:          3953        337       3615          0         18        119
-/+ buffers/cache:        199       3753
Swap:            0          0          0

Is it possible to assign swappiness when the VM is being built and provisioned?

I have tried setting vm.swappiness in /etc/sysctl.conf and restarting the VM, but I do not see any affect of adding swap space to the VM.

Why do I need swap space? I would rather not deal with swap space at all and run everything in memory. However, for some applications (the composer project for PHP, for example) are notorious for using a lot of memory under certain conditions. Without swap space I have to be very liberal with the amount of memory I throw at a VM, if I had swap space--although it might not be as efficient--I would theoretically run into fewer issues.

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 12:08

صفحه بندی