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

Re: [PATCH v6 03/16] libs/guest: Reduce number of I/O vectors in write_batch


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Frediano Ziglio <freddy77@xxxxxxxxx>
  • Date: Thu, 2 Jul 2026 13:33:05 +0100
  • Arc-authentication-results: i=1; mx.google.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+WSGWfYa7gMrkFqASJhZI8VjZ8XuFjtdt/nRUpEHU4w=; fh=pmfIAu1zZ/y4MK+Ok8pH+KJi8l1vy8Cep5fL3L/xSOQ=; b=K/Kv4RuZsVKAnEiQmgvB0mgZa0wlsN4PVUNEHyxm7oMg2OSxZdhWtVAGX0eAEjoF5d hhSABik1S19GpXCRiuEh6W7Xw8tau4OuHELTxkZiso2gFlPcbcKCHkhisj7D3SRwHSL+ wcrsCf/930RFlR55X46c8WlYXL8WD7iVA/RD6nU8AFL0mnCS1f9kzTnCrM8YFsUvbcAe NhzEc0vai4GHxRCK5Me3WJGa6Yj/mKDO3/Cc2a3ofQ04AKI4OSJIuSiD4rFCPeah9WOf ne4xjWIQP1zKpFPENR2fSrYs02B8EfxzQcz95k63Vl07xOUUppxcm9+Hkxt+NOA9lIW8 9gfw==; darn=lists.xenproject.org
  • Arc-seal: i=1; a=rsa-sha256; t=1782995596; cv=none; d=google.com; s=arc-20260327; b=nETdmxlVuAGR5gNY9uc5DmLWumxU7eXFzm+reV7S8W1mtleevO+E9Pj2lbxbrpDFtY E6zx8cjT7p7oqL/DRBWD/WbYM4GiTvXEshNMpkf86k6x0HS8a8MSUbIGGWHoQw8StPJr SFNuGrcIIScOM+cvifbR45grlML6jArsQN9gU096sIdyjv0n3Hpmi0ybdlQfy8sPKIPb 1n50xMmRrAWM1jmfnGk9QrARNPgJOCt0rv24RwXia6eN529Rfjqn7WLioOUmMDebGRo6 RqwRPFElElgCotyayLvW0RhcIDfIfxhT9MOXNaDbTChRDsoAmT7JDgcQ9HB9RGOwJNTt AWrQ==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Thu, 02 Jul 2026 12:33:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Tue, 30 Jun 2026 at 17:47, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
>
>
> This has the same exact subject as the prior patch.
>
> Either it wants merging, as they're both in the same function, or the
> subject wants to be different.  Even a "Further ..." prefix would help.
>
> On 19/06/2026 2:04 pm, Frediano Ziglio wrote:
> > Each page was sent using a different iovec item. This potentially exceed
> > Linux maximum (1024).
>
> Linux cannot have a maximum of 1024 because this has been working fine
> for a decade using 1028 in the common case.
>

But the code does not call writev or similars directly, so there's no
limit besides the sky.
The result with 1028 is simply that you do 2 system calls instead of one.

> > Coalesce adjacent IO vector elements to attempt to reduce the number of
> > overall IO vectors for each operation.
> > Also some implementation (MiniOS) emulate writev with multiple write calls.
> >
> > Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
> > Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
>

Frediano



 


Rackspace

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