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

Re: [PATCH 0/8] Make PDX compression optional


  • To: Alejandro Vallejo <alejandro.vallejo@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 18 Jul 2023 11:33:03 +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=RP2dXm2eXieX/ufdiLz07SKqSRZfYZRY1a5RBUMzF9g=; b=IB7yibi7wx4Xxk54ATzXUcWHOz9mDXGoKEg9FEGXqNdwHXg5M+x5olHeO0qqIDdV9Mg5KUThnit4v8H/hUn5+AMCohCqYnbxmGTWk51099PoK13LDUCD+Ux3A3zQN+b5xL4mMNFlYIBUqFkCWZig5Xyd9mHdpapDEev3nfwkK+cLUIZ+zHA7yg7FuMQYlJO8VC6NuSoej66su4aGyVPPQGLJJA9+hhtvCT5NbIyL+nR8Yiupq/fQUZtDdTukviIT7xp6S2qr3tZbNsIvQGD3ufTnKpnSULO72l8D3aVB0MTs04IV0Opp0jcwEvrJdvp+3MoSSN1L6/mRfeRG+osSuQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UlZp49RVm+VSFxacMa5vtK0Ao5hX3EbADM+u0/IX41kIZ3bORpbMSjlRDdx+6Q9r7E6ICxDp+zRWGzvaBRSiDdiGN0baqK0JFiSt0XF5J0Ip2AMaT+bsOXXjSwHL/l8sxabvoMcFDhWEBbWsI74YJfJXSpXCjnWjOlZXVwEMyfPJeZ7wCZwoTCRM9T1/E4KrX/l7k9I/MX6srxMcZvN+sSKBK3JA4gSDLsMfUSmYREoLa7yR+epSXYvwZFAdKaEjSOYiN/BUfmEsfwA1MS8DSBw4ckS2+jnYqjizPGFoldXZVdlrWvPnj6pIZvs3uR0EPkVcyBSUQpFJxE5G2lXeAg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 18 Jul 2023 09:33:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.07.2023 18:03, Alejandro Vallejo wrote:
> Currently there's a CONFIG_HAS_PDX Kconfig option, but it's impossible to
> disable it because the whole codebase performs unconditional
> compression/decompression operations on addresses. This has the
> unfortunate side effect that systems without a need for compression still
> have to pay the performance impact of juggling bits on every pfn<->pdx
> conversion (this requires reading several global variables). This series
> attempts to:
> 
>   * Leave the state of pdx and pdx compression documented
>   * Factor out compression so it _can_ be removed through Kconfig
>   * Make it so compression is disabled on x86 and enabled on both Aarch32
>     and Aarch64 by default.

I disagree with this choice of default for x86. To avoid surprising
downstreams, this should at best be a two-step process: Keep the
default as Y right now, and switch to N a couple of releases later.

But that's only the simple / mechanical side. Considering my earlier
effort to reduce / remove the involved overhead dynamically at
runtime (which you may or may not be aware of; see [2]), I view a
compile time choice as less desirable. At the very least I would
expect some justification towards this build time choice being
acceptable / reasonable despite the earlier effort towards greater
flexibility. Only such would be likely to have me merely defer to
other x86 maintainers, rather than outright objecting.

Jan

[2] https://lists.xenproject.org/archives/html/xen-devel/2018-09/msg01616.html



 


Rackspace

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