Richard Henderson <richard.hender...@linaro.org> writes:

> On 7/17/20 3:51 AM, Alex Bennée wrote:
>> +size_t qemu_get_host_physmem(void)
>> +{
>> +#ifdef _SC_PHYS_PAGES
>> +    long pages = sysconf(_SC_PHYS_PAGES);
>> +    if (pages > 0) {
>> +        return pages * qemu_real_host_page_size;
>> +    }
>> +#endif
>> +    return 0;
>> +}
>
> Is it worth examining our own RLIMIT_{AS,DATA} as well?

We don't anywhere else in the code so for now I'd say not.

>
> I suppose that's not usually what is tweaked in the example of a ram-limited
> container...
>
>
> r~


-- 
Alex Bennée

Reply via email to