commit | ee8fd47b7f7107fa9e83755e3f08f5fa3f78d943 | [log] [tgz] |
---|---|---|
author | Sergii Golovatiuk <sgolovatiuk@mirantis.com> | Thu Jun 08 12:14:58 2017 +0200 |
committer | Sergii Golovatiuk <sgolovatiuk@mirantis.com> | Thu Jun 08 12:48:36 2017 +0200 |
tree | efc76cef22afd80de462cd5a9a9b1b6ac05f634b | |
parent | 1358141f0cdf14ac3e228c775a52d22f24b3ac99 [diff] |
Clean up cache before insmod vrouter According to [1] vrouter uses kmalloc. This means there should be a 300MB of contiguous memory block. Dropping cache is official recommendation for Juniper according to [2]. That increases a chance to have such chunk. It's very important for compute nodes with small amount of RAM or nodes with a lot of allocated resources for other purposes (ctl + ntw) combination for instance. [1] https://github.com/Juniper/contrail-vrouter/blob/master/linux/vrouter_mod.c#L111-L119 [2] https://github.com/Juniper/contrail-controller/wiki/Vrouter-Module-Parameters Change-Id: Ieff1e6cd7aa90ea2dbc66384e7f4df35a5d666ca Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>