From owner-freebsd-ppc@freebsd.org Sun Nov 18 13:17:03 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47C8A1101B0B for ; Sun, 18 Nov 2018 13:17:03 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhob02.registeredsite.com (atl4mhob02.registeredsite.com [209.17.115.40]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9FF7D694 for ; Sun, 18 Nov 2018 13:17:02 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com (atl4qobmail01pod2.registeredsite.com [10.30.77.35]) by atl4mhob02.registeredsite.com (8.14.4/8.14.4) with ESMTP id wAIDGtQ9001770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sun, 18 Nov 2018 08:16:55 -0500 Received: (qmail 37025 invoked by uid 0); 18 Nov 2018 13:16:55 -0000 X-TCPREMOTEIP: 174.118.245.214 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.3?) (dclarke@blastwave.org@174.118.245.214) by 0 with ESMTPA; 18 Nov 2018 13:16:55 -0000 To: FreeBSD PowerPC ML From: Dennis Clarke Subject: FreeBSD 12.0RC1 desperately slow Message-ID: <9cd40cca-72c6-7394-48b4-c2101c812c9d@blastwave.org> Date: Sun, 18 Nov 2018 08:16:54 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Thunderbird/64.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 5F9FF7D694 X-Spamd-Result: default: False [1.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.61)[0.609,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx1.netsolmail.net]; RCVD_IN_DNSWL_NONE(0.00)[40.115.17.209.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)]; ASN(0.00)[asn:19871, ipnet:209.17.112.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2018 13:17:03 -0000 I am seeing nearly 1980's type speeds : eris# uname -a FreeBSD eris 12.0-RC1 FreeBSD 12.0-RC1 r340470 GENERIC powerpc eris# eris# /usr/bin/time -p /usr/sbin/portsnap fetch extract . . . Building new INDEX files... done. real 4181.61 user 306.68 sys 2917.95 eris# dmesg says : ada0 at ata2 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 1.x device ada0: Serial Number KRVN23ZAHA5DBD ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 476940MB (976773168 512 byte sectors) However performance in just about any trivial test is very very very bad. Three "very" on purpose. Better than serial interface speeds and even better than old SCO ODT3 UNIX running with tape based swap. However this is just like being back in mid 1980's on MFM/RLL disks : eris# uname -a FreeBSD eris 12.0-RC1 FreeBSD 12.0-RC1 r340470 GENERIC powerpc eris# eris# /usr/bin/time -p dd if=/dev/urandom of=/var/tmp/root/random_8GB.dat bs=8192 count=1048576 1048576+0 records in 1048576+0 records out 8589934592 bytes transferred in 498.075845 secs (17246238 bytes/sec) real 498.11 user 0.99 sys 260.24 eris# A small x86 boxen machine nearby says : titan# titan# uname -a FreeBSD titan 12.0-RC1 FreeBSD 12.0-RC1 r340470 GENERIC amd64 titan# /usr/bin/time -p dd if=/dev/urandom of=/var/tmp/root/random_8GB.dat bs=8192 count=1048576 1048576+0 records in 1048576+0 records out 8589934592 bytes transferred in 116.799755 secs (73544115 bytes/sec) real 116.80 user 0.40 sys 115.80 titan# and ye old Solaris SPARC crate : node000 $ uname -a SunOS node000 5.10 Generic_150400-61 sun4u sparc SUNW,SPARC-Enterprise node000 $ /usr/bin/time -p dd if=/dev/urandom of=random_8GB.dat bs=8192 count=1048576 0+1048576 records in 0+1048576 records out real 161.95 user 1.01 sys 159.46 Sure /dev/urandom should be fed as fast as the system can make up numbers from whatever noise sources it has but even a trivial copy of that 8GB file is terribly slow. eris# /usr/bin/time -p cp -p random_8GB.dat /home/dclarke/ real 727.43 user 0.05 sys 46.81 eris# eris# echo "8k 8589934592 727.43 / pq" | dc 11808606.45285457 So maybe 10 or 11MB/sec on the filesystem. Would love ZFS but this is UFS here. However I am running with kern.smp.disable=1 but that can't account for this mess .. could it ? Dennis