xforty / vagrant-drupal

Template repo for a new drupal project built on top of a vagrant vm.
Other
46 stars 11 forks source link

Set default vm memory size to 512MB #38

Closed dkingofpa closed 12 years ago

dkingofpa commented 12 years ago

512MB should be more than enough for most drupal projects. If more is needed, the individual project can decide to bump up the memory size.

dkingofpa commented 12 years ago

Committed to develop branch.

dkingofpa commented 12 years ago

Changing the memory for the vm was a bad assumption on my part. Looking further into it, I believe we need to set the vm to 1024 to avoid swapping. I committed the change.

Right after a vagrant up when vm memory set to 512MB:

vagrant@ubuntu-10:/srv/www$ free -m
             total       used       free     shared    buffers     cached
Mem:           493        486          7          0          1         16
-/+ buffers/cache:        468         25
Swap:          471        262        209

Right after a vagrant up when vm memory set to 1024MB:

vagrant@ubuntu-10:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           999        764        234          0         50        510
-/+ buffers/cache:        203        796
Swap:          471          0        471