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

Re: [PATCH 06/12] xen/common: add cache coloring allocator for domains


  • To: Julien Grall <julien@xxxxxxx>, Carlo Nonato <carlo.nonato@xxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 17 Oct 2022 11:16:27 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D6mYxFMc5KCEh5tkDNBekcfoPxP5pY6m79Nwlt66Pqs=; b=U+dvpD4/OTcFxjc3xBm9NbD4eEFHe7xp7Z/f5qK2Q6hJa5893bLCeCKCEmMgej9EsNW8+eCxjyAlTCuZ435jJoERcVfgrrxIm9J7yfbUddvcHDaEzNb93u6DgWsV7ZYOIG7wOPZ1tmQxDe6j9ICdBMGTYe3J7ufJdF+72F8kH6nK3OqTZvIUb2zmelMrdwMx6nY/a+v9JtanjcAvocIm470DqyLbW9Qhw4ab6b6zwnYnJWbAUnVQqxQZRaRALf7ILkvJ9XdCNdufFx8qQDTnr2b2AdszKJTR3ifsz6R5D+4l/YMEmt0sQNsEOuBV2EdnTzRogVEjvhXRMLkHhG2tUg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=og48GawsKTm/RFj4IiO94dHPxogyA7UYoBuYwZmEDGDAvpzhoWk6gbc006QWDH9KtYr8q7QLVrOHGlYa87r6hRAfs4NQWOe1lg3J73todZUDvf6rZQ4PYTtEoIiiE7grNCdl0cKHN5y37WEaz1ZmAIctnuy1Mym7gkwdK0c/XiSEV9dYzr94mPJ4cQG3V2HOBpRyufJcKuPku9WKS2DOubUOquid2t3IeRgnlXNdv4mKON3+YVOqiUdpIas1ryF3FfFf3AWeeEZ9Orz88v68mrWwm4vMlPtTcdvTOLc3CGtmvSJ9viJP6roFmVubT9cOMlxUIOJn/Pz0JzQ5hCoHYQ==
  • Cc: <andrew.cooper3@xxxxxxxxxx>, <george.dunlap@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <stefano.stabellini@xxxxxxx>, <wl@xxxxxxx>, <marco.solieri@xxxxxxxxxx>, <andrea.bastoni@xxxxxxxxxxxxxxx>, <lucmiccio@xxxxxxxxx>, Marco Solieri <marco.solieri@xxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 17 Oct 2022 09:16:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Julien,

On 17/10/2022 10:44, Julien Grall wrote:
> 
> 
> Hi,
> 
> On 17/10/2022 08:06, Michal Orzel wrote:
>> On 26/08/2022 14:51, Carlo Nonato wrote:
>> Apart from that, the memory coming from the buddy is of any color. Shouldn't 
>> it be that the memory
>> allocated for domains comes from colored memory of the colors assigned to 
>> them and anything else
>> should come from colors given to Xen? At the moment, the memory for e.g. 
>> allocating P2M tables comes
>> from the buddy which means it can be of any color and might cause some cache 
>> interference.
> 
> Somewhat related. IIUC what you are saying, the P2M pool will still be
> allocated from the buddy. I would expect we want to instead allocate the
> P2M pool from the same color as the domain to prevent interference when
> the TLBs are loaded. Or is the interference negligible?
> 
Good point and I agree. I do not think it is negligible.
All in all, allocating this memory from buddy which is of any color is 
incorrect.
When cache coloring is enabled, it should not be possible to allocate memory of 
any color.
If we can do this so that this memory comes from either Xen or domain colors, 
the
intereference will be reduced. When it comes to P2M tables, if the memory comes 
from
the colors assigned to a domain, there will be even less interference.


> Cheers,
> 
> --
> Julien Grall
> 

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.