Re: measuring swap partition speed

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 23 Dec 2023 19:55:43 UTC
void <void_at_f-m.fm> wrote on
Date: Sat, 23 Dec 2023 15:52:55 UTC :

> On Fri, 22 Dec 2023, at 09:37, Ronald Klop wrote:
> > Can you provide more concrete information? Like:
> >
> > # usbconfig list
> 
> # usbconfig list
> ugen0.1: <(0x1106) XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
> ugen0.2: <vendor 0x2109 USB2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
> ugen0.3: <American Power Conversion Back-UPS XS 1400U FW:926.T2 .I USB FW:T2> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (24mA)
> ugen0.4: <Ralink 802.11 n WLAN> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)
> ugen0.5: <Toshiba MQ01ABD > at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (36mA)
> 
> The power supply is the approved 5.1V 3A one.

I use CanaKit power supplies that have more margin for the power:

5.1V 3.5A

> > And the output of "devinfo -v". That will give people much more 
> > information to work with instead of "anecdotal evidence" about your 
> > hardware being usb3.
> 
> devinfo -v : https://bsd.to/ADPj
> 
> detailed dmesg is here: https://bsd.to/Q5tx

That last indicates another potentially significant difference
from my example benchmarks done for comparison to yours:

GEOM_ELI: Device da0p3.eli created.
GEOM_ELI: Encryption: AES-XTS 256
GEOM_ELI: Crypto: software

That likely contributes to slowing down I/O for da0p3 and
possibly to leaving less time for I/O to other partitions
when da0p3 is in use.

If you had the resources to test avoiding the encrypted
partition for your type of media, that might prove
interesting.

I've never had occasion to want to use any encrypted
partitions for my FreeBSD activity.

I'm unsure of the GEOM_ELI processing-time contributions
vs. "gstat -spod" reporting.

===
Mark Millard
marklmi at yahoo.com