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

Re: [PATCH v1 0/2] domctl: Avoid taking domctl lock for certain ops used during migration


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>
  • Date: Thu, 11 Jun 2026 17:02:24 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HTZzeQW6Bg1X/5ulfZ1+fcS4tzPxkvTsofSYpu8tyDA=; b=FmaKcX/qxMvQegCNGcj/UeIzK7Rf3tyCUUmqDCCEo7U1+HpeU5HKmrRxTFzJ26eQGP8bDhOTp9a0wi+mgg8VoE4ccZw79O387CQlq4T/VkDams4C3Xqz9BSBJVWZk2nknQxuUR50/YNoVHdS3g5kIFU5CHDUQCYx3i9w2YtMqMBPmY6nbZSDkBpSgw96hO2Iya6Q/2WrCIHq9kEoRTJ72fAFPg3hT7bPy2BTA3yt+cb1921P+3cbJa5o72I8NOFtPxPZKMLdZWjvnkyi/QtgX4ql+Yth4AP/SgGsM05wIUy9oAI1QLCATifxmYugI3hJtZfh3TSxT+A3CUOlZyI8Tg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=atbPVOY/mHFyzdqwNgEG3cgdCH8gKMMmIjd7rDZ++jZqCbw4zuXePqG5V5EUiQ0TXRNq4wkEszBzb9NqP/IKk9VSCurxMzfZ5gHlhnTfh5VrcQBIsBd8gFVhzXtrIeQhRH/P8lccNvuphuOZ0BUb5yFBZNEiUTgoZS4xC/s+Pkdh+WoJhaf2vJEzeAQclMF+pRKYbQoeK3acJXsqvoAcKaCiGYGGbsGYy0tinNjV9La9CI5fkexrgwf10iSczXHNJXi/H7OOIbpGwQd5gAQGV4WxODxJckxX+dfBVVLOgcTRXx1r3Ix8dsilpqLV4lhjc0MzeNfq08sTNmey+8WG0Q==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 11 Jun 2026 16:02:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 6/11/26 3:55 PM, Jan Beulich wrote:
On 09.06.2026 17:15, Ross Lagerwall wrote:
When performing multiple migrations in parallel, the domctl lock may
become extremely contended:

* Operations like "xl vcpu-list" were observed to take in excess of 20s
   to execute.

Does "xl vcpu-list" involve ...

* The "clean" shadow op may pause the domain, restart with a
   continuation and then become blocked on the domctl lock, causing VM
   downtime in excess of 20 seconds.

These issues can be fixed by not holding the domctl for the frequently
called operations during migration.

Thanks

Ross Lagerwall (2):
   domctl: Handle XEN_DOMCTL_getpageframeinfo3 without the domctl lock

... XEN_DOMCTL_getpageframeinfo3?


No, but "xl vcpu-list" takes the domctl lock and this contends with
XEN_DOMCTL_getpageframeinfo3 and XEN_DOMCTL_shadow_op taking the domctl lock
which are called frequently by the migration process(es).

Various other operations were slow due to the domctl lock contention but "xl
vcpu-list" was the most obviously visible example.

Ross



 


Rackspace

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