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

Re: [PATCH v1] domctl: hold domctl lock while domain is destroyed


  • To: Julien Grall <julien@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 17 Sep 2021 10:41:30 +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=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=coWda/k9IouttF7c2IlLgWtAZ4QLMG93DOX9yngDXj0=; b=YNn1Lfb1AVY/e73gR2IRW1k3XzZjV/ZZungGN03VzaNp8c74LCGHHI97yVG1dRI/ZMHgrvE1Bg9stoyPSrcyT1Y2+IVxJPdDxcwGKYBjzWDJsuzsX9jpgzbwwePhE5xPCXx+JiG7EnEttBbWb1zSRFBQgMnT6DyHaSqN3cL2tGfDOHqDXaremS5lMO8WGKeFP4AL8bWqapxUWgKTd4s8MIjHEQrH5n3Fl9rmd04ZzWHoz/ynKaWEuzkGqFG2ftwq6s94ABEaV+Xk3Bc52ZIwhgqdpKDB922NlsBDrkbC7ovovtDcrQCC1oUbEsrt3JfbQmVE2TQBlkhmMuvTVtiTmg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eZycynE5HMNSuVG7PbYtlsAzlMtYJIsQAbG14TwMfl4dJW+4ozhoSnj5sKxFD1UzkAFaDo3b0Pw+/ySDtK+k3lruPArRf13/DaFwGfgCV9Gf9rOn3m4l5GYJkfuzii/k9/pJ+irWptdmNnQlX22AXI9SPkmqXLsfT3dQdPlrtiYQydBiXVHXx2OozfM9e+F+HRzcfCMBNh5GiMxp6OkfbyH0WUE0bxf8BTaLn2ETTf6E56w6TGDDDHlvSzInArf22qqRBhYhJ4onbffhKotacmUkE1WzqCV82gIBlP5YGTQt1FtN46Wrxe354mGIBXzmtNWXuQVWrogmnzMlOdoQ8A==
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Dmitry Isaikin <isaikin-dmitry@xxxxxxxxx>, <rjstone@xxxxxxxxxxxx>, <raphning@xxxxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>
  • Delivery-date: Fri, 17 Sep 2021 09:41:50 +0000
  • Ironport-data: A9a23:vD8hkq7qtSsdgwCbgd67TgxRtGzBchMFZxGqfqrLsTDasY5as4F+v mFMWG6Gb66JZTT3fNp1a42zoRhQu5HSn4NjGwBuri4xHi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuV3zyIQUBUjclkfJKlYAL/En03FVIMpBsJ00o5wrZo29Ew2LBVPivW0 T/Mi5yHULOa82Yc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pGTU2FFFPqQ5E8IwKPb 72rIIdVXI/u10xF5tuNyt4Xe6CRK1LYFVDmZnF+A8BOjvXez8CbP2lS2Pc0MC9qZzu1c99Zm f9jpI6LTx8VP4qPoc4XYyRbTDxlIvgTkFPHCSDXXc27ykTHdz3nwul0DVFwNoodkgp1KTgQr 7pCcmlLN03dwbLtqF64YrAEasALBc/nJo4A/FpnyinUF60OSpHfWaTao9Rf2V/cg+gTR6eDN 5RBNVKDajz4MjsVEVUrGq5hv/uNv0HEYQJ1inia8P9fD2/7k1UqjemF3MDuUseRWcxfk0Kcp 2TH12f0GBcXMJqY0zXt2m2orv/Cm2X8Qo16PLyn9NZ6jVuL3GsRBRYKE1yhrpGRiFO6Wt9ZA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0D6ykzQyRU0g5DgrB6N WVcPkFoIbmDomVzj89ZUmHwQwxMCXV1IKAqJ4flQIEBc3SVaw==
  • Ironport-hdrordr: A9a23:WizkAqGBrJUdZQTmpLqFYZHXdLJyesId70hD6qkvc3Jom52j+P xGws526faVslYssHFJo6HmBEDyewKiyXcT2/huAV7CZnibhILMFuBfBOTZskbd8kHFh5dgPO JbAtVD4b7LfCtHZKTBkXGF+r8bqbHtms3Y5pa9vgVQpENRGsddBm9Ce3am+yZNNWx77PQCZf 6hD4Z81kCdkSN9VLXLOpBJZZmNm/T70LbdJTIWDR8u7weDyRuu9b7BChCdmjMTSSlGz7sO+X XM11WR3NTjj9iLjjvnk0PD5ZVfn9XsjvNFGcy3k8AQbhHhkByhaohNU6CL+Bo1vOaswlA3l8 SkmWZvA+1Dr1fqOk2lqxrk3AftlB4o9n/Z0FedxUDupMToLQhKQfZptMZ8SF/0+kAgtNZz3O ZgxGSCradaChvGgWDU+8XIfwsCrDv3nVMS1cooy1BPW4oXb7Fc6aYF+llOLZsGFCXmrKg6De hVCt3G7vo+SyLYU5nghBgq/DWQZAV1Iv/fKXJy/PB9kgIm3EyR9nFogfD2xRw7hcsAo5ot3Z WODk0nrsAXcie6BZgNctvpevHHflAldyi8eF56EW6XYZ3vBEi93KIfwI9Fqd1CK6Z4gKfbpv z6IRplXCgJChnTNfE=
  • Ironport-sdr: gHxsnH2r3isRuinxo6JZV91/7czAZLK2BwTds1M6iRd+oUrzAZyE41iEw7kmS0VQs2BmB2H+xA IRUKNuHvF2cSl2tlE3GlFRtqizZlLhAqjRnVjF5sK1rOMlfbzaP/4xAPCE5Ur4/2napEjtVVlK MT4sQK/khulBbcbr3bKdiv2LQF+arnoms6cjCcJJJT6U4LMQoKqK8v4xbq3wzw6IZmiw65BAeO Rs76vL8cH82a6Cw31LZak9+mZwPpTRA5NahjFhxwmC0HUgboqH+RCytc50XC9pLBvdhF+k7vjI 2cEIFPO6POK75iNOy++7V+1O
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17/09/2021 10:27, Julien Grall wrote:
> Hi,
> 
> (+ some AWS folks)
> 
> On 17/09/2021 11:17, Jan Beulich wrote:
>> On 16.09.2021 19:52, Andrew Cooper wrote:
>>> On 16/09/2021 13:30, Jan Beulich wrote:
>>>> On 16.09.2021 13:10, Dmitry Isaikin wrote:
>>>>> From: Dmitry Isaykin <isaikin-dmitry@xxxxxxxxx>
>>>>>
>>>>> This significantly speeds up concurrent destruction of multiple
>>>>> domains on x86.
>>>> This effectively is a simplistic revert of 228ab9992ffb ("domctl:
>>>> improve locking during domain destruction"). There it was found to
>>>> actually improve things;
>>>
>>> Was it?  I recall that it was simply an expectation that performance
>>> would be better...
>>
>> My recollection is that it was, for one of our customers.
>>
>>> Amazon previously identified 228ab9992ffb as a massive perf hit, too.
>>
>> Interesting. I don't recall any mail to that effect.
> 
> Here we go:
> 
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fxen-devel%2Fde46590ad566d9be55b26eaca0bc4dc7fbbada59.1585063311.git.hongyxia%40amazon.com%2F&amp;data=04%7C01%7CAndrew.Cooper3%40citrix.com%7C8cf65b3fb3324abe7cf108d979bd7171%7C335836de42ef43a2b145348c2ee9ca5b%7C0%7C0%7C637674676843910175%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=si7eYIxSqsJY77sWuwsad5MzJDMzGF%2F8L0JxGrWTmtI%3D&amp;reserved=0
> 
> 
> We have been using the revert for quite a while in production and didn't
> notice any regression.
> 
>>
>>> Clearly some of the reasoning behind 228ab9992ffb was flawed and/or
>>> incomplete, and it appears as if it wasn't necessarily a wise move in
>>> hindsight.
>>
>> Possible; I continue to think though that the present observation wants
>> properly understanding instead of more or less blindly undoing that
>> change.
> 
> To be honest, I think this is the other way around. You wrote and merged
> a patch with the following justification:
> 
> "
>     There is no need to hold the global domctl lock across domain_kill() -
>     the domain lock is fully sufficient here, and parallel cleanup after
>     multiple domains performs quite a bit better this way.
> "
> 
> Clearly, the original commit message is lacking details on the exact
> setups and numbers. But we now have two stakeholders with proof that
> your patch is harmful to the setup you claim perform better with your
> patch.
> 
> To me this is enough justification to revert the original patch. Anyone
> against the revert, should provide clear details of why the patch should
> not be reverted.

I second a revert.

I was concerned at the time that the claim was unsubstantiated, and now
there is plenty of evidence to counter the claim.

~Andrew



 


Rackspace

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