From owner-freebsd-virtualization@freebsd.org Wed Jan 13 15:00:41 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 760734DF660; Wed, 13 Jan 2021 15:00:41 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DG9c84ZSnz4mdW; Wed, 13 Jan 2021 15:00:40 +0000 (UTC) (envelope-from mihai.carabas@gmail.com) Received: by mail-lf1-x12f.google.com with SMTP id m25so3159950lfc.11; Wed, 13 Jan 2021 07:00:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R4uPsGy1SSxpksfFbwvwThDOA18CQUAhIYp6B74MiFY=; b=bAl1JIJ8kMqExinQEpDJZ9OIOx7AXaA2ofjee2xwHM+yHv9ZMKk0ARXUKnt4L5EzRX ZCZ2XceM+y+yxaMm97UGqk6Mq7jp/NfLvmzxh7ItkL1dYwKlYz5Wxyco2v/I/BoVZ88D pf4qfVObDqMJZGdNEZQdvto5HRIgdYutish/SSlmUHpHvz3sgtz/zqCpEwsFhnw0JoOF qabrOSmd1u4i9694a8DaodaM3rrn0t4VvM7XWvo4lRNP5bnsE9WILyJa7AMhXFwv5rws GdKJtnr6iKEf+TtJ0XkOjNUxokpM/8ikVtiIMsnkULK36/04yxuEuz5vWEH5tgr3sanS bIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R4uPsGy1SSxpksfFbwvwThDOA18CQUAhIYp6B74MiFY=; b=jUlSZ124oS5xsrjlU+VJHY3aoughToRgozHKm0PxN1ntETmW4CXjMqV26PWf5aJcS8 n9MdyDKM3mAEPXofDm3XLGYT8jwnxY65OiWtImc8+prTSW01NpYZuocy8co03OSOFkMR 3EIPzsv9iiEiCzojHghbWN6+zPvXpWul54k8fh/N7rCK6WM6tMgf/mvoMq5baKZDfvXL +7IojGgaykL0ahqOltOUElLlv3AnrXg7GlMCNmCEYrHwVPhxK96jJQNRIRvmSDpMod1D NbVPXrI3GxTsmW/0c0HKjaEsPmZtpjqefz9Xo+atMETqJbEXwjRt0iD6JUvcB3g+ixGx b7rQ== X-Gm-Message-State: AOAM530NjjgO8AyM3xyHVVdrstHY2nGaDkjaWMLC5CO/yofjTjRwMVoL tk9yCXbW5Q1Vdr/3bmDN4fORzqeovNJJ8gxOPYw= X-Google-Smtp-Source: ABdhPJyfJNJCozWMPwzL/M+JgTGTZvBA6bSX9ibTy329xZc7gjZEM/R4glYCOFyYvc6HbgQmJaE8FK2nFW0ViXvui54= X-Received: by 2002:a05:6512:33a4:: with SMTP id i4mr1105506lfg.520.1610550037357; Wed, 13 Jan 2021 07:00:37 -0800 (PST) MIME-Version: 1.0 References: <202101131455.10DEthxJ041740@gndrsh.dnsmgr.net> In-Reply-To: <202101131455.10DEthxJ041740@gndrsh.dnsmgr.net> From: Mihai Carabas Date: Wed, 13 Jan 2021 17:00:27 +0200 Message-ID: Subject: Re: [bhyve][arm64] Number of allowed vcpus To: "Rodney W. Grimes" Cc: Andrei Martin , freebsd-arm@freebsd.org, freebsd-virtualization@freebsd.org X-Rspamd-Queue-Id: 4DG9c84ZSnz4mdW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bAl1JIJ8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mihaicarabas@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=mihaicarabas@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; RBL_SENDERSCORE_FAIL(0.00)[2a00:1450:4864:20::12f:server fail]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::12f:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(1.00)[0.999]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::12f:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12f:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-virtualization]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 15:00:41 -0000 On Wed, Jan 13, 2021 at 4:55 PM Rodney W. Grimes < freebsd-rwg@gndrsh.dnsmgr.net> wrote: > > Hello, > > > > >From my perspective bhyve should use what is stated in the device tree > if > > no parameter is given and throw an error when N is greater than the > device > > tree value. > > > > Mihai > > That seems to be one reasonable solution. I am not very informed on what > the CPU over commit situation is on an ARM cpu with respect to > virtualization. > > I would also propose as an alternative to just do what was asked by the > user, which is the current amd64 implementation, OR do as asked and > emmit a warning message. > > I would ask given what was said above: isnt this the same situation as > if the sum of all VM VCPU's is more than the total cores in the system? > That is a very common situation, and one we must not restrict. > We are talking here about the device tree of the guest. If you boot up a guest with a device tree of X vcpus, why specify something else on the command line? > > > On Wed, Jan 13, 2021 at 1:55 PM Andrei Martin < > andrei.cos.martin@gmail.com> > > wrote: > > > > > Hello, > > > > > > While working on enabling multiple virtual cpus for the arm64 virtual > > > machine > > > I used the bhyve's "-c N" parameter to create N cpus (it gets only the > > > cpus, in contrast to the amd64). If N is smaller than the number of > cores > > > described in the device tree it will enable only N and if it's larger > it > > > will enable only the number of cores from the device tree. > > > > > > I don't know if it is the best approach. Another way would be to enable > > > all the cpus from the device tree, no more, no less. > > > > > > Do you have any suggestions? > > > > > > Andrei > > > > > _______________________________________________ > > freebsd-virtualization@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" > > > > -- > Rod Grimes > rgrimes@freebsd.org >