From nobody Tue May 23 17:26:27 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQh7k04WZz4CjvF; Tue, 23 May 2023 17:26:42 +0000 (UTC) (envelope-from gusev.vitaliy@gmail.com) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQh7j4Z2Kz4Y7d; Tue, 23 May 2023 17:26:41 +0000 (UTC) (envelope-from gusev.vitaliy@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2af2e1725bdso1509091fa.0; Tue, 23 May 2023 10:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684862799; x=1687454799; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S/ZTmuVyoeziujL0N7pYts/kBHYF9tHqFLcN7FXr8vU=; b=nJ+4q9iZHWMWJkkggN/MPQY8GNZYDBJDnNWqK/eKOpMjstRl7uYljQRnr+c5ld6btZ X58e8V0pHllashGAj7buySXF+5649mB3wf05nwidswMHco4P9/4EpjI5c3kXuuQAjdBX z4M4KD0hZo2HDwF0YSthbMCTVye1fJwfZG6j7wfT8+vlZ1uaC0/wrxW9nUskZC/voLEM R95gIDl64rWep7ZgZXVl4XcoX5mPBh6tDmufZuwKzWNj7nMRiHpqGRJoayEae4pV4uhs a+GV/SWgrx9K4NXLHa1bMtvzIfGsXKOOp1/4cyK4hMjNpFqpq3bxVoF/IDM/sY26/bUn dfww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684862799; x=1687454799; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S/ZTmuVyoeziujL0N7pYts/kBHYF9tHqFLcN7FXr8vU=; b=Gls7fgDEpL4DMWxLj8fFIN/RtBU6FTPV8S5yDdy4kTVFCfEMDZG/HyxLid45ajVvhw pfqzaYRAh8rBfOz0SB7BUjEg7hAC4cYMNlzvxnBjl31QZeC0E/nsK5bIwL/awG0q6QEG DE6+PXYsNtlNmFS7mJKic6ndM14ek+/G8oQs/l/bSdVNFFwoR3eMsXxUD3AdSjdQaMiS 33o4nf1Y/blEEo+mfs0KXzygBesvbHjHbho2Aq29kVYvQdHdJPLD0oHqvoddE8meigpq NCgdDwu8dI+0Uf7ovuePF2Aohecgw14/B0BOnj0tFnzSGueB1/L5XwZWndDqC1Y6BJTa TkpA== X-Gm-Message-State: AC+VfDxA4Tni3+OUzsUrBrX9wmaxgy8xm+LZQO8vA9SnA4fI+ZXmjhy4 qHIpTPUAGjY81X+cE7BgbHMyuhPt/78= X-Google-Smtp-Source: ACHHUZ78yzYis+Rr48+V4neR82NEcMTfJFgJBCwE7JG6uidgOpTb5w7PVZ/ewDsuW32fDM+CWauuIw== X-Received: by 2002:a2e:b907:0:b0:2ad:9edd:4e2 with SMTP id b7-20020a2eb907000000b002ad9edd04e2mr4875567ljb.20.1684862798504; Tue, 23 May 2023 10:26:38 -0700 (PDT) Received: from smtpclient.apple ([78.140.234.98]) by smtp.gmail.com with ESMTPSA id j21-20020a2e8015000000b002aeee2a093csm1697061ljg.59.2023.05.23.10.26.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2023 10:26:38 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: BHYVE SNAPSHOT image format proposal From: Vitaliy Gusev In-Reply-To: <202305231645.34NGj2Bq081239@critter.freebsd.dk> Date: Tue, 23 May 2023 20:26:27 +0300 Cc: virtualization@freebsd.org, freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <5544A8DA-4E91-4384-B72D-8C91B32B6D69@gmail.com> References: <67FDC8A8-86A6-4AE4-85F0-FF7BEF9F2F06@gmail.com> <202305231645.34NGj2Bq081239@critter.freebsd.dk> To: Poul-Henning Kamp X-Mailer: Apple Mail (2.3731.500.231) X-Rspamd-Queue-Id: 4QQh7j4Z2Kz4Y7d X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi, > On 23 May 2023, at 19:45, Poul-Henning Kamp = wrote: >=20 >=20 >> 1. BHYVE SNAPSHOT image format: >=20 > Please do not invent Yet Another Format, please ? >=20 > Why not make it a tar(5) file ? >=20 Tar cannot solve issues mentioned in =E2=80=9Cdisadvantages=E2=80=9D. = Tar doesn=E2=80=99t have versions, it is just container for files that would introduce another level of indirection. Snapshot/resume = doesn=E2=80=99t need just container. It needs information what is saved and in what format. For example, virtual = memory can be saved in different ways: binary, diff pages, etc. Virtual memory of VM should be saved faster without additional cost. The = same for restore stage. Do you like an idea to have tar file with size 8 GB ? And how it can be saved = efficiently without double copying of data? Yes, tar is powerful and convenient for many purposes, but it is not so = suitable to suspend/resume process and would introduce just another level of complexity. =E2=80=94=E2=80=94 Vitaliy Gusev=