Re: Still having super slow speeds with USB 3 flash.

2018-03-28 Thread Kevin Chadwick
On Wed, 28 Mar 2018 11:29:50 +0200


> Everything can be improved, it's a matter of dedication ;)  But make
> sure you don't compare oranges to apples.

Thanks for the insight. I shall bear this complexity in mind when
pondering further.



Re: Still having super slow speeds with USB 3 flash.

2018-03-28 Thread Martin Pieuchot
On 27/03/18(Tue) 18:07, Kevin Chadwick wrote:
> It seems there may be a speed issue of some kind. A past thread
> mentions raw devices being fast but doesn't ntfs-3g use raw access.

raw USB speeds are faster but not fast on OpenBSD.

> ntfs-3g is the slowest then msdos gets around 2200 Kilobytes/s.

ntfs-3g uses fuse(4) which has its own performance issues.

> The same msdos stick gets 12000 Kilobytes/s on Win 10.

msdosfs has also known performance issues.

> FFS is faster. Strange to me that usb hdd have always been fast with
> any filesystem. I will try a ntfs-3g usb hdd on a recent snapshot.

The speed of USB devices my vary a *lot* as well.

So to resume the situation you have at least 3 different subsystems
where performance could be improved on top of pieces of hardware of
different quality.

Everything can be improved, it's a matter of dedication ;)  But make
sure you don't compare oranges to apples.



Re: Still having super slow speeds with USB 3 flash.

2018-03-27 Thread Chris Bennett
On Tue, Mar 27, 2018 at 06:06:30PM +, Kevin Chadwick wrote:
> 
> >but the flashes run brutally slow using FFS. USB 2 flash run just fine.
> 
> hmm. I am seeing slow writing on usb2. Perhaps it is exacerbated on usb3?
> 

I'll send some info as soon as I get a chance. How are you measuring
speeds?

Chris Bennett




Re: Still having super slow speeds with USB 3 flash.

2018-03-27 Thread Kevin Chadwick

>but the flashes run brutally slow using FFS. USB 2 flash run just fine.

hmm. I am seeing slow writing on usb2. Perhaps it is exacerbated on usb3?



Re: Still having super slow speeds with USB 3 flash.

2018-03-27 Thread Kevin Chadwick
It seems there may be a speed issue of some kind. A past thread
mentions raw devices being fast but doesn't ntfs-3g use raw access.

ntfs-3g is the slowest then msdos gets around 2200 Kilobytes/s.

The same msdos stick gets 12000 Kilobytes/s on Win 10.

FFS is faster. Strange to me that usb hdd have always been fast with
any filesystem. I will try a ntfs-3g usb hdd on a recent snapshot.



Re: Still having super slow speeds with USB 3 flash.

2018-03-06 Thread Chris Bennett
I will try with softdep and noatime.
It's just -current, after all.

Chris Bennett




Re: Still having super slow speeds with USB 3 flash.

2018-03-06 Thread Chris Bennett
Then I need to install the latest -current and make a bug report.
I've had the same problem with several USB 3 flashes on different
computers. I was hoping the problem would eventually get fixed.

It's a Sandisk Ultra Fit? I will look for one or order one.
I have wondered if the actual flash drives themselves were the problem.

If anyone reading this can tell me what info I need to include in the
bug report, I will add it.

Did you do anything special with swap or /tmp? I want to duplicate your
setup more or less.

By the way, I can't manage to get UEFI to work on USB disks. Did you?

Thanks, glad to know it is possible to have things work properly.

Chris Bennett




Re: Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Chris Bennett
On Mon, Mar 05, 2018 at 06:32:13PM +, Kevin Chadwick wrote:
> On Mon, 5 Mar 2018 10:14:56 -0800
> 
> 
> > I get constant stalls during installs.
> > Is this memory related?
> 
> Probably waiting on buffers would be my guess. I have witnessed those
> delays on flash sticks.
> 
> > Is there are knob I can twist during regular use to speed things up?
> > Will mounting as softdep help or not?
> 
> I doubt it. What speed are you getting and what kind of memory. Even
> class 10 SD isn't very fast at writing. Everything else being the same
> compared to HDD, then I would look for faster memory?
> 

