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

Re: [PATCH 00/12] Arm cache coloring


  • To: Carlo Nonato <carlo.nonato@xxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 15 Sep 2022 15:29:08 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=4X3P1EpZ7AG+nMna+lOXuXgbggKAIOOVNW3TjVq8YD0=; b=jDD91aHAh+nvH6k9VyIIntJYP/Gjv0EBXHEMnEPSYhKntu2wJNWezE0wK7yF1ZYoqnl/NiVvYAdu9a604umZQWL3edcSUGjY0iw6UOxnBWR3A0CB6I3CvV1mZujXmacsHJTeb69FI+xsTuyeKs1g1fn1APPc1Oi7UGMpYnuq0m9FvnurRH77mQewCS1Iy0PeYq6nnUapJy7jbAOLJu2n8EZ4g1IV4yNH7abW3Qq4pLXS8KYC5AsBFNhEyu0CShSTWn/sjI4jHG3SJcnSXeUl0xRbM2FKMhG0XNxOdi8854sw/ET8HtH/EfSY93m6RaZDQsUjhWaqGmJ+NsWkptf42A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IbNsQSB7VVvaS7vITkyPG7v0NL2P4jq/9lWXwndYKIUJf6D7o4Cl9bWMsBtOcj3Rgub5GzoR+Ol3hVWfZ2t6Qo4q/+zTt3eXt5+TCJNFdYFd0SfQc1iOc86+0Ick15Bq9OzNoZ/Lf6R7XxyavrImDrdyqHSHcLPFfgEjRCs7Vbw4mh7BF/XoNMFwxcdzbGwmH0Ylz4nJzsDgiEMsr+7Isjh/vy9JRYUqZ8blCEdUB3sawTMtmyL0fkoDNHNo16luKBHZSoKg/jcqauWTOphEDYPcUBsUko2mwbEPqOAgo3oqIfeVKYXDeoBnoV5yiBWypK/EfkwbBZzc8orbsSbpJQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: andrew.cooper3@xxxxxxxxxx, george.dunlap@xxxxxxxxxx, julien@xxxxxxx, stefano.stabellini@xxxxxxx, wl@xxxxxxx, marco.solieri@xxxxxxxxxx, andrea.bastoni@xxxxxxxxxxxxxxx, lucmiccio@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 15 Sep 2022 13:29:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 26.08.2022 14:50, Carlo Nonato wrote:
> Shared caches in multi-core CPU architectures represent a problem for
> predictability of memory access latency. This jeopardizes applicability
> of many Arm platform in real-time critical and mixed-criticality
> scenarios. We introduce support for cache partitioning with page
> coloring, a transparent software technique that enables isolation
> between domains and Xen, and thus avoids cache interference.
> 
> When creating a domain, a simple syntax (e.g. `0-3` or `4-11`) allows
> the user to define assignments of cache partitions ids, called colors,
> where assigning different colors guarantees no mutual eviction on cache
> will ever happen. This instructs the Xen memory allocator to provide
> the i-th color assignee only with pages that maps to color i, i.e. that
> are indexed in the i-th cache partition.
> 
> The proposed implementation supports the dom0less feature.
> The solution has been tested in several scenarios, including Xilinx Zynq
> MPSoCs.

Having looked at the non-Arm-specific parts of this I have one basic
question: Wouldn't it be possible to avoid the addition of entirely
new logic by treating the current model as just using a single color,
therefore merely becoming a special case of what you want?

Plus an advanced question: In how far does this interoperate with
static allocation, which again is (for now) an Arm-only feature?
Your reference to dom0less above doesn't cover this afaict.

Jan



 


Rackspace

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