From owner-freebsd-ports@freebsd.org Fri Aug 28 02:29:25 2020 Return-Path: Delivered-To: freebsd-ports@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 D01DB3CA6FE; Fri, 28 Aug 2020 02:29:25 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (1.212.52.36.ap.yournet.ne.jp [36.52.212.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bd3T02N8Hz3br2; Fri, 28 Aug 2020 02:29:23 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (kx.truefc.org [36.52.212.1]) by kx.truefc.org (8.15.2/8.15.2) with ESMTP id 07S2TD6K098319; Fri, 28 Aug 2020 11:29:13 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <202008280229.07S2TD6K098319@kx.truefc.org> Date: Fri, 28 Aug 2020 11:29:13 +0900 From: KIRIYAMA Kazuhiko To: freebsd-ports@freebsd.org Cc: freebsd-arm@freebsd.org, freebsd-virtualization@freebsd.org, kiri@truefc.org Subject: To late to build packages in arm64/aarch64 on qemu User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4Bd3T02N8Hz3br2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of kiri@truefc.org has no SPF policy when checking 36.52.212.1) smtp.mailfrom=kiri@truefc.org X-Spamd-Result: default: False [0.86 / 15.00]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[kiri]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_SPAM_SHORT(0.28)[0.283]; NEURAL_HAM_LONG(-0.59)[-0.591]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[truefc.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.07)[0.065]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:10013, ipnet:36.52.208.0/21, country:JP]; MAILMAN_DEST(0.00)[freebsd-virtualization,freebsd-arm,freebsd-ports]; ONCE_RECEIVED(0.10)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2020 02:29:25 -0000 Hi, all I'm tring to build packages in arm64/aarch64 on qemu-system-aarch64. But it's too late in comparision to amd64 on bhyve. For example, `make package-recursive' of devel/binutils on qemu takes 67 times of bhyve [1]. I found that it's difference caused from disk geometry factors such as stripesize, cylinders according to firmware and heads according to firmware [2]. I also try to test in qcow2 format with cache-size 4 GB, but nothing progress: root@vm:/vm/test # qemu-system-aarch64 -machine virt -cpu cortex-a57 -smp 4 -m 8G,maxmem=8G -name test -blockdev driver=file,node-name=hd0,filename=FreeBSD-13.0-CURRENT-arm64-aarch64.qcow2 -blockdev driver=qcow2,node-name=hda,file=hd0,overlap-check=none,cache-size=4294967296 -device virtio-blk-device,drive=hda -nographic -monitor telnet::5045,server,nowait,nodelay -serial telnet::5044,server,nowait,nodelay -bios QEMU_EFI.fd root@vm:~ # telnet localhost 5044 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. FreeBSD/arm64 (freebsd) (ttyu0) login: root Aug 28 02:25:30 freebsd login[865]: ROOT LOGIN (root) ON ttyu0 Last login: Fri Aug 28 01:14:36 on ttyu0 FreeBSD 13.0-CURRENT (GENERIC) #0 r364182: Thu Aug 13 05:44:54 UTC 2020 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier Edit /etc/motd.template to change this login announcement. root@freebsd:~ # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ufs/rootfs 4053356 2727620 1001468 73% / devfs 1 1 0 100% /dev root@freebsd:~ # diskinfo -tv /dev/ufs/rootfs /dev/ufs/rootfs 512 # sectorsize 4295020032 # mediasize in bytes (4.0G) 8388711 # mediasize in sectors 0 # stripesize 34091520 # stripeoffset 8322 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. # Disk descr. # Disk ident. # Attachment Yes # TRIM/UNMAP support Unknown # Rotation rate in RPM Seek times: Full stroke: 250 iter in 0.133557 sec = 0.534 msec Half stroke: 250 iter in 0.136215 sec = 0.545 msec Quarter stroke: 500 iter in 0.290992 sec = 0.582 msec Short forward: 400 iter in 0.204633 sec = 0.512 msec Short backward: 400 iter in 0.246820 sec = 0.617 msec Seq outer: 2048 iter in 1.149787 sec = 0.561 msec Seq inner: 2048 iter in 1.162127 sec = 0.567 msec Transfer rates: outside: 102400 kbytes in 0.499821 sec = 204873 kbytes/sec middle: 102400 kbytes in 0.498121 sec = 205573 kbytes/sec inside: 102400 kbytes in 0.488791 sec = 209496 kbytes/sec root@freebsd:~ # Is there any suggetions? Best regards [1] https://lists.freebsd.org/pipermail/freebsd-virtualization/2020-August/008753.html [2] https://lists.freebsd.org/pipermail/freebsd-virtualization/2020-August/008785.html --- Kazuhiko Kiriyama