Revert "modules: use si_mem_available() when possible"
This method produced too optimistic free memory value, which in result
led to oom killer activation. This patch restores more conservative
free memory calculation method.
This reverts commit 1e9b7a4262
.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
|
||||
static inline uint64_t env_get_free_memory(void)
|
||||
{
|
||||
return cas_get_free_mem();
|
||||
return cas_global_zone_page_state(NR_FREE_PAGES) << PAGE_SHIFT;
|
||||
}
|
||||
|
||||
static inline void *env_malloc(size_t size, int flags)
|
||||
|
Reference in New Issue
Block a user