opened
afbjorklund
username_0
Something that we discussed about the Docker VM, which allocates 2 GB RAM + 1 GB swap.

Maybe it is time to increase our default memory allocation to 4 GB, at least where available ?

Similarly, we could increase the default to 40 GB, since it will only occupy as much as used.

The idea would be to have something like computer games, "recommended" vs "minimum":

**Minimum**:
2 CPUs or more
2GB of free memory
20GB of free disk space

**Recommended**:
4 CPUs or more
4GB of free memory
40GB of free disk space

Currently we follow the recommendations from `kubeadm`, but it seems to be a bit low ?

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

Ideally this would be followed up by an analysis of where the memory is actually going...

Like monitor the memory usage over time, like we did previously with the cpu usage ?

As discussed in https://github.com/kubernetes/minikube/issues/7980#issuecomment-623096792
Increase default memory and diskimage allocation ?
issue
created
afbjorklund
username_0
We could use `vmstat` for monitoring, or write our own like we did for `iostat` ("[cstat](https://github.com/tstromberg/cstat)")

```
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  2   1536 3625936 9905112 15017912    0    0    20   125    6   16 10  3 87  0  0
 2  0   1536 3063600 9905216 15625908    0    0     9 73857 5365 36577  9  9 73  9  0
25  0   1536 3009120 9905632 15632688    0    0     0  1424 3566 12279  8  3 88  1  0
28  0   1536 2721084 9905684 15635796    0    0     0   171 5222 12392 23  4 72  0  0
20  0   1536 2715396 9906596 15641064    0    0    13  2548 7161 23262 10  6 82  3  0
 5  0   1536 2674888 9906792 15671304    0    0  2936   329 5553 18045  7  5 87  1  0
17  0   1536 2589184 9908292 15678200    0    0    33  2283 6654 19200 11  7 80  1  0
 0  0   1536 2576704 9908520 15679836    0    0     2   387 4598 12778  6  4 89  1  0
```

We might need something more advanced for KIC, since `free` will show the host.

e.g. `docker stat` https://docs.docker.com/engine/reference/commandline/stats/
comment
created
afbjorklund
username_0
Somewhat related to #3574
comment
created
afbjorklund
username_0
![memory](https://user-images.githubusercontent.com/10364051/81434989-63307300-9167-11ea-87b7-736368e38352.png)

Memory usage of "docker", from start to idle.
comment
created
medyagh
username_1
@username_0 I believe our new Auto Detect memory already does this for memory. but for disk size we have not done anything.
comment
created
medyagh
username_1
I would accept a PR that would try to allocate more disk space for VM if it is available
comment
created
medyagh
username_1
if we need disk space issue, lets create another one
comment
closed
medyagh
username_1
issue
created
afbjorklund
username_0
https://www.vagrantup.com/docs/boxes/base

----

User are free to choose whatever, using the `disk-size` config.

I will probably use 32G as a compromise, size of an SD card
Like a modest 63% size increase, from 20000M to 32768M ?

It would be more interesting to work on the _monitoring_: #3574
comment