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

Re: [PATCH v2 5/5] pdx: Add CONFIG_HAS_PDX_COMPRESSION as a common Kconfig option


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 31 Jul 2023 10:00:04 +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=NTt3AA/EIOl1aXs66bZ5rhIuWTyLgTYN36E8OiDGz54=; b=iAJzW/6Yr6W75n2IcB14FtUMXl0WxZInbVjwCREoBBNMy7tPamdDDeCRDLEtKxpdKNTQ6sGPzpwlNguVzLMTlykKE0ZaNXJdEsae36ZaHUYK38p2Tj05qQCzFYzXBhnRXce5B3PuyjT8Knk4TBxY7QlRjRwQvQY0OdQDf+HNkhlRq/L7G64B2Hm5Xot4VFBG25Esbpp5q5jk11EwLDiCQ0hzcGeN874wSHPDx+bQFNdtEpdaSEvMKFztsOe0xwI5F03viRJMwg387LgQNhWBNi41IbfTTo8WwKffc0cvMiJBFjnyWtIImyL4SCvz0itv+mVNzexfeRUbktp2nsn/yw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OM/mdpD/o91ilQ9EkZnHfiUVyY4R67hMIeJVjRxxYdcAPHEbsj6MkgglmEbbeA+5lW05SrQfrsLIziJtsMo1JCKDFKlfld+t+XQZRmga2qqNxYqngLjrvnFQaV2g6CirfX/g+kt1DtFxqoOAgxgqg/YePQi/iI7VmmsZUpIBnvWgRV1f4tF1TPhYDs6mXpBsNPyLydCZhGJFl3+2tlcM1qH7T3fpyqTPIT8QsL4YA6QaQGjRN8Bpf2bfHwDr10MLZu3AKs3Mjzp6dzQwPF+n8EC6oJcf5Z3mgdz9UW5QEwuxiGx3Woe8uR4IzyM7RpBoyK1nzT/cUge2XTBNyAf0Pw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 31 Jul 2023 08:00:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.07.2023 18:58, Andrew Cooper wrote:
> On 28/07/2023 5:36 pm, Andrew Cooper wrote:
>> On 28/07/2023 8:59 am, Alejandro Vallejo wrote:
>>> Adds a new compile-time flag to allow disabling pdx compression and
>>> compiles out compression-related code/data. It also shorts the pdx<->pfn
>>> conversion macros and creates stubs for masking fucntions.
>>>
>>> While at it, removes the old arch-defined CONFIG_HAS_PDX flag, as it was
>>> not removable in practice.
>>>
>>> Signed-off-by: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
>>> ---
>>> v2:
>>>   * Merged v1/patch2: Removal of CONFIG_HAS_PDX here (Jan)
>> This series is now looking fine, except for the Kconfig aspect.
>>
>> This is not something any user or developer should ever be queried
>> about.  The feedback on the documentation patches alone show that it's
>> not understood well by the maintainers, even if the principle is accepted.
>>
>> There is never any reason to have this active on x86.

We can of course continue to disagree here. At least with EXPERT=y
selecting this option ought to remain possible for x86. Whether or
not the original systems this scheme was developed for ever went
public, such systems did (do) exist, and hence running Xen sensibly
on them (without losing all memory except that on node 0) ought to
be possible.

>  Indeed, Julien's
>> quick metric shows how much performance we waste by having it enabled.
> 
> Further to this, bloat-o-meter says net -30k of code and there are
> plenty of fastpaths getting a several cacheline reduction from this.

A similar reduction was achieved by the BMI2-alt-patching series I
had put together, yet you weren't willing to come to consensus on
it.

Jan



 


Rackspace

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