Sent: Tuesday, January 07, 2020 at 7:35 AM
From: "Hamd" <hamdi201...@gmail.com>
To: misc@openbsd.org
Subject: OpenBSD's extremely poor network/disk performance?
It's 2020 and it's -still- sad to see OpenBSD -still- has the
lowest/poorest (general/overall) performance ever:
https://www.phoronix.com/scan.php?page=article&item=8-linux-bsd&num=1

My reference is not -only- that url, of course. My reference is my OpenBSD,
giving ~8 MB/s file transfer/network/disk speed.

A Linux distro, on the same computer (dual boot), providing 89 MB/s speed.

(Longest) sad story of the year: When it comes to OpenBSD; security -
great! Performance - horrible! I truly wish it was much better..
 
------------------------------------------------------------------
I did a test using bonnie++ on my T420 ThinkPad. I have softdep inabled for
my /Home filesystem

Here are the results:

Version  1.97       ------Sequential Output------ --Sequential Input- --Random-
Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
leo.cats.domain  8G   313  98 25039   5  7747   3   364  98 93950  31  86.6  10
Latency             49275us     315ms    1024ms   58491us   76221us    4459ms

K/sec means KiloBytes/second. If am reading this correctly, it looks like 
reading
at ~25 Mb/sec. Since it is sequential, it didn't use soft updates. 

My abbreviated dmesg:

 OpenBSD 6.6 (GENERIC.MP) #4: Wed Dec 18 06:44:06 MST 2019
    clee...@leo.cats.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4156157952 (3963MB)
avail mem = 4017496064 (3831MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root


cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2492.30 MHz, 06-2a-07
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2491.92 MHz, 06-2a-07
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0

scsibus1 at ahci0: 32 targets

sd0 at scsibus1 targ 0 lun 0: <ATA, ST320LT007-9ZV14, 0004> naa.5000c500441a1cbd
sd0: 305245MB, 512 bytes/sector, 625142448 sectors


>From man 8 mount:

softdep    (FFS only) Mount the file system using soft
                        dependencies.  Instead of metadata being written
                        immediately, it is written in an ordered fashion to
                        keep the on-disk state of the file system consistent.
                        This results in significant speedups for file
                        create/delete operations.  This option is ignored when
                        using the -u flag and a file system is already mounted
                        read/write.

Here is what my fstab looks like

removed.b none swap sw
removed.a / ffs rw 1 1
removed.k /home ffs rw,nodev,nosuid,softdep 1 2
removed.d /tmp ffs rw,nodev,nosuid,softdep 1 2
removed.f /usr ffs rw,nodev,softdep 1 2
removed.g /usr/X11R6 ffs rw,nodev,softdep 1 2
removed.h /usr/local ffs rw,wxallowed,nodev,softdep 1 2
removed.j /usr/obj ffs rw,nodev,nosuid,softdep 1 2
removed.i /usr/src ffs rw,nodev,nosuid,softdep 1 2
removed.e /var ffs rw,nodev,nosuid 1 2



Reply via email to