Searched refs:rlimit_as (Results 1 – 1 of 1) sorted by relevance
136 struct rlimit rlimit_as; in xen_map_cache_init() local153 rlimit_as.rlim_cur = RLIM_INFINITY; in xen_map_cache_init()154 rlimit_as.rlim_max = RLIM_INFINITY; in xen_map_cache_init()157 getrlimit(RLIMIT_AS, &rlimit_as); in xen_map_cache_init()158 rlimit_as.rlim_cur = rlimit_as.rlim_max; in xen_map_cache_init()160 if (rlimit_as.rlim_max != RLIM_INFINITY) { in xen_map_cache_init()164 if (rlimit_as.rlim_max < MCACHE_MAX_SIZE + NON_MCACHE_MEMORY_SIZE) { in xen_map_cache_init()165 max_mcache_size = rlimit_as.rlim_max - NON_MCACHE_MEMORY_SIZE; in xen_map_cache_init()183 setrlimit(RLIMIT_AS, &rlimit_as); in xen_map_cache_init()