From owner-freebsd-hackers@freebsd.org Tue Dec 3 08:12:47 2019 Return-Path: Delivered-To: freebsd-hackers@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 4F00E1CCE50 for ; Tue, 3 Dec 2019 08:12:47 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47RvqL2WH5z43dq for ; Tue, 3 Dec 2019 08:12:45 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id xB38Cic0033845; Tue, 3 Dec 2019 00:12:44 -0800 (PST) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id xB38ChQ0033844; Tue, 3 Dec 2019 00:12:43 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201912030812.xB38ChQ0033844@gndrsh.dnsmgr.net> Subject: Re: bhyve+windows 7 multicore performance In-Reply-To: To: Wojciech Puchar Date: Tue, 3 Dec 2019 00:12:43 -0800 (PST) CC: freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 47RvqL2WH5z43dq X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [-0.69 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.88)[-0.880,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.75)[-0.751,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.04)[ip: (0.14), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.03), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Dec 2019 08:12:47 -0000 > i am already using bhyve to run windows 7 guests on one server, all are > small guests with 1 or 2 cores allocated. Works fine with good > performance. > > Recently i changed computer configuration in one of my client's office. > > Before: > low end PC as unix server > Dell T110-II with quad core Xeon E3 v1 running windows 7 natively > > After: > New server with CPU: Intel(R) Xeon(R) E-2136 CPU @ 3.30GHz > (6 cores*2 threads) > as unix server with windows 7 moved to bhyve. > > > i run bhyve VM like this: > nice -n -20 /usr/sbin/bhyve -s 0,hostbridge -m 22528M \ ^^^^^^^^^^^^ why? > -H -P -S -c cpus=11,sockets=1,cores=11,threads=1 \ > -s 7,fbuf,rfb=10.2.3.4:5900,password=secret \ > -s 3,ahci,hd:/dev/ada2p5.eli,hd:/dev/ada2p6.eli,hd:/dev/ada2p127.eli \ > -s 5,virtio-net,tap0,mac=08:00:27:b7:ca:16 \ > -s 30,virtio-rnd -s 31,lpc -U 0072c755-0e33-11ea-b92a-4c53821d28a6 \ > -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -w windows > > And it runs properly with 11 threads available for windows. I am not so sure about how well the SMP code in windows 7 deals with this odd core count, or for that matter more than 4 cores as at the time Windows 7 was released not many systems existed above 4 cores. > > But windows feels quite slower that it was before. There is for sure no > problem with I/O performance. It's about compute speed. How did you measure this? If it is just a "feel" then it could be almost anything, if you have some solid numbers to look at then perhaps some conclusions can be made. > What i do wrong? Try 4 cores, and drop the priority boost, you may be causeing an unintended side effect. Did you copy the windows 7 from the old server, or is this a new install to the VM. If you copied it there may be a HAL issue/missmatch. -- Rod Grimes rgrimes@freebsd.org