reordering libraries is slow enough to finish a cup of coffee.

dmesg:


OpenBSD 6.2-current (GENERIC.MP) #408: Thu Feb  8 04:09:33 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3774021632 (3599MB)
avail mem = 3652632576 (3483MB)
enter_shared_special_pages: entered idt page va 0x8001 pa 0x1d56000
enter_shared_special_pages: entered kutext page va 0x8183 pa 
0x183
enter_shared_special_pages: entered kutext page va 0x81831000 pa 
0x1831000
enter_shared_special_pages: entered kutext page va 0x81832000 pa 
0x1832000
enter_shared_special_pages: entered kudata page va 0x81ac9000 pa 
0x1ac9000
cpu_enter_pages: entered tss+gdt page at va 0x81a92000 pa 0x1a92000
cpu_enter_pages: entered t.stack page at va 0x81a93000 pa 0x1a93000
cpu_enter_pages: cif_tss.tss_rsp0 = 0x81a933e0
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xea8c0 (45 entries)
bios0: vendor LENOVO version "5PCN18WW" date 09/28/2017
bios0: LENOVO 80XV
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI HPET APIC MCFG SBST MSDM BATB SSDT IVRS CRAT TPM2 
SSDT SSDT SSDT SSDT FPDT SSDT BGRT UEFI
acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP2(S4) GPP3(S4) GPP4(S4) GFX0(S4) 
GFX1(S4) GFX2(S4) GFX3(S4) GFX4(S4) XHC0(S3) EHC1(S3) SBAZ(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
lapic_map: entered lapic page va 0x81ab3000 pa 0xfee0
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.76 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2
cpu0: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
acpihpet0: recalibrated TSC frequency 2994393502 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0cpu_enter_pages: entered tss+gdt page at va 0x800021ff8000 
pa 0x1
cpu_enter_pages: entered t.stack page at va 0x800021ff9000 pa 0x11000
cpu_enter_pages: cif_tss.tss_rsp0 = 0x800021ff93e0
: apid 17 (application processor)
cpu1: AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G, 2994.39 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2
cpu1: 96KB 64b/line 3-way I-cache, 32KB 64b/line 8-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins
, remapped to apid 4
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins
, remapped to apid 5
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP1)
acpiprt3 at acpi0: bus 1 (GPP2)
acpiprt4 at acpi0: bus 2 (GPP3)
acpiprt5 at acpi0: bus -1 (GPP4)
acpiprt6 at acpi0: bus -1 (GFX0)
acpiprt7 at acpi0: bus -1 (GFX1)
acpiprt8 at acpi0: bus -1 (GFX2)
acpiprt9 at acpi0: bus -1 (GFX3)
acpiprt10 at acpi0: bus -1 (GFX4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@400 io@0x814), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x814), C1(@1 halt!), PSS
acpipwrres0 at acpi0: P0U3, resource for XHC0
acpipwrres1 at acpi0: P3U3, resource for XHC0
acpipwrres2 at acpi0: P0U2, resource for EHC1
acpipwrres3 at acpi0: P3U2, resource for EHC1
acpipwrres4 at 

Re: Still having super slow speeds with USB 3 flash.

2018-03-05 Thread Kevin Chadwick
On Mon, 5 Mar 2018 10:14:56 -0800


> I get constant stalls during installs.
> Is this memory related?

Probably waiting on buffers would be my guess. I have witnessed those
delays on flash sticks.

> Is there are knob I can twist during regular use to speed things up?
> Will mounting as softdep help or not?

I doubt it. What speed are you getting and what kind of memory. Even
class 10 SD isn't very fast at writing. Everything else being the same
compared to HDD, then I would look for faster memory?