qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Save memory allocation in the elf loader


From: Fabien Chouteau
Subject: Re: [Qemu-devel] [PATCH] Save memory allocation in the elf loader
Date: Tue, 19 Feb 2013 17:29:47 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

On 02/19/2013 04:51 PM, Paolo Bonzini wrote:
> Il 19/02/2013 15:41, Fabien Chouteau ha scritto:
>> The current elf loader uses too much memory. For example, I have a
>> executable with a bss section of 400 MB and I set the ram size to 512
>> MB. Qemu uses about 780MB of RAM (which is fine), but there's a peak at
>> 1.6 GB during initialization (this is not fine).
>>
>> This patch fixes two things:
>>  1) do not allocate each elf program twice.
>>  2) do not allocate memory for areas that are only zeros.
>>
>> For this we need a new field in Rom: "datasize" which is the size of the
>> allocated data. If datasize is less than romsize, it means that the area
>> from datasize to romsize is filled with zeros.
> 
> You haven't CCed the only two people that likely would review your patch. :)
> 

I didn't know who involve, so I took the output of get_maintainer.pl...

Regards,

-- 
Fabien Chouteau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]