Re: Firefox hangs after sleep

2024-03-24 Thread Raymond, David
I reinstalled OpenBSD on the laptop experiencing this problem (for various
reasons) and the Firefox problem went away.(!)

Dave

David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond





On Thu, Mar 21, 2024 at 2:36 AM Stefan Sperling  wrote:

> On Thu, Mar 21, 2024 at 02:29:14AM -0600, Raymond, David wrote:
> > At some point (I can't put my finger on exactly when this started), an
> > existing firefox instance hangs after my laptop is put to sleep and then
> > wakes from sleep.  Websites in existing tabs still work, but searching
> for
> > another webpage in an existing tab or opening a new tab is when the hang
> > occurs.  Killing and restarting firefox eliminates the problem until the
> > next sleep.
>
> Alternatively, wait for a long time and the problem will resolve itself,
> i.e. the stuck tabs will suddenly start working again.
>
> I believe it's a known issue, but nobody has invested time digging into it.
>
> It's probably DNS...
>


Firefox hangs after sleep

2024-03-21 Thread Raymond, David
At some point (I can't put my finger on exactly when this started), an
existing firefox instance hangs after my laptop is put to sleep and then
wakes from sleep.  Websites in existing tabs still work, but searching for
another webpage in an existing tab or opening a new tab is when the hang
occurs.  Killing and restarting firefox eliminates the problem until the
next sleep.  Interestingly, "simple" websites such as the OpenBSD or Arch
Linux websites still can be started after sleeping, but "fancy" ones such
as Gmail or the Washington Post cannot.  This suggests to me the problem
lies in javascript or some other non-pure html component.

I am using 7.4 stable on a Lenovo X1 Carbon, gen 4, though it also occurs
on an X1 gen 9.  A recent update to firefox (and all the other installed
packages) didn't help.  This doesn't happen with other browsers such as
chromium or iridium.  I am not sure what kind of diagnostics would help
here.

David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond


Firefox hangs on sleep

2023-10-16 Thread Raymond, David
I noticed for the past week or so that firefox hangs on return from a sleep
on my Thinkpad X1 Carbon version 4.  This is true on both 7.3 and 7.4
stable.  Other processes eg chrome, epiphany, don't.

Not sure what additional info to provide.

David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond


Re: Shotwell

2023-08-14 Thread Raymond, David
Rafael,

Thanks for replying about this.  I have already set the permissions
and uploading pictures to shotwell (which apparently uses libgphoto)
used to work.

However, I discovered a workaround.  On the phone when setting up the
usb connection, first click "no file transfer" then click " file
transfer" and shotwell then loads the pictures. This may be a
peculiarity of Pixel phones or Android 13 which libgphoto doesn't
understand -- some initialization issue.

Dave Raymond

On 8/7/23, Rafael Sadowski  wrote:
> On Sun Jul 30, 2023 at 03:06:26PM -0600, Raymond, David wrote:
>> Hello,
>>
>> I am trying to import photos using Shotwell over a usb connection with
>> the file transfer option. When I connect my phone to the usb port with
>> Shotwell running and select this option, Shotwell recognizes the phone
>> but says that there are no photos to transfer.  The transfer works on
>> Arch Linux.
>>
>> Am I missing something?  Some kind of permissions?  The phone is a
>> Pixel 7 and I am running openbsd 7.3 stable.  I had the problem with
>> 7.2 as well, but things worked before (I think with an earlier pixel
>> phone).
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://kestrel.nmt.edu/~raymond
>>
>
> I'm not a Shotwell user but it works with libgphoto. You may wish to
> read /usr/local/share/doc/pkg-readmes/libgphoto
>
> Rafael
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Shotwell

2023-07-30 Thread Raymond, David
Hello,

I am trying to import photos using Shotwell over a usb connection with
the file transfer option. When I connect my phone to the usb port with
Shotwell running and select this option, Shotwell recognizes the phone
but says that there are no photos to transfer.  The transfer works on
Arch Linux.

Am I missing something?  Some kind of permissions?  The phone is a
Pixel 7 and I am running openbsd 7.3 stable.  I had the problem with
7.2 as well, but things worked before (I think with an earlier pixel
phone).

-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: error rebuilding binaries after 6.9->7.0 sysupgrade

2022-04-03 Thread Raymond, David
OK, thanks, good to know.

Dave

On 4/3/22, Stuart Henderson  wrote:
> On 2022/04/03 14:02, Raymond, David wrote:
>> So, to clarify, if I upgrade to a snapshot after upgrading to 7.0
>> stable, what happens when 7.1 stable comes along?  Can I get to that
>> stable release from a previous snapshot?
>
> Official binaries do not have "-stable" (neither releases nor
> syspatches). If your kernel has -stable in the version string then
> it is a self-built kernel and sysupgrade doesn't handle it
>
> At the current point in time, snapshots say "OpenBSD 7.1" with no
> suffix. When running such a kernel, if you want to do something other
> than "upgrade to whatever is currently in the /snapshots/ directory"
> or "upgrade to 7.*2* release when available" you either need to
> modify the sysupgrade shell script, or download the files yourself
> (typically the easy way to do this is to download the bsd.rd installer
> from the version you want and install manually)
>
> Unless you modify sysupgrade you can't get from a "OpenBSD 7.1" kernel
> to downloading files from the /7.1/ directory.
>
>> Dave Raymond
>>
>> On 4/3/22, Stuart Henderson  wrote:
>> > On 2022-04-03, Steve Fairhead  wrote:
>> >> On 07/11/2021 10:35, Steve Fairhead wrote:
>> >>>
>> >>> That's what I'd expect, and I did indeed run sysupgrade without
>> >>> specific
>> >>>
>> >>> options. Nonetheless I seem to have wound up with -current when I
>> >>> would
>> >>> have expected -stable:
>> >>>
>> >>> # dmesg | grep OpenBSD
>> >>> OpenBSD 6.9-stable (GENERIC.MP) #0: Mon Aug 23 21:44:18 BST 2021
>> >>> OpenBSD 6.9-stable (GENERIC.MP) #0: Sun Oct 31 10:03:46 GMT 2021
>> >>> OpenBSD 6.9-stable (GENERIC.MP) #0: Sun Oct 31 10:03:46 GMT 2021
>> >>> OpenBSD 7.0-current (RAMDISK_CD) #71: Fri Nov  5 10:13:26 MDT 2021
>> >>> OpenBSD 7.0-current (GENERIC.MP) #72: Fri Nov  5 10:08:43 MDT 2021
>> >>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 13:30:45 GMT 2021
>> >>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 16:15:08 GMT 2021
>> >>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 19:53:47 GMT 2021
>> >>>
>> >>> I have no idea how this can have happened. I would dearly love to
>> >>> understand what I did wrong.
>> >>
>> >> I *finally* figured out what happened, after some experimenting with a
>> >> spare machine. Running sysupgrade with no parameters on -stable (i.e.
>> >> -release + patches, rebuilt) upgrades to a snapshot (i.e. -current).
>> >>
>> >> Is this expected behaviour?
>> >
>> > sysupgrade only copes with what look like release versions (no version
>> > suffix, upgrades to release+0.1 with no arguments, or snapshot with -s)
>> > or snapshots (-current or -beta suffix, by default -current upgrades
>> > to release+0.1 or -beta upgrades to release, or snapshot with -s).
>> >
>> > It doesn't handle -stable, and it doesn't handle going from the current
>> > situation which is "it's still snapshots rather than release but
>> > there's
>> > no suffix" to the forthcoming release.
>> >
>> >
>> >
>>
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://kestrel.nmt.edu/~raymond
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: error rebuilding binaries after 6.9->7.0 sysupgrade

2022-04-03 Thread Raymond, David
So, to clarify, if I upgrade to a snapshot after upgrading to 7.0
stable, what happens when 7.1 stable comes along?  Can I get to that
stable release from a previous snapshot?

Dave Raymond

On 4/3/22, Stuart Henderson  wrote:
> On 2022-04-03, Steve Fairhead  wrote:
>> On 07/11/2021 10:35, Steve Fairhead wrote:
>>>
>>> That's what I'd expect, and I did indeed run sysupgrade without specific
>>>
>>> options. Nonetheless I seem to have wound up with -current when I would
>>> have expected -stable:
>>>
>>> # dmesg | grep OpenBSD
>>> OpenBSD 6.9-stable (GENERIC.MP) #0: Mon Aug 23 21:44:18 BST 2021
>>> OpenBSD 6.9-stable (GENERIC.MP) #0: Sun Oct 31 10:03:46 GMT 2021
>>> OpenBSD 6.9-stable (GENERIC.MP) #0: Sun Oct 31 10:03:46 GMT 2021
>>> OpenBSD 7.0-current (RAMDISK_CD) #71: Fri Nov  5 10:13:26 MDT 2021
>>> OpenBSD 7.0-current (GENERIC.MP) #72: Fri Nov  5 10:08:43 MDT 2021
>>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 13:30:45 GMT 2021
>>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 16:15:08 GMT 2021
>>> OpenBSD 7.0-stable (GENERIC.MP) #0: Sat Nov  6 19:53:47 GMT 2021
>>>
>>> I have no idea how this can have happened. I would dearly love to
>>> understand what I did wrong.
>>
>> I *finally* figured out what happened, after some experimenting with a
>> spare machine. Running sysupgrade with no parameters on -stable (i.e.
>> -release + patches, rebuilt) upgrades to a snapshot (i.e. -current).
>>
>> Is this expected behaviour?
>
> sysupgrade only copes with what look like release versions (no version
> suffix, upgrades to release+0.1 with no arguments, or snapshot with -s)
> or snapshots (-current or -beta suffix, by default -current upgrades
> to release+0.1 or -beta upgrades to release, or snapshot with -s).
>
> It doesn't handle -stable, and it doesn't handle going from the current
> situation which is "it's still snapshots rather than release but there's
> no suffix" to the forthcoming release.
>
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: No firefox on OpenBSD 7.0 i386?

2022-01-07 Thread Raymond, David
I do internet banking with epiphany.

On 1/7/22, Raymond, David  wrote:
> I use epiphany quite a bit, and like it a lot, though there are
> websites on which it crashes.  It uses the same toolkit as midori and
> in my opinion has a somewhat better user interface.  Don't know
> whether it works on i386 at this point.
>
> Dave Raymond
>
> On 1/7/22, Crystal Kolipe  wrote:
>> On Fri, Jan 07, 2022 at 05:06:24PM +0100, Josuah Demangeon wrote:
>>
>>> * https://surf.suckless.org/ (webkit/gtk+)
>>
>> Surf would work well on his hardware, but it's minimal interface is
>> somewhat
>> different to a traditional web browser, and probably not what he is
>> expecting.
>>
>> It also has some fairly unique issues with some websites due to the way
>> non-html links are passed to curl.  Session cookies are not passed to the
>> curl instance, so downloading anything that requires authentication from
>> any
>> kind of portal that you're logged in to generally doesn't work, (think
>> statements on internet banking, etc).  Surf also often chokes on pop-up
>> windows that have a javascript target URI, and there are a few other
>> oddities as well.
>>
>> Having said that, I use surf a lot, our website definitely works well in
>> Surf, and the way you can drive Surf completely via keyboard navigation
>> is
>> excellent.
>>
>>> * https://sourceforge.net/projects/midori-browser/ (as on Raspbian)
>>
>> Midori might be worth looking at as a light-weight browser replacement
>> for
>> Firefox, although I haven't used it for a number of years.
>>
>>> But you might encounter increasingly more websites that do not work
>>> with them, as the web grows in complexity.
>>
>> Agreed.
>>
>>
>
>
> --
> David J. Raymond
> david.raym...@nmt.edu
> http://kestrel.nmt.edu/~raymond
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: No firefox on OpenBSD 7.0 i386?

2022-01-07 Thread Raymond, David
I use epiphany quite a bit, and like it a lot, though there are
websites on which it crashes.  It uses the same toolkit as midori and
in my opinion has a somewhat better user interface.  Don't know
whether it works on i386 at this point.

Dave Raymond

On 1/7/22, Crystal Kolipe  wrote:
> On Fri, Jan 07, 2022 at 05:06:24PM +0100, Josuah Demangeon wrote:
>
>> * https://surf.suckless.org/ (webkit/gtk+)
>
> Surf would work well on his hardware, but it's minimal interface is somewhat
> different to a traditional web browser, and probably not what he is
> expecting.
>
> It also has some fairly unique issues with some websites due to the way
> non-html links are passed to curl.  Session cookies are not passed to the
> curl instance, so downloading anything that requires authentication from any
> kind of portal that you're logged in to generally doesn't work, (think
> statements on internet banking, etc).  Surf also often chokes on pop-up
> windows that have a javascript target URI, and there are a few other
> oddities as well.
>
> Having said that, I use surf a lot, our website definitely works well in
> Surf, and the way you can drive Surf completely via keyboard navigation is
> excellent.
>
>> * https://sourceforge.net/projects/midori-browser/ (as on Raspbian)
>
> Midori might be worth looking at as a light-weight browser replacement for
> Firefox, although I haven't used it for a number of years.
>
>> But you might encounter increasingly more websites that do not work
>> with them, as the web grows in complexity.
>
> Agreed.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Importing files into shotwell

2021-07-06 Thread Raymond, David
I tried to import a .jpg file into shotwell from the file system, but all
files (as opposed to directories) are grayed out and inaccessible in the
shotwell import menu.  Is this a bug or a feature?

I'm using an up-to-date stable 6.9 version of the os with shotwell-0.30.11.

David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond


Re: Suspend/resume does not work on Lenovo X1 Carbon 3rd gen laptop

2021-03-22 Thread Raymond, David
Hi Mark,

I checked my gen 4 X1 Carbon and it has both TPM and AMT, though I
have AMT turned off in the bios.  I also have secure boot turned off
so I don't have to mess with TPM stuff.  Suspend/resume has always
worked fine on this machine in obsd 6.6-6.8.  I have never used gen 2
or gen3 X1s, though as I mentioned, the gen 1 version also works.

Dave

On 3/22/21, Mark Hesselink  wrote:
> Hi Dave,
>
> The suspend/resume issues could have something to do with the type of
> system board in this particular laptop: It has a 00HT361 system board
> with AMT and TPM support, features that not all system boards have. Do
> any of your X1 laptops have a system board with these features?
>
> I upgraded to the 6.9-beta as I noticed a tpm(4) commit early this year
> which attempted to resolve suspend/resume issues for a 2nd gen Lenovo X1
> Carbon laptop. My hope was that this commit would resolve the issues on
> my 3rd gen laptop as well, but unfortunately it did not.
>
> Cheers,
>
> Mark
>
> P.S. A list of compatible system boards for the Lenovo X1 Carbon 3rd gen
> laptop can  be found at
> https://pcsupport.lenovo.com/gb/en/products/laptops-and-netbooks/thinkpad-x-series-laptops/thinkpad-x1-carbon-20bs-20bt/20bs/parts/display/compatible
>
> On 3/22/2021 4:34 PM, Raymond, David wrote:
>> This is odd, as I have 3 X1 laptops, gens 1, 4, and 5 and
>> suspend/resume works fine on all of them.  However, I am still on
>> openbsd-6.8.
>>
>> Dave Raymond
>>
>> On 3/22/21, Mark Hesselink  wrote:
>>> Hi,
>>>
>>> I'm sending the below bug report to misc@openbsd.org as I have
>>> deliberately not configured my OpenBSD workstations to be able to send
>>> mail -- they are mostly used by my children -- and a bug report sent
>>> directly to b...@openbsd.org never seems to have arrived. Hopefully this
>>> email does arrive.
>>>
>>> Cheers,
>>>
>>> Mark
>>>
>>> ---
>>>
>>>   >Synopsis:Suspend/resume does not work on Lenovo X2 Carbon 3rd gen
>>> laptop
>>>   >Category:system
>>>   >Environment:
>>>   System  : OpenBSD 6.9
>>>   Details : OpenBSD 6.9-beta (GENERIC.MP) #398: Fri Mar 12
>>> 15:01:24 MST 2021
>>> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>>>
>>>   Architecture: OpenBSD.amd64
>>>   Machine : amd64
>>>   >Description:
>>>   Suspend/resume unfortunately does not work on my Lenovo X1 Carbon
>>>   3rd gen laptop. Suspending the laptop using the ZZZ command does
>>>   seem to suspend the laptop, but restarting the laptop afterwards
>>>   does not result in the expected boot loader prompt of:
>>>
>>>   >> OpenBSD/amd64 BOOT 3.53
>>>   unhibernate detected: switching to /bsd.booted
>>>   boot>
>>>
>>>   Instead a standard boot prompt is presented as if the laptop never
>>>   completed the suspend request, but instead was abruptly shut down.
>>>   During boot the system detects that 1 or more filesystems were not
>>>   cleanly unmounted as well.
>>>
>>>   I have tried playing around with the various TPM settings in the
>>>   BIOS, i.e. disabled, hidden and enabled TPM. Neither of these
>>>   settings seem to have an effects on the laptop's ability to
>>> cleanly
>>>   suspend/resume.
>>>   >How-To-Repeat:
>>>   ZZZ followed by booting of the laptop.
>>>   >Fix:
>>>   No known work around.
>>>
>>>
>>> dmesg:
>>> OpenBSD 6.9-beta (GENERIC.MP) #398: Fri Mar 12 15:01:24 MST 2021
>>> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>>> real mem = 8261603328 (7878MB)
>>> avail mem = 7995826176 (7625MB)
>>> random: good seed from bootblocks
>>> mpath0 at root
>>> scsibus0 at mpath0: 256 targets
>>> mainbus0 at root
>>> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfd000 (65 entries)
>>> bios0: vendor LENOVO version "N14ET54W (1.32 )" date 03/19/2020
>>> bios0: LENOVO 20BTS0MX00
>>> acpi0 at bios0: ACPI 5.0
>>> acpi0: sleep states S0 S3 S4 S5
>>> acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT
>>> SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT TCPA SSDT UEFI MSDM BATB FPDT
>>> UEFI
>>> acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3)
>>> EHC1(S3)
>>> acpitimer0 at acpi0: 3579545 Hz, 24 bits
>

Re: Suspend/resume does not work on Lenovo X1 Carbon 3rd gen laptop

2021-03-22 Thread Raymond, David
This is odd, as I have 3 X1 laptops, gens 1, 4, and 5 and
suspend/resume works fine on all of them.  However, I am still on
openbsd-6.8.

Dave Raymond

On 3/22/21, Mark Hesselink  wrote:
> Hi,
>
> I'm sending the below bug report to misc@openbsd.org as I have
> deliberately not configured my OpenBSD workstations to be able to send
> mail -- they are mostly used by my children -- and a bug report sent
> directly to b...@openbsd.org never seems to have arrived. Hopefully this
> email does arrive.
>
> Cheers,
>
> Mark
>
> ---
>
>  >Synopsis:Suspend/resume does not work on Lenovo X2 Carbon 3rd gen
> laptop
>  >Category:system
>  >Environment:
>  System  : OpenBSD 6.9
>  Details : OpenBSD 6.9-beta (GENERIC.MP) #398: Fri Mar 12
> 15:01:24 MST 2021
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
>  Architecture: OpenBSD.amd64
>  Machine : amd64
>  >Description:
>  Suspend/resume unfortunately does not work on my Lenovo X1 Carbon
>  3rd gen laptop. Suspending the laptop using the ZZZ command does
>  seem to suspend the laptop, but restarting the laptop afterwards
>  does not result in the expected boot loader prompt of:
>
>  >> OpenBSD/amd64 BOOT 3.53
>  unhibernate detected: switching to /bsd.booted
>  boot>
>
>  Instead a standard boot prompt is presented as if the laptop never
>  completed the suspend request, but instead was abruptly shut down.
>  During boot the system detects that 1 or more filesystems were not
>  cleanly unmounted as well.
>
>  I have tried playing around with the various TPM settings in the
>  BIOS, i.e. disabled, hidden and enabled TPM. Neither of these
>  settings seem to have an effects on the laptop's ability to cleanly
>  suspend/resume.
>  >How-To-Repeat:
>  ZZZ followed by booting of the laptop.
>  >Fix:
>  No known work around.
>
>
> dmesg:
> OpenBSD 6.9-beta (GENERIC.MP) #398: Fri Mar 12 15:01:24 MST 2021
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8261603328 (7878MB)
> avail mem = 7995826176 (7625MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfd000 (65 entries)
> bios0: vendor LENOVO version "N14ET54W (1.32 )" date 03/19/2020
> bios0: LENOVO 20BTS0MX00
> acpi0 at bios0: ACPI 5.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT
> SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT TCPA SSDT UEFI MSDM BATB FPDT UEFI
> acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpiec0 at acpi0
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.63 MHz, 06-3d-04
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> 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.2.4.1.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.24 MHz, 06-3d-04
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xf800, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (PEG_)
> acpiprt2 at acpi0: bus 3 (EXP1)
> acpiprt3 at acpi0: bus 4 (EXP2)
> acpiprt4 at acpi0: bus -1 (EXP3)
> acpiprt5 at acpi0: bus 10 (EXP6)
> acpibtn0 at acpi0: LID_
> acpibtn1 at acpi0: SLPB
> acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001
> acpicmos0 at acpi0
> acpibat0 at acpi0: BAT0 model "00HW003" serial  3800 type LiP oem "SMP"
> acpiac0 at acpi0: AC unit online
> acpithinkpad0 at acpi0: version 1.0
> tpm0 at acpi0 TPM_ addr 

Re: home printer

2021-02-07 Thread Raymond, David
I use an HP Color Laser Jet Pro MFP M283fdw on OpenBSD and it works
well with cups.  The generic postscript driver works with it on cups,
so openbsd lpd should work as well.  HP also has some cheaper
monochrome laser printers in the same line.

Dave Raymond

On 2/7/21, Jan Stary  wrote:
> On Sep 17 16:07:47, h...@stare.cz wrote:
>> Can people please recommend a home laser printer
>> that is known to work well with OpenBSD?
>>
>> I would like to avoid cups, and possibly a2ps
>> and foo* and if= and all that dance
>> - a printer that speaks postscript and is as easy as
>> lp:lp=/dev/lp:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
>
> On Sep 17 18:48:35, schwa...@usta.de wrote:
>> what matters is a decent PostScript Processor
>> and a RJ45 Ethernet connector, then it will work with OpenBSD
>> no matter what.
>
> After a bit of trial and error, I converged to a Dell 2335dn MFP.
> The configuration, in its entirety, is the following printcap line:
> lp::lp=:rm=pr.stare.cz:rp=lp:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:
>
> Jan
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: chromium has troubles showing videos from youtube

2020-11-10 Thread Raymond, David
Regarding youtube videos on chromium, I had the same problem on the
epiphany browser.  The solution in that case was to install optional
gstreamer packages.  I don't know if all of these are required:

gstreamer-0.10.36p13 framework for streaming media
gstreamer-ffmpeg-0.10.13p16 ffmpeg element for GStreamer
gstreamer-plugins-base-0.10.36p19 base elements for GStreamer
gstreamer-plugins-good-0.10.31p26v0 good elements for GStreamer
gstreamer1-1.18.0   framework for streaming media
gstreamer1-plugins-base-1.18.0 base elements for GStreamer
gstreamer1-plugins-good-1.18.0 good elements for GStreamer
gstreamer1-plugins-libav-1.18.0 ffmpeg elements for GStreamer

Maybe chromium has the same issues.

Dave Raymond


On 11/10/20, Aaron Mason  wrote:
> On Wed, Nov 11, 2020 at 7:42 AM Gregory Edigarov 
> wrote:
>>
>> Hello,
>>
>> chromium-86.0.4240.185, installed from packages
>> is showing spinner and goes no further  after the first ad before video,
>> and not.
>> at first I thought  it is some extension, but with clean chromium the
>> behavior is
>> still the same.
>>
>> does anybody else observing this? or is it just me?
>>
>> --
>> With best regards,
>>Gregory Edigarov
>>
>
> Hi
>
> If you open up the developer console and start a video, do you see any
> requests that end in an error in the Network tab?
>
> --
> Aaron Mason - Programmer, open source addict
> I've taken my software vows - for beta or for worse
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



filters in OpenBSD in printing

2020-10-19 Thread Raymond, David
Questions about lpr printing:

I tried putting a filter that drives an HP Deskjet printer (works with
lprng on linux) as an output filter in printcap and it didn't work.
Would it be more proper to put it as an input filter?  I am still on
version 6.7 of the OS.  (I saw a recent post indicating that changes
were made to the lpr system in 6.8.)

One of the problems was that I couldn't get rid of the banner page
even though the appropriate flags were set.

I have looked for lpr documentation more informative than the
lpr/lpd/printcap man pages, but I haven't found anything.  The
printcap page describes some really archaic filters, but not much that
is helpful in today's world.

I am currently using cups but would like to get rid of it, because if
their set of filters doesn't do the job, you are stuck.  (Plus other
hair-pulling frustrations.)

Dave

-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: OpenBSD X support for big resolution monitors

2020-08-24 Thread Raymond, David
I am running openbsd on a laptop with 2560x1440 pixels and X11 handles this
just fine.  However, I do reduce the effective resolution to 1600x900 to
avoid the tiny font problem.  I add the following (named 10-screen.conf) to
/etc/X11/xorg.conf.d, however you can do this on the fly with programs like
lxrandr.

Dave Raymond

Section "Screen"
Identifier "Screen0"
SubSection "Display"
   Virtual 1600 900
EndSubSection
EndSection



David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond





On Fri, Aug 21, 2020 at 9:07 PM Maksym Sheremet 
wrote:

> On Sat, Aug 22, 2020 at 12:29:04AM +0200, Mark Patruck wrote:
> >
> >   Basically, you need to set:
> >
> >   - Xft.dpi: 120  in ~/.Xresources
> >   - xrandr --dpi 120  in ~/.xsession
> >
> >
>
> Alternatively you can set an appropriate DisplaySize entry in Monitor
> section of xorg.conf(5).
>
> --
> MS
>
>


email attachments in firefox

2020-08-21 Thread Raymond, David
I noticed that trying to load an attachment to Gmail in Firefox leads
to a basically empty menu for selecting the file to be loaded?  What
gives?  Is this something to do with pledge/unveil?  Is there a way to
do this?

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: AMD Ryzen

2020-06-25 Thread Raymond, David
I have several Ryzen 3 and Ryzen 7 systems running OpenBSD 6.6 and
6.7, and they work great.  6.6 had some minor issues with Ryzen 3
graphics but these appear to be resolved in 6.7.

Dave Raymond

On 6/23/20, Joe Barnett  wrote:
> On 2020-06-23 08:56, Gregory Edigarov wrote:
>> Hello,
>>
>> Can somebody tell me overall impressions/success stories of those
>> systems?
>> I am thinking of buying this system as my next desktop for OpenBSD of
>> course, so please share.
>> Most interesting would be dmesgs of some working configurations.
>> Thanks a lot in advance
>> --
>> With best regards,
>>   Gregory Edigarov
>
> I have a Ryzen 3 3200G sitting on an ASRock B450M-HDV R4.0 with 16GB
> RAM, and it seems to run OpenBSD (6.7) very well.  I added Window Maker
> via packages, along with a few others such as firefox-esr, pidgin, qgis,
> postgresql (both server and client), and a few others, again all from
> packages.  Bear in mind I usually use OpenBSD for network devices rather
> than on the desktop, but my experiment so far with the above system and
> config has been very positive -- very stable and responsive when booted
> into the graphical environment.  This machine has no wifi capability, so
> I cannot comment on that, and I do not have speakers attached, so cannot
> comment on sound support.
>
> This CPU is a somewhat new-ish model with built-in Radeon Vega graphics
> which gave fits to several Linux distros*, but which seems to work right
> out of the box with OpenBSD 6.7.
>
> *latest Debian, and latest Xubuntu experienced trouble on this machine
> when in graphical mode, though the latest regular Ubuntu does work
> nicely with this machine.
>
> Good luck,
>
> Joe
>
> dmesg:
> OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun  4 09:55:08 MDT 2020
>
> r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 14941401088 (14249MB)
> avail mem = 14475939840 (13805MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xe6cc0 (24 entries)
> bios0: vendor American Megatrends Inc. version "P3.70" date 11/14/2019
> bios0: ASRock B450M-HDV R4.0
> acpi0 at bios0: ACPI 6.0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT SSDT SSDT SSDT MCFG AAFT HPET
> UEFI SSDT CRAT CDIT SSDT SSDT WSMT
> acpi0: wakeup devices GPP0(S4) GPP2(S4) GPP3(S4) GPP4(S4) GPP5(S4)
> GPP6(S4) GP17(S4) XHC0(S4) XHC1(S4) GP18(S4) GPP1(S4) PTXH(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD Ryzen 3 3200G with Radeon Vega Graphics, 3593.83 MHz, 17-18-01
> 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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
> cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache
> cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 24MHz
> cpu0: mwait min=64, max=64, C-substates=1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: AMD Ryzen 3 3200G with Radeon Vega Graphics, 3593.21 MHz, 17-18-01
> 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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
> cpu1: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache
> cpu1: ITLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu1: smt 0, core 2, package 0
> cpu2 at mainbus0: apid 1 (application processor)
> cpu2: AMD Ryzen 3 3200G with Radeon Vega Graphics, 3593.21 MHz, 17-18-01
> cpu2:
> 

Re: Sysupgrade fails with "cannot create SHA256.sig: Permission denied"

2020-06-17 Thread Raymond, David
Bingo!  You are right on, as /home is an nfs mount.  Unmounting it
allows sysupgrade to work.

Thanks!

Dave Raymond

On 6/17/20, Florian Obser  wrote:
> Wild guess, /home is an nfs mount or mounted read-only? That's not going to
> work unfortunately.
>
>
> On 17 June 2020 22:23:13 CEST, "Raymond, David" 
> wrote:
>>I am trying to upgrade a bunch of machines from 6.6 to 6.7 using
>>sysupgrade and I get the message
>>
>>/usr/sbin/sysupgrade[136]: cannot create SHA256.sig: Permission denied
>>
>>These are AMD64 machines on wired internet at my university.
>>Sysupgrade worked fine on a laptop and on an AMD desktop using my home
>>internet provider.
>>
>>Any hints?  Might there be some protocol that is blocked by the
>>university network?  When I boot bsd.rd directly (after having been
>>locally verified), the upgrade works fine.
>>
>>Dave Raymond
>
> --
> Sent from a mobile device. Please excuse poor formating.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Sysupgrade fails with "cannot create SHA256.sig: Permission denied"

2020-06-17 Thread Raymond, David
I am trying to upgrade a bunch of machines from 6.6 to 6.7 using
sysupgrade and I get the message

/usr/sbin/sysupgrade[136]: cannot create SHA256.sig: Permission denied

These are AMD64 machines on wired internet at my university.
Sysupgrade worked fine on a laptop and on an AMD desktop using my home
internet provider.

Any hints?  Might there be some protocol that is blocked by the
university network?  When I boot bsd.rd directly (after having been
locally verified), the upgrade works fine.

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://kestrel.nmt.edu/~raymond



Re: Problems with clementine music player with 6.7

2020-06-04 Thread Raymond, David
I like clementine as well but it disappeared from the compiled ports
going from 6.5 to 6.6.  I went to musique, which is much simpler but
does the job.  I haven't migrated to 6.7 yet.

Dave Raymond

On 6/4/20, Why 42? The lists account.  wrote:
>
> Hi All,
>
> My preferred music player application is (was) clementine. But with a 6.7
> snapshot (GENERIC.MP#213 amd64) and clementine-1.4.0rc1p0 the application
> seems to have problems opening files.
>
> For example the file open dialog opens a blank dialog box and a series
> of assertion failures/errors are reported (verbose mode) such as:
>> (clementine:67859): Gtk-CRITICAL **: 18:23:29.544: Error building template
>> class 'GtkDialog' for an instance of type 'GtkDialog': .:2:367 Invalid
>> object type 'GtkHeaderBar'
>> (clementine:67859): Gtk-CRITICAL **: 18:23:29.546: Error building template
>> class 'GtkFileChooserDialog' for an instance of type
>> 'GtkFileChooserDialog': Unknown internal child: vbox
>> (clementine:67859): Gtk-CRITICAL **: 18:23:31.896: Error building template
>> class 'GtkTooltipWindow' for an instance of type 'GtkTooltipWindow':
>> .:2:524 Invalid object type 'GtkImage'
>
> Similarly, clementine cannot build up its music database. When I try to
> set the location of the music files (Tools -> Preferences -> Music
> Library) a similar set of errors is reported.
>
> Dragging and dropping a music file from Thunar works fine, so there
> doesn't seem to be a problem with filesystem access ...
>
> I know next to nothing about GTK :-( ... any suggestions? I had no
> issues using clementine with 6.6.
>
> Are there alternative players that might work better?
>
> Cheers,
> Robb.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Help, i want to ask if my Asus Vivobook Ryzen 3 , Vega 3 can run openbsd

2020-05-25 Thread Raymond, David
I run Vega 3 graphics on desktops.  There are a few quirks, the most
important being to turn off the hardware cursor.  If I read the
upgrade notice for 6.7 correctly, the cursor problem may be fixed in
that version.

Don't know about wireless.  You may have to get a usb wireless dongle.

I had terrible (but ultimately solvable) problems associated with the
bios getting linux to work on a Thinkpad E series which runs on AMD
cpu/graphics.  Hopefully ASUS doesn't have the same problem.

Best of luck!

Dave Raymond

On 5/25/20, David McMackins  wrote:
> I've seen other reports that the new Vega graphics don't work with the
> amdgpu driver. I'd be curious to know your results. Can't hurt to try
> anyway.
>
>
> Regards,
>
> David E. McMackins II
> www.mcmackins.org www.delwink.com
>
> On 5/25/20 12:12 PM, Charlie Burnett wrote:
>> Ryzen 3 Vega is based on the Raven architecture, which has worked for me
>> on
>> machines before so I'm not sure you'd have much issue with it, I'd
>> imagine
>> it'd just work "out of the box". Wireless is up in the air, since the
>> card
>> didn't seem to be listed on the specifications online.
>>
>> On Mon, May 25, 2020 at 10:49 AM flint pyrite 
>> wrote:
>>
>>> You probably should check for wifi compatibility.
>>>
>>> On Sun, May 24, 2020 at 9:50 PM Digital Crow 
>>> wrote:
>>>
 Help, i want to ask if my Asus Vivobook Ryzen 3 , Vega 3  can run
 openbsd
 I have problems with freebsd i can't run xorg it has a problem with efi
 framebuffer and amdgpu driver.
 It seems that this laptop can boot only efi partitions there's no
 setting
 on bios about csm or anything else related to it.
 Is it possible  openbsd would work ?
 Also is the process the same as freebsd ?
 I need to install drm-kmod and add kld_list amdgpu on rc.conf
 The openbsd installer create efi boot partition ?
 I think this laptop can boot only efi partitions

>>>
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: dynamic dns updates for clients in my home network?

2020-04-25 Thread Raymond, David
I use dnsmasq (an openbsd package) on the gateway for my lab ethernet
network and it works great with minimal configuration as a local DNS
server.  At home I have a Synology wireless router which does the same
as long as you tell it to make DNS reservations.  Your mileage may
vary with cheaper routers.  One could in principle use dnsmasq even in
this case, but I haven't tried it.


Dave Raymond

On 4/25/20, bofh  wrote:
> Hi,
> I searched through the archives and saw a couple of discussions about using
> Dnsmasq from a long time ago.
>
> Is that the best way to let the stuff in my home to have valid dns entries
> in my home network?
>
> How difficult is it to get the OpenBSD provided dhcpd and unbound to do
> this?
>
> Thanks.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: chattr on OpenBSD???

2020-04-17 Thread Raymond, David
Hmm... Why would I want e2fsprogs on OpenBSD???  Oh, I see,
libreoffice drags it in.  One more thing I wish I could dispense with.

Dave

On 4/17/20, Bryan Steele  wrote:
> On Fri, Apr 17, 2020 at 09:11:15AM -0600, Raymond, David wrote:
>> I noticed that chattr exists on OpenBSD.  The man page says it applies
>> to Linux file systems (ext* etc).  Two questions:
>
> No. You have e2fsprogs installed.
>
> e2fsprogs-1.42.12p5:sysutils/e2fsprogs:/usr/local/man/man1/chattr.1
>
>
> ..bottom of chattr(1):
>
> E2fsprogs version 1.42.12 August 2014CHATTR(1)
>
> -Bryan.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



chattr on OpenBSD???

2020-04-17 Thread Raymond, David
I noticed that chattr exists on OpenBSD.  The man page says it applies
to Linux file systems (ext* etc).  Two questions:

1. Does this also apply to OpenBSD's fast file system?  (The man page
would suggest not.)

2. If not, is it of any use on OpenBSD?

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: GNU+Linux corporate takeover, was: Wine for OpenBSD?

2020-04-14 Thread Raymond, David
Amen to all that.  Arch Linux worked for me for many years, but the
Arch philosophy of adopting bleeding edge software has become
increasingly difficult to deal with, given the corporate takeover of
Linux.  Started out with BSD in the early days, moved to Slackware,
Debian, and then Arch.  Finally got fed up and explored the major BSD
derivatives and OpenBSD was the only one I found where things just
work (most of the time!).

Kudos to Theo and everybody involved.  I try to help where I can,
though my abilities and time are limited even in retirement.

Dave

On 4/14/20, Oddmund G.  wrote:
> Le 14/04/2020 à 15:49, Ottavio Caruso a écrit :
>> On Tue, 14 Apr 2020 at 12:06, Oddmund G.  wrote:
>>> Since the ongoing corporate takeover of GNU+Linux,
>> GNU, whether we like them or not, have not been and will not be taken
>> over by "corporate", as long as Stallman is alive.
>>
>> As for Linux, it is not an OS but just a kernel. The only distros that
>> has been taken over by "corporate" are Red Hat (but it was annoyingly
>> corporate-friendly even before it was bought by IBM) and SuSE. The
>> remaining  have not been taken over by
>> "corporate" if they wanted to.
>>
>> Cheap digs don't usually get the facts right.
>>
> I know all this, Ottavio. I have been using GNU+Linux since 1994 after
> several years with Ultrix/VMS/OpenVMS @DEC: Slackware in the beginning,
> then Debian until the forced introduction of systemd and the rest of the
> crap being considered as 'much better' and 'mandatory'.
>
> Even FSF has swallowed this, because systemd is 'free software',
> Trisquel being Ubuntu-based adopted it as if nothing had happened or
> they probably thougfht they had no choice. Stallman pissed in his pants
> and is not relevant any more.
>
> Corporate takeovers does not happen overnight and there are some
> resistance. 60-70 Linux 'distributions' are still using non-systemd
> inits. The problem is that the 'big' core distributions are being
> streamlined to be 'compatible' with 'New Linu$'. Micro$oft became a
> member of the Linu$ Foundation almost four years ago. I strongly believe
> that it was not for 'fun'...
>
> Linux is doomed. Closer 'integration' of systemd, pulseaudio, wayland
> ++. with other system components will make it very difficult, if not
> impossible to continue resisting and keeping up alternative GNU+Linux
> development in the future. This was one of the reasons why I switched to
> OpenBSD a couple of years ago. I tried it for a while by the end of the
> '90s, but it wasn't adapted to what I was doing at that time, so I
> switched back to Debian.
>
> Now I am retired and it is absolutely perfect! Thank you Theo & all the
> other guys & girls keeping it alive and kickin'!
>
> Cheers,
>
> Oddmund
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Iridium vs Chromium

2020-04-12 Thread Raymond, David
Theo,

Thanks for your explanations.  I appreciate the efforts of you and
your colleagues in keeping OpenBSD as up to date and secure as
possible.  That is one of the main reasons I am using it.

Dave Raymond

On 4/12/20, Theo de Raadt  wrote:
> Raymond, David  wrote:
>
>> That said, I am a bit nervous about OpenBSD's lags in
>> keeping up with browser security fixes.
>
> It isn't that simple.
>
> They don't ship security fixes standalone.  Instead, they ship a mix of
> new changes *and* fixes.  Lots of new unrelated changes, and only a few
> security fixes.  These fixes cannot be plausibly seperated out, as doing
> such a seperate procedure would increase the development workload, and
> increase the update lag.  So instead this software is accepted from
> mainstream
> on the assumption of their best effort, and then the following happens:
>
> The large changesets requires evaluation and verification, to ensure it
> still works with the pledge/unveil changes.  The pledge/unveil changes
> introduce a tighter sandbox than other operating systems have.  Quite
> often, upstream performs operations in the wrong order, and robert finds
> this out during test.  This friction slows the development a little.
>
> But I believe you are completely wrong about how long this lag is.
> You are being inaccurate because you don't know, and making it sound
> like the lagg is many months.
>
> 81.0.4044.92 came out 5 days ago, and here you can see it enter the ports
> tree 2 days ago.
>
> 1 hour ago it was replaced with a newer update.
>
> date: 2020/04/10 18:51:30;  author: robert
> update to 81.0.4044.92;
> date: 2020/04/03 13:44:40;  author: robert
> update to 80.0.3987.163
> date: 2020/04/01 12:32:05;  author: robert
> update to chromium-80.0.3987.162;
> date: 2020/03/21 14:08:01;  author: robert
> update to 80.0.3987.149 and apply the following changes:
> date: 2020/03/11 23:57:03;  author: espie
> date: 2020/03/04 15:44:17;  author: robert
> update to 80.0.3987.132 and fix the component flavor while here
> date: 2020/02/22 12:33:20;  author: robert
> update to 80.0.3987.116;
> date: 2020/01/17 20:43:38;  author: robert
> update to 79.0.3945.130
> date: 2020/01/08 14:43:32;  author: robert
> update to 79.0.3945.117
> date: 2019/12/18 09:01:35;  author: robert
> update to 79.0.3945.88
> date: 2019/12/15 12:03:46;  author: robert
> update to 79.0.3945.79
> date: 2019/11/20 18:26:30;  author: robert
> update to 78.0.3904.106
> date: 2019/11/07 10:47:41;  author: robert
> update to 78.0.3904.97
> date: 2019/11/05 22:30:26;  author: robert
> update to 78.0.3904.87
> date: 2019/10/22 18:35:43;  author: robert
> update to 77.0.3865.120 and make sure to use HW_NCPUONLINE instead of
> HW_NCPU
>
> You can pick through that list and compare the dates to the
> pledge/unveil adaptations commited into the tree.  It appears to move
> very rapidly, more rapidly than the average port.  The changes don't
> neccessarily make it into -stable and -stable packages, but *we never
> promised that*, and this specific pledge/unveil-using application is now
> using API that didn't exist in 6.6.
>
>> (I'm not criticizing -- I understand that ...
>
> Yes, you are are criticizing.  And with inaccurate statements.  And you
> are wrong about there being a lagg.  By telling the world the chromium
> openbsd effort is "slow", you are being an innaccurate downer.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Iridium vs Chromium

2020-04-12 Thread Raymond, David
My problem with iridium is that it is based on an older version of
chromium and I am not sure that they keep up with inevitable flow of
security fixes.  That said, I am a bit nervous about OpenBSD's lags in
keeping up with browser security fixes.  (I'm not criticizing -- I
understand that OpenBSD is a small operation without the people needed
to keep track of non-core packages.  And I just converted from Arch
Linux, in which the storm of updates and resulting incompatibilities
drove me crazy and contributed to my shift to OpenBSD.  Still, I am a
bit nervous about even slightly out-of-date browsers at this point and
I am not sure that iridium is an improvement in this regard.)

Dave

On 4/12/20, Elias M. Mariani  wrote:
> I'm not much of a browser savy guy.
> Is Iridium really safer than Chromium?
> Leaving aside the "Google is tracking you!".
>
> Any recommendations on the browser front on performance, security and
> compatibility?
> I've been using Chrome and Chromium for years, but maybe there are
> better alternatives that I'm unaware of...
>
> Cheers.
> Elias.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



More on wscons/X11 problem

2020-04-03 Thread Raymond, David
I am trying to install X11 on a new machine (Zotac box running quad
core Celeron with Intel HD graphics).  X11 fails to launch with a
message about not being able to find a console driver, as the Xorg log
file shows below:



[   199.973] (==) Log file: "/home/raymond/.local/share/xorg/Xorg.0.log", Time:\
 Tue Mar 31 10:23:19 2020
[   199.974] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf\
.d"
[   199.974] (==) No Layout section.  Using the first Screen section.
[   199.975] (==) No screen section available. Using defaults.
[   199.975] (**) |-->Screen "Default Screen Section" (0)
[   199.975] (**) |   |-->Monitor ""
[   199.976] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[   199.976] (==) Automatically adding devices
[   199.976] (==) Automatically enabling devices
[   199.976] (==) Not automatically adding GPU devices
[   199.976] (==) Max clients allowed: 256, resource mask: 0x1f
[   199.977] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[   199.977] (==) ModulePath set to "/usr/X11R6/lib/modules"
[   199.977] (II) The server relies on wscons to provide the list of input devi\
ces.
If no devices become available, reconfigure wscons or disable AutoAddDe\
vices.
[   199.977] (==) ModulePath set to "/usr/X11R6/lib/modules"
[   199.977] (II) The server relies on wscons to provide the list of input devi\
ces.
If no devices become available, reconfigure wscons or disable AutoAddDe\
vices.
[   199.977] (II) Loader magic: 0x3c2056ae000
[   199.977] (II) Module ABI versions:
[   199.977]X.Org ANSI C Emulation: 0.4
[   199.977]X.Org Video Driver: 24.1
[   199.977]X.Org XInput driver : 24.1
[   199.977]X.Org Server Extension : 10.0
[   199.978] (EE)
Fatal server error:
[   199.978] (EE) xf86OpenConsole: No console driver found
Supported drivers: wscons
Check your kernel's console driver configuration and /dev entries(EE)
[   199.978] (EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
[   199.978] (EE) Please also check the log file at "/home/raymond/.local/share\
/xorg/Xorg.0.log" for additional information.
[   199.978] (EE)
[   199.979] (EE) Server terminated with error (1). Closing log file.


I have compared the console and ttyC* entries in /dev/ with a
functioning X11 system on my laptop.  There were some differences in
permissions, but changing those to match the laptop didn't help.
Disabling AutoAddDevices  in an X11 configuration file snippit didn't
help either.

Any pointers on where to look to fix this problem?


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond


X11zotac.dmesg
Description: Binary data


X11 fails to start on Zotac box

2020-03-31 Thread Raymond, David
I am trying to get X11 working on a Zotac box with a quad core Celeron
processor, ZBOX-CI323NANO with "Intel HD graphics" (no further info).

No dice.  Starting xenodm from boot results in a hang with a blank
screen.  Running startx after boot produces some output to stderr and
an Xorg log file entry.  I am attaching both and the dmesg output.

I noticed the entry in the log file

***
[   199.977] (II) The server relies on wscons to provide the list of input devi\
ces.
If no devices become available, reconfigure wscons or disable AutoAddDe\
vices.
[   199.977] (II) Loader magic: 0x3c2056ae000
[   199.977] (II) Module ABI versions:
[   199.977]X.Org ANSI C Emulation: 0.4
[   199.977]X.Org Video Driver: 24.1
[   199.977]X.Org XInput driver : 24.1
[   199.977]X.Org Server Extension : 10.0
[   199.978] (EE)
Fatal server error:
[   199.978] (EE) xf86OpenConsole: No console driver found
Supported drivers: wscons
Check your kernel's console driver configuration and /dev entries(EE)
[   199.978] (EE)


but I am not quite sure what to do about it.

Forgot to mention that I am running openbsd 6.6-current (as of 31 March 2020).

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond


X11zotac.dmesg
Description: Binary data


X11zotac.stderr
Description: Binary data


X11zotac.logfile
Description: Binary data


Re: Help: System hang/Lockup using snapshots on Intel i5 NUC?

2020-03-06 Thread Raymond, David
You might try an alternate desktop/window manager such as lxqt or
icewm and see if the problem persists.  When I tried XFCE on my X1
carbon laptop, XFCE was not so nice, though I can't remember the
details at this point.

Dave Raymond

On 3/5/20, Why 42? The lists account.  wrote:
>
> Hi All,
>
> We've been running OpenBSD on a server for several years now and its been
> reliable with minimal issues, so I thought I would also like to try it as
> a desktop system.
>
> Thus I've been experimenting with an Intel NUC 8i5BEH running OpenBSD
> current snapshots and with XFCE as the Windowing system. And it all works
> very nicely. So well in fact that I've added an SSD, NFS mounted my old
> Linux box and rsynced over my home directory. OpenBSD as my main desktop
> system!
>
> For the most part everything has gone well, I have only noticed one
> serious issue so far: The complete system hangs intermittently. Which is
> naturally a bit of a downer :(.
>
> When this happens the mouse is frozen, the capslock LED on the (USB)
> keyboard doesn't light up and the system doesn't respond to ssh. To
> recover I have to hold down the power switch to shutoff the system, then
> turn it on again, reboot and examine the resulting fsck errors.
>
> I have impression this often occurs when using a Web browser. At first
> when I used Iridium, then Chrome, it seemed to happen every few hours.
> When I switched to trying Firefox, then the hangs seemed to occur less
> often, maybe every day or two. Perhaps I'm doing less browsing because of
> the hangs :).
>
> The graphics driver being used is: inteldrm0 at pci0 dev 2 function 0
> "Intel Iris Plus Graphics 655" rev 0x01
>
> I can leave the system running, sitting at the xenodm screen, for days
> without issue. I've also done a couple of complete memtest86 runs without
> error. I've even upgraded to the latest BIOS/firmware version.
>
> I've increased maxproc and maxfiles in sysctl.conf and also set
> ddb.panic=0 thinking that the behaviour might change to a panic+reboot
> instead of a hang, but this made no difference.
>
> After a hang + reboot there is nothing obvious in the log files.
>
> Any suggestions how to further debug such an issue?
>
> The OpenBSD kernel tells me that there is a serial port / UART (com0 at
> isa0 port 0x3f8/8 irq 4: ns16550 ...) but I've taken the NUC to pieces
> and I cannot see anything on the board that looks like a serial port
> header.
>
> The kernel does log a few of dubious messages at boot time. There are
> several instances of "not configured". And there is one occurrence of
> "mem address conflict 0xfe01/0x1000". I don't know if these are
> relevant, generally the system seems quite stable. Until it isn't. If you
> see what I mean. (See below for a complete set of boot time messages).
>
> I would be grateful for any support in debugging, or even better,
> resolving this issue.
>
> Cheers,
> Robb.
>
> mjoelnir:log 5.03 23:22:54 # dmesg
> OpenBSD 6.6-current (GENERIC.MP) #20: Sat Feb 29 14:38:12 MST 2020
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 34201518080 (32617MB)
> avail mem = 33152389120 (31616MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x7a9a4000 (77 entries)
> bios0: vendor Intel Corp. version "BECFL357.86A.0077.2019.1127.1452" date
> 11/27/2019
> bios0: Intel(R) Client Systems NUC8i5BEH
> acpi0 at bios0: ACPI 6.1
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT HPET SSDT SSDT UEFI
> LPIT SSDT SSDT DBGP DBG2 DMAR SSDT NHLT BGRT TPM2 WSMT
> acpi0: wakeup devices SIO1(S3) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4)
> PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4)
> PXSX(S4) RP08(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 9182.89 MHz, 06-8e-0a
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> 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 24MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz, 2194.90 MHz, 06-8e-0a
> cpu1:
> 

Re: What TERM fixes Emacs?

2020-02-25 Thread Raymond, David
On my X1 Carbon running openbsd 6.6, the console works fine with the
non-X version of emacs except that the meta key is not set.  One can
emulate the meta key by typing escape followed by x, but this is a
pain.  Maybe there is some mechanism for setting the alt key to meta
in emacs on consoles, but I use X11 so I haven't needed to pursue
this.

Same story on the virtual console window on a vga monitor attached to
a desktop with 6.6.

Dave Raymond

PS - You might take a look at this comment for freebsd:

https://forums.freebsd.org/threads/alt-as-meta-key-in-emacs-within-virtual-console.40275/

On 2/24/20, Emilia  wrote:
> It is impossible to use Emacs on OpenBSD Terminal (no X).
>
> Look at this screenshots:
>
> On Linux / macOs -- this same version of Emacs and org-mode would
> display this file with colors etc.
>
> OpenBSD can't even show the mode line.
>
> How do I fix this?
>
> Em


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Purging a wifi connection

2020-02-22 Thread Raymond, David
Thanks for the heads up on current vs 6.6.



On 2/22/20, Stefan Sperling  wrote:
> On Fri, Feb 21, 2020 at 07:40:23PM -0700, Raymond, David wrote:
>> Thanks, I will give that a try.
>
> Also 'ifconfig nwid' still works and will override any join commands.
>
> Details are in the ifconfig man page. This page has received improvements
> in -current recently. If you don't run a -current system please check the
> online -current man page and compare it with the man page you see on a
> 6.6 system: https://man.openbsd.org/ifconfig
> Most of what this -current page is saying applies to 6.6 as well.
> A major behavioral difference between 6.6 and -current is that an interface
> will no longer connect to random open wifi networks by default.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Purging a wifi connection

2020-02-21 Thread Raymond, David
Thanks, I will give that a try.

On 2/21/20, Stuart Henderson  wrote:
> On 2020-02-21, Raymond, David  wrote:
>> I have a problem when I have two wifi services available, say, a hotel
>> wifi and my cellphone hotspot.  Suppose I put the hotel wifi in my
>> hostname.xxx file and run sh /etc/netstart and I don't like the
>> results.  Removing the hotel wifi from the hostname file, replacing it
>> with my hotspot wifi, and rerunning sh /etc/netstart results in the
>> computer trying to connect with the hotel wifi again, even though this
>> connection is no longer in the hostname file.  If I then reboot the
>> computer and rerun sh /etc/netstart, it connects with the hotspot wifi
>> as desired.
>>
>> My question is whether there is a way to purge the non-desired wifi
>> connection without rebooting the computer.
>>
>
> netstart doesn't wipe existing config, it only runs through line by
> line and adds to it.
>
> Guessing you use "join" for the wifi network config?
>
> You can either run "ifconfig xxx -join network" at the command line
> to remove just that network, or you can add "-joinlist" to the top of
> hostname.xxx if you just want it to clear and recreate the whole list.
>
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Purging a wifi connection

2020-02-21 Thread Raymond, David
I have a problem when I have two wifi services available, say, a hotel
wifi and my cellphone hotspot.  Suppose I put the hotel wifi in my
hostname.xxx file and run sh /etc/netstart and I don't like the
results.  Removing the hotel wifi from the hostname file, replacing it
with my hotspot wifi, and rerunning sh /etc/netstart results in the
computer trying to connect with the hotel wifi again, even though this
connection is no longer in the hostname file.  If I then reboot the
computer and rerun sh /etc/netstart, it connects with the hotspot wifi
as desired.

My question is whether there is a way to purge the non-desired wifi
connection without rebooting the computer.

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Raymond, David
I have had good luck on OpenBSD with a variety of HP printers using
the hplip package and cups.  (To use the latter, put /usr/local/bin
before /usr/bin in your PATH to avoid confusion with lpr programs.)
The xsane package does scanning on HP printers that have this
function.  I have connected them mainly via the network, but I don't
see why direct usb connections wouldn't work as well.

Dave Raymond

On 2/5/20, Claus Assmann  wrote:
> I need to buy a printer to connect to one of my OpenBSD machines
> and I prefer a USB connection (as I don't control the network at
> my current place).  Can I just buy any USB printer or are there
> printers which do not work with OpenBSD? If so, what do I need
> to check / avoid?
>
> Any suggestion for something "cheap" (to print just a few documents
> as needed)? I never had to buy a printer before, so I'm not familiar
> with this area -- if possible I would like to get a printer/scanner
> but I have no idea what I can buy locally :-(
> A HP laserjet (which was a gift but broke today) worked only with
> one of my OpenBSD machines which seemingly was related to the USB
> HW, using a printcap entry like this:
> usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:
>
> --
> Address is valid for this mailing list only, please do not reply
> to it direcly, but to the list.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Realtek ethernet connection failing

2020-01-18 Thread Raymond, David
I am running beowulf network of openbsd machines with Realtek ethernet
chips.  I get very occasional failures that bring the whole
calculation down. The connection is dropped and a ping to the problem
machine returns nothing.

I can connect directly to the machine in question however.  Doing an
ifconfig shows that re0 is still UP.  However, in dmesg, there are two
"watchdog timeout" messages for re0.   Running ifconfig re0 down
followed by ifconfig re0 up brings the network back up.

Sorry, I can't include the dmesg directly in the text due to the
nature of gmail, but I am including the dmesg text as an attachment.
Some of the possibly relevant entries are as follows:

...
re0 at pci5 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H
(0x5400), msi, address 70:85:c2:ac:e4:4b
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
...
re0: watchdog timeout
re0: watchdog timeout
nfs server gryphon:/home: not responding
...

This might also be helpful:

gy02:~$ sysctl | grep hw
hw.machine=amd64
hw.model=AMD Ryzen 7 2700 Eight-Core Processor
hw.ncpu=16
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:f16dda4e41162906
hw.diskcount=1
hw.sensors.ksmn0.temp0=37.70 degC
hw.cpuspeed=3194
hw.setperf=100
hw.vendor=ASRock
hw.product=A320M-HDV R3.0
hw.uuid=7085c2ac-e44b---
hw.physmem=8502005760
hw.usermem=8501993472
hw.ncpufound=16
hw.allowpowerdown=1
hw.perfpolicy=manual
hw.smt=0
hw.ncpuonline=8
gy02:~$

Sorry, a ktrace seems impractical, since the error typically occurs
after the job is running for 12-24 hrs.  Any suggestions for better
diagnostics welcomed.

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond
 associative
cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu7: smt 1, core 3, package 0
cpu8 at mainbus0: apid 8 (application processor)
cpu8: AMD Ryzen 7 2700 Eight-Core Processor, 3193.99 MHz, 17-08-02
cpu8: 
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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu8: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 16MB 64b/line 16-way L3 cache
cpu8: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu8: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu8: smt 0, core 4, package 0
cpu9 at mainbus0: apid 9 (application processor)
cpu9: AMD Ryzen 7 2700 Eight-Core Processor, 3193.98 MHz, 17-08-02
cpu9: 
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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu9: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 16MB 64b/line 16-way L3 cache
cpu9: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu9: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu9: smt 1, core 4, package 0
cpu10 at mainbus0: apid 10 (application processor)
cpu10: AMD Ryzen 7 2700 Eight-Core Processor, 3193.98 MHz, 17-08-02
cpu10: 
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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu10: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 16MB 64b/line 16-way L3 cache
cpu10: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu10: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu10: smt 0, core 5, package 0
cpu11 at mainbus0: apid 11 (application processor)
cpu11: AMD Ryzen 7 2700 Eight-Core Processor, 3193.98 MHz, 17-08-02
cpu11: 
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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu11: 64KB 64b/line 4-way I-cache,

Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Thanks, that is helpful.

It is now clear to me that the default on OpenBSD for SSIZE_MAX is
2^31 - 1 or greater.  However, I still run into problems on writes to
a TCP/IP socket with sizes exceeding something like 32000 bytes
(probably 2^15 -1).

Is it possible that TCP sockets have a smaller SSIZE_MAX or could this
be a bug?  I am handling partial reads and writes correctly as far as
I can see.  Chopping big writes into chunks smaller than 32000 seems
to solve the problem.

Dave

On 1/16/20, Martin Wanvik  wrote:
> tor. 16. jan. 2020 kl. 14:52 skrev Raymond, David :
>>
>> Hmm
>>
>> Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I
>> guess I was mistaken.
>
> Not necessarily. What you have probably seen is _POSIX_SSIZE_MAX
> (which is almost literally
> what you wrote in your first post), defined in limits.h to be 32767
> (2^15 - 1). But that
> specifies the minimum value that SSIZE_MAX can have and still conform
> to the POSIX standard.
> So the actual SSIZE_MAX may well be (and usually is) much bigger, as
> others have pointed out.
>
>> The real issue is whether doing write(2) to a TCP/IP socket bigger
>> than 2^15 - 1 bytes causes problems.  I am not very experienced in
>> this area.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Yes, my code deals with the short reads and writes.

On 1/16/20, Otto Moerbeek  wrote:
> On Thu, Jan 16, 2020 at 06:48:30AM -0700, Raymond, David wrote:
>
>> Hmm
>>
>> Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I
>> guess I was mistaken.
>>
>> The real issue is whether doing write(2) to a TCP/IP socket bigger
>> than 2^15 - 1 bytes causes problems.  I am not very experienced in
>> this area.
>
> It should not. But short read and writes are a real thing and code
> should take care, see the example in write(2).
>
>
>   -Otto
>
>>
>> Dave Raymond
>>
>> On 1/15/20, Bryan Steele  wrote:
>> >> I am confused about SSIZE_MAX and read(2)/write(2).  The POSIX
>> >> SSIZE_MAX is something like 2^15 -1.  This seems to be a real
>> >> limitation when writing to a TCP/IP socket, as I learned from
>> >> experience.  However, much larger reads and writes seem to be possible
>> >> to files and UNIX sockets (pipes).  This makes me uneasy, given the
>> >> warning in the man pages for read(2)/write(2).
>> >>
>> >> Any insight on this topic would be appreciated.
>> >>
>> >> --
>> >> David J. Raymond
>> >> david.raym...@nmt.edu
>> >> http://physics.nmt.edu/~raymond
>> >
>> > Not in any reasonably modern version of POSIX..
>> >
>> > https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
>> >
>> > {SSIZE_MAX}
>> > Maximum value for an object of type ssize_t.
>> >
>> > $ grep -R "SSIZE_MAX" /usr/include
>> > ./amd64/limits.h:#define SSIZE_MAX  LONG_MAX    /* max value
>> > for
>> > a ssize_t */
>> >
>> > /usr/include/sys/limits.h:
>> > #ifdef __LP64__
>> > ..
>> > # define LONG_MAX   0x7fffL
>> > ...
>> > #else
>> > ..
>> > # define LONG_MAX   0x7fffL
>> >
>> > -Bryan.
>> >
>>
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://physics.nmt.edu/~raymond
>>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: SSIZE_MAX

2020-01-16 Thread Raymond, David
Hmm

Thought I found a 2^15 -1 version of SSIZE_MAX in the includes, but I
guess I was mistaken.

The real issue is whether doing write(2) to a TCP/IP socket bigger
than 2^15 - 1 bytes causes problems.  I am not very experienced in
this area.

Dave Raymond

On 1/15/20, Bryan Steele  wrote:
>> I am confused about SSIZE_MAX and read(2)/write(2).  The POSIX
>> SSIZE_MAX is something like 2^15 -1.  This seems to be a real
>> limitation when writing to a TCP/IP socket, as I learned from
>> experience.  However, much larger reads and writes seem to be possible
>> to files and UNIX sockets (pipes).  This makes me uneasy, given the
>> warning in the man pages for read(2)/write(2).
>>
>> Any insight on this topic would be appreciated.
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://physics.nmt.edu/~raymond
>
> Not in any reasonably modern version of POSIX..
>
> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
>
> {SSIZE_MAX}
> Maximum value for an object of type ssize_t.
>
> $ grep -R "SSIZE_MAX" /usr/include
> ./amd64/limits.h:#define SSIZE_MAX  LONG_MAX/* max value for
> a ssize_t */
>
> /usr/include/sys/limits.h:
> #ifdef __LP64__
> ..
> # define LONG_MAX   0x7fffL
> ...
> #else
> ..
> # define LONG_MAX   0x7fffL
>
> -Bryan.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



SSIZE_MAX

2020-01-15 Thread Raymond, David
I am confused about SSIZE_MAX and read(2)/write(2).  The POSIX
SSIZE_MAX is something like 2^15 -1.  This seems to be a real
limitation when writing to a TCP/IP socket, as I learned from
experience.  However, much larger reads and writes seem to be possible
to files and UNIX sockets (pipes).  This makes me uneasy, given the
warning in the man pages for read(2)/write(2).

Any insight on this topic would be appreciated.

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Question about "Game of Trees"

2020-01-14 Thread Raymond, David
Thanks, that helps.


On 1/14/20, Stefan Sperling  wrote:
> On Mon, Jan 13, 2020 at 05:37:55PM -0700, Raymond, David wrote:
>> Quick question: Can got (Game of Trees) be used on an existing git
>> repository or does it require a fresh start?
>>
>> Dave
>
> Commands which only display repository data work out of the box on
> any Git repository. This includes 'got log', 'got tree', and 'tog'.
>
> To make changes with Got you can check out a work tree from any
> existing Git repository. Given a Git repository in ~/src/myproject/
> you would run something like this:
>
>   got checkout ~/src/myproject src/myproject-got-work-tree
>   cd ~/src/myproject-got-work-tree
>
> From this work tree you can commit changes with Got. Any changes you
> commit will show up in the Git repository. Git's work tree will show
> such changes as staged changes, and getting Git back on track requires
> a command such as 'git reset --hard master'.
>
> Got ignores Git's work tree and treats every Git repository as if it was
> a so-called "bare" repository (a repository without a Git work tree).
> See 'man git-repository' and 'man got-worktree' for details.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Question about "Game of Trees"

2020-01-14 Thread Raymond, David
Quick question: Can got (Game of Trees) be used on an existing git
repository or does it require a fresh start?

Dave

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: What is you motivational to use OpenBSD

2020-01-10 Thread Raymond, David
Why do I like openbsd?

I used linux for several decades and it has become harder and harder
to keep up with gratuitous changes and to keep my 20+ machines running
and updated.  The last straw was usb mounting being broken in the
linux kernel for 6 months.  Really!  The whole linux enterprise seems
to be spinning out of control as it gets jerked around by commercial
interests.

OpenBSD is easy to install and use and retains some of the delightful
simplicity of early days UNIX.  I can mostly get done what I need to
get done and I am working on the rest.  The emphasis on security in
this increasingly hostile digital world is certainly a plus as well.

Dave Raymond

On 1/10/20, Christopher Turkel  wrote:
> On Friday, January 10, 2020, Raul Miller  wrote:
>
>> On Wed, Aug 28, 2019 at 10:41 AM Mohamed salah
>>  wrote:
>> > I wanna put something in discussion, what's your motivational to use
>> > OPENBSD what not other bsd's what not gnu/Linux, if something doesn't
>> work
>> > fine on openbsd and you love this os so much what will do?
>>
>> I wanted a machine with tcp and udp but which wasn't listening for rpc
>> requests, and OpenBSD was the quickest way for me to get there.
>>
>> Thanks,
>>
>> --
>> Raul
>>
>>
> It’s the easiest OS I’ve ever used.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Odd /tmp behavior

2020-01-08 Thread Raymond, David
Thanks for the input on softdep.  I read a lot on the pros and cons.
This certainly pushes me in the "con" direction.

I forgot to mention that I am using 6.6 stable, not current, so the
latest updates to softdep shouldn't be an issue.

Dave Raymond

On 1/8/20, Jan Stary  wrote:
> On Jan 08 08:31:26, n...@holland-consulting.net wrote:
>> Another place where softdeps will sometimes bite you is when you
>> unpack tar balls that overwrite existing files -- simple thought
>> process says, "as long as you have enough space to cover the growth,
>> fine".  Softdeps might surprise you.  You may get an "out of disk
>> space" error, and a minute later, see much more space than you
>> thought you could ever need to accomplish the task, once the deletions
>> have time to take effect.
>
> Another case of the same (imho)
> is pkg_add -u when /usr/local is tight.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Odd /tmp behavior

2020-01-07 Thread Raymond, David
On an AMD-64 workstation /tmp fills up to 105% according to df,
apparently as a result of UNIX pipes in a shell script passing a whole
lot of moderately big files. Examination of /tmp with du and ls -gal
on /tmp shows no big files and trying to delete everything that is
there has no effect.  Rebooting cleans out /tmp.

I had /tmp mounted with the standard options + softdep.  I eliminated
softdep and the problem appears to have gone away.

Any ideas on what is going on with softdep here?  Dmesg shows a long
series of "/tmp file system full" messages.

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Readv and writev failing across ethernet

2020-01-06 Thread Raymond, David
Well, I figured out how to suppress the readv/writev problems in
openmpi -- run it under ktrace!  I gave up after the ktrace file
reached 46 GB.

This suggests that the "not permitted" failure on writev is a timing
problem that appears sporadically.  From what I have read about
openmpi, a new socket pair is opened for every high level write.  If
the write tries to transmit before the read socket is established,
then the write will fail with this message.  So, if some rare event
delays the establishment of the read socket, the write fails.  This
only happens in my case in going from one machine to another, not
between processes on the same machine, which kind of makes sense.  I
have tried three different ethernet cards (realtek, broadcom, and
intel) and all do the same thing.  The problem maybe isn't even in the
ethernet but somewhere higher in the stack, as suggested by Philip
Guenther.

I am currently writing a tiny openmpi replacement in Go for the small
part of mpi that I actually use.  I should be able to explore this
issue further and maybe even make my model work.

Dave Raymond

On 12/24/19, Philip Guenther  wrote:
> On Tue, Dec 24, 2019 at 8:14 PM Raymond, David 
> wrote:
>
>> Openmpi uses readv/writev.  I am beginning to think that the timeout
>> and permission errors are legit and reflect real conditions.  What
>
> does re do when it receives a write request when it is busy?
>>
>
> 're' does not expose a device, but rather provides network interfaces that
> are then used with sockets.  What sort of sockets does openmpi use?  What
> sort of packet loss is generated on this network and what protocols does
> openmpi use to recover from that?
>
> (Lacking both dmesg or kdump, I'll probably have nothing further to
> contribute to this thread)
>
> Philip Guenther
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: dhcpd and unbound on a small LAN

2020-01-06 Thread Raymond, David
I found unbound hard to use so I went back to dnsmasq (a package on
OpenBSD), which I had used previously on linux.  Trivial configuration
and it works like a charm in providing DNS service for local and
remote systems behind a NAT firewall. (It gets local information from
the host file on the NAT machine.) Optionally, it will also provide
dhcp service.  (Note that you have to set up a _dnsmasq user/group to
keep rcctl happy.)

Dave Raymond

On 1/6/20, Anders Andersson  wrote:
> I'm in the process of replacing an aging OpenWRT device on my home LAN
> with an apu4d4 running OpenBSD as my personal router.
>
> I would like to use unbound as a caching DNS server for my local
> hosts, but I'm trying to figure out how to handle local hostnames. It
> seems like a common scenario but I can't find a solution that feels
> like the "right" way. I have two problems, one is trivial compared to
> the other.
>
>
> My first and very minor issue is that I would like to register my
> static hosts in a more convenient way than what's currently offered by
> unbound. From what I understand you would configure your local hosts
> something like this:
>
> local-zone: "home.lan." static
> local-data: "laptop.home.lan.IN A 10.0.0.2"
> local-data-ptr: "10.0.0.2  laptop.home.lan"
>
> Every time information has to be entered twice there is room for error
> and inconsistencies, so preferably this list should be automatically
> generated from a simpler file, maybe /etc/hosts. I can of course
> easily write such a script, but I'm wondering if there might be a
> standard, go-to way of doing this.
>
>
>
> My second and more difficult issue is that I can't seem to find a way
> to feed information from the DHCP server into unbound, so that locally
> assigned hosts can be queried by their hostnames. To clarify with an
> example:
>
> 1. I install a new system and in the installation procedure I name it
> "alice".
> 2. "alice" asks for and receives an IP number from my DHCP server.
> 3. Every other machine can now connect to "alice" by name, assuming
> that "alice" informed the DHCP server of its name when asking for an
> address.
>
> Currently this works because OpenWRT is using dnsmasq which is both a
> caching DNS server and a DHCP server, so the left hand knows what the
> right hand is doing. How can I solve this in OpenBSD base without
> jumping through hoops?
>
> Right now I'm considering something that monitors dhcpd.leases for
> changes and updates a running unbound using unbound-control(8) but I
> don't feel confident enough writing such a tool that does not miss a
> lot of corner cases and handle startup/shutdown gracefully. I'm also
> thinking that it can't be such an unusual use case, so someone surely
> must have written such a tool already. I just haven't found any in my
> search.
>
> Or am I doing this the wrong way? I've now read about things like mDNS
> and Zeroconf and Avahi and I'm just getting more and more confused.
> Ideas are welcome!
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Readv and writev failing across ethernet

2019-12-24 Thread Raymond, David
Openmpi uses readv/writev.  I am beginning to think that the timeout
and permission errors are legit and reflect real conditions.  What
does re do when it receives a write request when it is busy?

I am having some luck in redoing writev calls when needed, though
there are still some problems.

Dave


On 12/24/19, Claudio Jeker  wrote:
> On Mon, Dec 23, 2019 at 08:17:37AM -0800, Philip Guenther wrote:
>> On Mon, Dec 23, 2019 at 5:04 AM Raymond, David 
>> wrote:
>>
>> > The "timeout" error was numerically 60.  Curiously, boards with RTL
>> > 8111GR chips did not produce these errors, but those with RTL 8111H
>> > chips did.  Unfortunately, this chipset seems to be in a lot of newer
>> > motherboards.
>> >
>> > I didn't use ktrace/kdump.  The openmpi software returned the error
>> > presented by readv/writev.
>> >
>> > It sounds like the simplest solution at this point is to try
>> > non-Realtek pcie network cards.  Any suggestions?  How are Intel or
>> > Broadcom cards?
>> >
>>
>> At this point I think you're clearly in the "device driver is buggy"
>> situation.  If this device has an in-tree driver (and not something
>> you're
>> compiling locally into your kernel) then you should start a new thread
>> starting with a dmesg and a clear description of the involved hardware.
>
> I don't know what OpenMP uses for communication but re(4) does not return
> errno 60 (ETIMEDOUT). So it seems like it is something else. Also 8111G
> and 8111H are treated the same way in our re(4) driver.
>
> --
> :wq Claudio
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Readv and writev failing across ethernet

2019-12-23 Thread Raymond, David
The "timeout" error was numerically 60.  Curiously, boards with RTL
8111GR chips did not produce these errors, but those with RTL 8111H
chips did.  Unfortunately, this chipset seems to be in a lot of newer
motherboards.

I didn't use ktrace/kdump.  The openmpi software returned the error
presented by readv/writev.

It sounds like the simplest solution at this point is to try
non-Realtek pcie network cards.  Any suggestions?  How are Intel or
Broadcom cards?

Dave Raymond

On 12/22/19, Theo de Raadt  wrote:
> Philip Guenther  wrote:
>
>> > The man pages for readv and writev don't document the possibility of
>> > such errors.
>>
>>
>> IMO, weird errnos from devices should be documented in the manpage for
>> the
>> device.  Consider the termios(4) manpage, for example.
>
> I agree on that.  Otherwise the information-flood is too much.
>
> But I think some of our manual pages are a bit weak indicating there
> are other errors not listed:
>
> ERRORS
>  read(), readv(), pread(), and preadv() will succeed unless:
>  [...]
>  In addition, read() and readv() may return the following errors:
>  [...]
>  read() and pread() may return the following error:
>  [...]
>  pread() and preadv() may return the following errors:
>  [...]
>  readv() and preadv() may return one of the following errors:
>  [...]
> SEE ALSO
>
> Written that way, it is easy for some folk to conclude the list is
> complete, and no other errors could pop out.  We have more experience
> and recognize slightly more unique error returns are valuable.
>
> Maybe it needs a bit of "Amongst our errors...", can we force jmc or
> ingo into a fancy chair to review the situation?
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Readv and writev failing across ethernet

2019-12-22 Thread Raymond, David
I am running openmpi-4.0.2 (self-compiled with GDS patches) on
up-to-date 6.6 stable with a Go program that calls Clang MPI routines.
With particular hardware (details provided if desired), readv and
writev calls randomly fail with respectively "Timeout" and "Permission
denied" errors for calls from one machine to another across the
ethernet.  The errors don't occur between cores on the same machine.
The man pages for readv and writev don't document the possibility of
such errors.   Modifying the MPI code to retry readv and writev
doesn't help.

Any ideas on what is going on here and how it could be fixed?  The
problem doesn't occur with Linux, but I would really rather stay with
OpenBSD.  Details can be provided as needed.

Dave Raymond

PS -- Martin Reindl has been very helpful in getting me this far.

On 12/22/19, Martin Reindl  wrote:
> It shouldn't run the GDS components with the enviroment set up like
> this. But who knows with a beast like openmpi.
>
> I'll file a bug report with the PMIx developers, for now I've commited
> the update with your input. Thanks!
>
> Martin
>
> Am 19.12.19 um 13:48 schrieb Raymond, David:
>> Hello Martin,
>>
>> It is odd that I already had "PMIX_MCA_gds=hash" and still got the
>> problem on a beowolf with multiple boxes connected by ethernet.
>>
>> Since the lack of appropriate "#ifdefs" seems like an oversight on the
>> part of the openmpi developers, I think it would be appropriate to
>> push it upstream.  Are you prepared to do that?  I could try, but it
>> would take me a while to educate myself on this.
>>
>> Best,
>>
>> Dave
>>
>> On 12/19/19, Martin Reindl  wrote:
>>> [moved to ports@]
>>>
>>> On Tue, Dec 17, 2019 at 04:16:25PM -0700, Raymond, David wrote:
>>>> Martin,
>>>>
>>>> I have been using openmpi 4.0.2 on my computer system and I found a
>>>> bug that is provoked by running a job (a Go program interfaced to the
>>>> Clang MPI package) on multiple machines connected by ethernet.  This
>>>> crashes the program with the following output:
>>> [...]
>>>>
>>>> I traced this to the fact that OpenBSD's version of pthreads doesn't
>>>> have "pthread_mutexattr_setpshared".  It turns out that the
>>>> configuration file undefines a flag if this is so, but the actual code
>>>> doesn't pay any attention to this.  I fixed the problem by putting
>>>> appropriate ifdefs around the code generating the error, which itself
>>>> is simple error checking code.  This seems to work.  I have attached
>>>> two patches for the 4.0.2 source.
>>>
>>> Hello Dave,
>>>
>>> Thanks for your input, I've updated the 4.0.2 diff.
>>>
>>> We already were aware of the problem with 4.0.1 back in June and worked
>>> around the problem by setting PMIX_MCA_gds=hash before execution to
>>> avoid
>>> GDS/ds21 and GDS/12.
>>>
>>> Your diff is of course a much better way, do you want to try to push it
>>> upstream?
>>>
>>> -m
>>>
>>> Index: Makefile
>>> ===
>>> RCS file: /cvs/ports/devel/openmpi/Makefile,v
>>> retrieving revision 1.28
>>> diff -u -p -u -p -r1.28 Makefile
>>> --- Makefile28 Jun 2019 11:05:11 -  1.28
>>> +++ Makefile19 Dec 2019 07:18:30 -
>>> @@ -2,9 +2,8 @@
>>>
>>>  COMMENT =  open source MPI-3.1 implementation
>>>
>>> -V =4.0.1
>>> +V =4.0.2
>>>  DISTNAME = openmpi-$V
>>> -REVISION = 0
>>>
>>>  SHARED_LIBS +=  mca_common_dstore 0.0 # 1.0
>>>  SHARED_LIBS +=  mca_common_monitoring 0.0 # 60.0
>>> Index: distinfo
>>> ===
>>> RCS file: /cvs/ports/devel/openmpi/distinfo,v
>>> retrieving revision 1.4
>>> diff -u -p -u -p -r1.4 distinfo
>>> --- distinfo27 Jun 2019 13:52:00 -  1.4
>>> +++ distinfo19 Dec 2019 07:18:30 -
>>> @@ -1,2 +1,2 @@
>>> -SHA256 (openmpi-4.0.1.tar.gz) =
>>> 5V4hP+CaIUq58scirP2L97ObvBgA5LekZNON8V5wf1k=
>>> -SIZE (openmpi-4.0.1.tar.gz) = 17513706
>>> +SHA256 (openmpi-4.0.2.tar.gz) =
>>> ZigFhw6GoUceWXObDDTG+QBODHoi2waFYtU4jsRCGQQ=
>>> +SIZE (openmpi-4.0.2.tar.gz) = 17373487
>>> Index:
>>> patches/patch-opal_m

Re: [UPDATE] devel/openmpi 4.0.1 -> 4.0.2

2019-12-17 Thread Raymond, David
Martin,

I have been using openmpi 4.0.2 on my computer system and I found a
bug that is provoked by running a job (a Go program interfaced to the
Clang MPI package) on multiple machines connected by ethernet.  This
crashes the program with the following output:

--
plover:~/src/models/goconv$ mpirun -np 2 -hostfile hlist
/home/raymond/bin/goconv032 plist

orted:/usr/local/lib/pmix/mca_gds_ds21.so: undefined symbol
'pthread_mutexattr_setpshared'
ld.so: orted: lazy binding failed!
Killed
--
ORTE has lost communication with a remote daemon.

  HNP daemon   : [[62306,0],0] on node plover
  Remote daemon: [[62306,0],1] on node gryphon

This is usually due to either a failure of the TCP network
connection to the node, or possibly an internal failure of
the daemon itself. We cannot recover from this failure, and
therefore will terminate the job.
--
plover:~/src/models/goconv$
-

I traced this to the fact that OpenBSD's version of pthreads doesn't
have "pthread_mutexattr_setpshared".  It turns out that the
configuration file undefines a flag if this is so, but the actual code
doesn't pay any attention to this.  I fixed the problem by putting
appropriate ifdefs around the code generating the error, which itself
is simple error checking code.  This seems to work.  I have attached
two patches for the 4.0.2 source.

I'm not sure that the diffs are done quite right, but they do fix the
problem using patch < mypatch in the main directory.  (I do my patches
after yours, but I don't think that this is important as the two act
on different directories.)

Dave

PS -- The program runs at about the same speed as it does on Arch Linux.
-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond


patch-opal_mca_pmix_pmix3x_pmix_src_mca_gds_gds12
Description: Binary data


patch-opal_mca_pmix_pmix3x_pmix_src_mca_gds_gds21
Description: Binary data


Re: ttyC0 floods with error messages

2019-12-16 Thread Raymond, David
I get similar stuff on console 1 but not on the others on all my
OpenBSD machines.  As I use X windows and have clean consoles 2-4
available if necessary, I just ignore it.

Dave Raymond


On 12/16/19, putridsou...@gmail.com  wrote:
> The error does not seem to be a faulty mouse and I
> don't use a KVM switch anyway so it is not the source.
> Following on pervious reply, I tried on a new mouse.
> But was greeted with the same error:
>
> wsmouse0 detached
> ums0 detached
> uhidev0 detached
> uhidev0 at uhub0 port 4 configuration 1 interface 0 "PixArt USB Optical
> Mouse" rev 2.00/1.00 addr 2
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
>
> Unless I'm the unfortunate person destined to own all faulty
> mice in the world, I look forward to a solution. Is there
> anyone here who uses a desktop setup with a mouse, not greeted
> with these pesky errors. Are experts on here sure this is not
> a bug, or lack of proper driver. More info on the latter, this
> test consisted of Logitech M90 and Dell MS111-P mouse.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



X11 on VEGA graphics

2019-12-09 Thread Raymond, David
I have tried out VEGA graphics on Version 6.6 stable.  Out of the box
it mostly works, though there are two oddities:
1. The cursor for resizing windows (under openbox and icewm both) is
wrong and misplaced, though the resize can be done.
2. Upon logging out of icewm, the confirmation screen has text
missing.  Very odd, this doesn't seem to occur anywhere else.

I found the following fixes: For (1), turn on the software cursor.
For (2), going to 2-D DRM alleviates but does not completely fix the
issue.  The remaining problem is that a small white rectangle overlays
part of the confirmation screen.

To implement these changes, the following file (10-amdgpu.conf) is
placed in /etc/X11/xorg.conf.d:

ection "Device"
Identifier "AMDgpu"
Driver "amdgpu"
Option "SWcursor" "true"
Option "DRI" "2"
EndSection

Here is the hardware segment of sysctl output:

hw.machine=amd64
hw.model=AMD Ryzen 3 2200G with Radeon Vega Graphics
hw.ncpu=4
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:42a97a46d649c52c,sd1:02849ec9332f0412
hw.diskcount=2
hw.sensors.ksmn0.temp0=21.70 degC
hw.cpuspeed=3494
hw.setperf=100
hw.vendor=ASRock
hw.product=A320M-HDV R4.0
hw.uuid=7085c2bd-52e3---
hw.physmem=7425409024
hw.usermem=7425396736
hw.ncpufound=4
hw.allowpowerdown=1
hw.perfpolicy=manual
hw.smt=0
hw.ncpuonline=4

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Softdep and noatime

2019-11-30 Thread Raymond, David
I am switching to OpenBSD from Linux and I have questions about the
use of softdep and noatime in mounting disks.  I have a variety of
systems with a mix of SSDs and rotating disks.

Softdep seems to have some advantages in speeding file access, but it
is not the default.  Are there any downsides in using softdep?

On SSDs in particular, is it worth setting noatime to reduce the
number of disk writes?

Dave Raymond



-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: T430 power draw unexpectedly high

2019-11-24 Thread Raymond, David
I don't know whether this is pertinent, but I have a Lenovo X1 Carbon
(gen 4 I think) which ran the fan at full speed under Linux.  A bios
update solved this problem.  I have converted to OpenBSD (6.6 stable)
and the problem has not reappeared. It might be worth checking with
Lenovo to see if a similar problem/solution exists for your machine.
Bios updates are easy to install on Thinkpads.

Dave Raymond

On 11/23/19, Jonathan Thornburg  wrote:
> In ,
> Dave Trudgian  writes
> [[6.6 or a recent snapshot, Thinkpad T430]]
>> Under OpenBSD with the system sitting idle at a GUI, WiFi active, 50%
>> brightness I see ~15W power draw from the battery. This is with `apmd
>> -A` and the output of `apm` showing that it is throttled to 1200MHz.
>> The CPU fan is running at a constant low speed.
>
> On a Thinkpad T530 (= similar hardware except for 14" --> 15.4" screen)
> running 6.5-stable (amd64), also with WiFi active and the system sitting
> idle at a GUI, I see a power draw of ~20W/10W with the screen at max/min
> brightness, so overall very similar to what Dave Trudgian sees.  I've
> never tried a non-OpenBSD OS on this hardware.
>
> --
> -- "Jonathan Thornburg [remove -color to reply]"
> 
>"He wakes me up every morning meowing to death because he wants to go
> out, and then when I open the door he stays put, undecided, and then
> glares at me when I put him out"
>   -- Nathalie Loiseau (French minister for European Affairs,
>explaining why she named her cat "Brexit")
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: vi in ramdisk?

2019-11-16 Thread Raymond, David
Arch Linux uses nano in its boot drive.  Pretty simple, gets the job
done.  (They also include vi.)

Dave Raymond

On 11/16/19, Roderick  wrote:
>
> On Sat, 16 Nov 2019, U'll Be King of the Stars wrote:
>
>> I assumed that the canonical reference for ed was K, "The Unix
>> Programming
>
> Reference = man page. Under /usr/share/doc/usd/ in an old BSD System
> you may find Brian W. Kernighan ed Tutorial. Just google for it.
>
>> Sam looks very interesting too,
>
> Yes. It is a perfectionated ed, not anymore line oriented, and with gui.
> I am tired of emacs bloating and I am thinking on sam as an alternative,
> but the background colour is annoying.
>
>> What is sos?  Is it something like open mode in Vi?
>
> Editor in DEC 10 with TOPS-10, I think standard there.
>
> Rod.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Home NAS

2019-11-15 Thread Raymond, David
I don't know how current tape systems are, but I have been burnt by
them in the past.  Either the tape deteriorates or the tape writer
company goes out of business.  My current approach is to keep stuff I
want to keep on current online storage in multiple places plus offline
USB.  Data get migrated to new media as they appear and prove
themselves.  There is still the possibility of undetected bit rot
however...

Dave

On 11/15/19, Andrew Luke Nesbit  wrote:
> On 15/11/2019 10:11, gwes wrote:
>> On 11/14/19 3:52 PM, Andrew Luke Nesbit wrote:
>>> On 15/11/2019 07:44, Raymond, David wrote:
>>>> I hadn't heard about file corruption on OpenBSD.  It would be good to
>>>> get to the bottom of this if it occurred.
>>>
>>> I was surprised when I read mention of it too, without any real claim
>>> or detailed analysis to back it up.  This is why I added my disclaimer
>>> about "correcting me if I'm wrong because I don't want to spread
>>> incorrect information".
>
> [...]
>
>> There was a thread a couple of months ago started by someone either
>> pretty
>> ignorant or a troll.
>> The consensus answer: no more than any other OS, less than many.
>
> Thank you gwes, for the clarification.
>
> The thread is vaguely coming back to my memory now.  I was dipping in
> and out of it at the time as I didn't have time to study the details at
> the time.
>
>> One size definitely doesn't fit all.
>
> That is pretty obvious.  I never mentioned a blanket rule, and I assume
> that OP is able to tailor any suggestion to their needs.
>
>> Backup strategies depend on user's criteria, cost of design and
>> cost of doing the backups - administration & storage, etc.
>
> Sure.  I don't have a personal archival storage system yet for long term
> storage that satisfies my specifications because I don't have the
> infrastructure and medium yet to store it.  I plan on investing in LTO
> tape but I can not afford the initial cost yet.
>
>> In an ideal world every version of every file lasts forever.
>> Given real limitations, versioning filesystems can't and don't.
>
> Indeed.  But having archival snapshots at various points in time
> increases the _probability_ that the version of the file that you need
> will be present if+when you need it.
>
>> If your data are critical, invest in a dozen or more portable
>> USB drives. Cycle them off-site. Reread them (not too often)
>> to check for decay.
>
> Yes, this is part of the backup system that I'm designing for my NAS,
> but it's not so much for archiving.
>
>> If you have much  available, get a
>> modern tape system.
>
> Yes, as I mentioned above LTO would be great if+when I can afford it.
>
>> The backup system used over 50 years ago still suitable for many
>> circumstances looks something like this:
>>daily backups held for 1 month
>>weekly backups held for 6-12 months
>>monthly backups held indefinitely offsite.
>> Hold times vary according to circumstances.
>
> I think something like this is a good plan.
>
>> The backup(8) program can assist this by storing deltas so that
>> more frequent backups only contain deltas from the previous
>> less frequent backup.
>
> I've not used backup(8) before, thanks for the suggestion.  I will have
> a look.
>
>> The compromise between backup storage requirements and granularity
>> of recovery points can be mitigated. The way to do it depends on
>> the type and structure of the data:
>>
>> Some data are really transient and can be left out.
>>
>> Source code control systems (or whatever the name is this week)
>> are a good way for intermittent backups to capture a good history
>> of whatever data is around if it's text.
>
> I don't understand how SCM's are supposed to help with this...
>
>> DBs often have their own built-in backup mechanisms.
>
> This underscores the difference between file system-level backups,
> block-level backups, and (for DBs) application-level backups.  In
> particular I'm trying to figure out a generally applicable way of taking
> a _consistent_ backup of a disk without resorting to single user mode.
>
> I think COW file systems might help in this regard but I don't think
> anything like this exists in OpenBSD.
>
>> Binary files can be regenerated if the source *and* environment
>> are backed up.
>
> Storing the environment is a tricky problem that I haven't found an
> entirely satisfactory solution for, yet.
>
>> been there, mounted the wrong tape... what write protect ring?
>
> O yeah... me too.  My team inherited a hosted service and upon
> auditing we discovered its backup system was stranger than fiction.  But
> it was so bizarre that we couldn't determine whether it was _supposed_
> to be that way or if our reasoning was flawed.  A classic type of problem.
>
> Andrew
> --
> OpenPGP key: EB28 0338 28B7 19DA DAB0  B193 D21D 996E 883B E5B9
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Home NAS

2019-11-14 Thread Raymond, David
Andrew,

I hadn't heard about file corruption on OpenBSD.  It would be good to
get to the bottom of this if it occurred.

Dave

On 11/14/19, U'll Be King of the Stars  wrote:
> On 15/11/2019 04:45, Raymond, David wrote:
>> I have done similar things on Linux for years and am now doing them on
>> OpenBSD.  Sounds like what you want to do can be done with a simple
>> rsync script.  OpenBSD ffs (ufs) should be stable, it has been around
>> for decades in various incarnations.  I have never noticed bit rot in
>> this system, though I imagine it could happen if a disk is gradually
>> going bad.
>
> Please correct me if I'm wrong because I don't want to spread incorrect
> information.
>
> A couple of months ago I read a couple of reports of filesystem
> corruption on OpenBSD.  I didn't have time to investigate deeply and I
> don't know if these issues were even real.  Even if they were real I
> don't know if the problem was due to user error or a defect in the OS.
>
> Does anybody know anything about this?
>
>> That's why multiple backups help.
>
> Agreed.  See below.
>
>> You might want to set
>> up a raid5 backup, as this detects parity errors.  More complicated
>> though.
>
> This is exactly the kind of reason that hybrid volume management systems
> + filesystems such as Btrfs and ZFS have become popular.
>
> I do not know anything about OpenBSD's LVM.
>
>> One weakness in such as system (ask me how I know!) is that
>> if the NAS goes gradually bad, the errors will propagate to the
>> backup.  Using rsync without the --delete option most of the time
>> alleviates this somewhat.  Only run with --delete when the backup
>> starts getting full and you are confident that your NAS drive is ok.
>
> This is an excellent reason for implementing a system that includes not
> only backups, but long term storage /archives/ too.
>
> Andrew
> --
> OpenPGP key: EB28 0338 28B7 19DA DAB0  B193 D21D 996E 883B E5B9
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Home NAS

2019-11-14 Thread Raymond, David
I have done similar things on Linux for years and am now doing them on
OpenBSD.  Sounds like what you want to do can be done with a simple
rsync script.  OpenBSD ffs (ufs) should be stable, it has been around
for decades in various incarnations.  I have never noticed bit rot in
this system, though I imagine it could happen if a disk is gradually
going bad.  That's why multiple backups help.  You might want to set
up a raid5 backup, as this detects parity errors.  More complicated
though.  One weakness in such as system (ask me how I know!) is that
if the NAS goes gradually bad, the errors will propagate to the
backup.  Using rsync without the --delete option most of the time
alleviates this somewhat.  Only run with --delete when the backup
starts getting full and you are confident that your NAS drive is ok.

Dave

On 11/14/19, Jan Betlach  wrote:
>
> Hi guys,
>
> I am setting up a home NAS for five users. Total amount of data stored
> on NAS will not exceed 5 TB.
> Clients are Macs and OpenBSD machines, so that SSHFS works fine from
> both (no need for NFS or Samba).
> I am much more familiar and comfortable with OpenBSD than with FreeBSD.
> My dilema while stating the above is as follows:
>
> Will the OpenBSD’s UFS stable and reliable enough for intended
> purpose? NAS will consist of just one encrypted drive, regularly backed
> to hardware RAID encrypted two-disks drive via rsync.
>
> Should I byte the bullet and build the NAS on FreeBSD taking advantage
> of ZFS, snapshots, replications, etc? Or is this an overkill?
>
> BTW my most important data is also backed off-site.
>
> Thank you in advance for your comments.
>
> Jan
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Raid0 max volume size

2019-11-09 Thread Raymond, David
Thanks, that did the trick!

Dave

On 11/9/19, Otto Moerbeek  wrote:
> On Sat, Nov 09, 2019 at 08:24:36AM -0700, Raymond, David wrote:
>
>> Hmmm
>>
>> On install of openbsd a second, non-boot 4 TB disk was initialized by
>> fdisk in the usual way.  My intention was to create a single partition
>> and file system for the whole disk.  However, disklabel limits me to a
>> partition size of 2 TB.  The c partition automatically covers the full
>> disk, but I didn't think one could actually create a file system on
>> the c partition.
>>
>> Is there something I am missing?
>
> yes, use the b command in disklabel to make the OpenBSD partition
> cover the whole disk.
>
> b 
>
> should do it,
>
>   -Otto
>
>
>>
>> Dave
>>
>> On 11/9/19, Otto Moerbeek  wrote:
>> > On Sat, Nov 09, 2019 at 07:01:02AM -0700, Raymond, David wrote:
>> >
>> >> Does raid0 allow the creation of file systems bigger than the 2 TB
>> >> limit
>> >> of ffs?
>> >
>> > Yes. And ffs in general does not have that limit. newfs will move to
>> > ffs2 if needed.
>> >
>> >-Otto
>> >
>> >
>>
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://physics.nmt.edu/~raymond
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Raid0 max volume size

2019-11-09 Thread Raymond, David
Hmmm

On install of openbsd a second, non-boot 4 TB disk was initialized by
fdisk in the usual way.  My intention was to create a single partition
and file system for the whole disk.  However, disklabel limits me to a
partition size of 2 TB.  The c partition automatically covers the full
disk, but I didn't think one could actually create a file system on
the c partition.

Is there something I am missing?

Dave

On 11/9/19, Otto Moerbeek  wrote:
> On Sat, Nov 09, 2019 at 07:01:02AM -0700, Raymond, David wrote:
>
>> Does raid0 allow the creation of file systems bigger than the 2 TB limit
>> of ffs?
>
> Yes. And ffs in general does not have that limit. newfs will move to
> ffs2 if needed.
>
>   -Otto
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Raid0 max volume size

2019-11-09 Thread Raymond, David
Does raid0 allow the creation of file systems bigger than the 2 TB limit of ffs?

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: OpenBSD and solid state disks

2019-11-08 Thread Raymond, David
At least with a total failure you know something is wrong, whereas
with a functioning but flaky SSD, you could be experiencing a slow
drip of bit rot.  I guess that this is another possible reason to
avoid TLC and QLC drives.

Dave

On 11/8/19, Chris Cappuccio  wrote:
> Raymond, David [david.raym...@nmt.edu] wrote:
>> Thanks for the insight on SSDs -- sounds like there is not much of an
>> issue with modern drives.
>>
>
> If write endurance is a concern, you can buy higher grade SSDs that have
> constant latency (at the expense of max speed) and a lot of extra flash.
> I would avoid the TLC drives for servers and the QLC drives for everything,
> if writes are heavy.
>
> My biggest problem with SSDs has been total failures. I run pairs of SSDs
> in softraid RAID 1 for this reason.
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Battery widget in lxqt?

2019-11-08 Thread Raymond, David
I installed the lxqt desktop package on my X1 Carbon laptop and
everything worked ok except that the panel widget for monitoring the
battery was not in the list of available widgets.  (Important for
laptop users.)

Is this just an oversight or (1) is there a good reason for this, or
(2) am I just missing something?

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Downgrade 6.6 to 6.5

2019-11-04 Thread Raymond, David
Josh,

I don't recall, as it was a while ago.  I had read somewhere that
upgrading the bios solved the problem of a fan running continuously on
the X1 5G.  I was running Arch Linux at the time, but at some point I
intend to put OpenBSD on this laptop.  I'll see what happens.

Dave

On 11/4/19, Josh  wrote:
> Hi Dave,
> was it related to the Sx bios functionalities?
>
> On Sun, Nov 3, 2019 at 11:20 PM Raymond, David 
> wrote:
>>
>> I had the fan problem on an X1 5G running linux, but a bios upgrade solved
>> it.
>>
>> Dave Raymond
>>
>> On 11/3/19, Josh  wrote:
>> > hi,
>> >
>> > I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
>> > to find the reason(s) of the high fan spinning.
>> > Is there a procedure to downgrade to 6.5 or should I just reinstall
>> > from scratch?
>> >
>> > thank you
>> >
>> >
>>
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://physics.nmt.edu/~raymond
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Downgrade 6.6 to 6.5

2019-11-03 Thread Raymond, David
I had the fan problem on an X1 5G running linux, but a bios upgrade solved it.

Dave Raymond

On 11/3/19, Josh  wrote:
> hi,
>
> I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
> to find the reason(s) of the high fan spinning.
> Is there a procedure to downgrade to 6.5 or should I just reinstall
> from scratch?
>
> thank you
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: OpenBSD and solid state disks

2019-11-03 Thread Raymond, David
Thanks for the insight on SSDs -- sounds like there is not much of an
issue with modern drives.

Dave Raymond

On 11/3/19, gwes  wrote:
> On 11/2/19 4:10 PM, Raymond, David wrote:
>> I recently installed OpenBSD on a Lenovo X1 Carbon with a solid state
>> drive and it works great.
>>
>> My question is whether OpenBSD addresses the special characteristics
>> of solid state drives, especially those having to do with longevity
>> and reliability.  I can't find anything written on this.  Linux has
>> certain means for addressing this issue, such as fstrim as well as
>> various kernel options.  Is there anything I have missed with OpenBSD
>> on this subject?
>>
>> Dave Raymond
>>
> Any modern drive will have write levelling. Check the rated number
> of writes for the drive. Run iostat for a week or two to determine
> average writes/time interval. Compare that against 10% of rated
> writes. When you get there, replace the drive.
>
> 500 TB is a good number for write endurance.
> Completely writing a 1TB drive every day gives you 50 days.
> Writing 100GB a day gives you 500 days...
> Do you write 20 DVDs a day? That's your answer.
>
> Geoff Steckel
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Tools for writers

2019-11-02 Thread Raymond, David
You might try lyx.  This is a front end for latex.  You can write
without worrying about formatting and come back to that later.  Also,
when you do the formatting, you don't have to worry about niggling
details as in word and its clones.  Just declare chapters, sections,
etc.

Lyx is an OpenBSD package.

Dave Raymond

On 11/2/19, Jordan Geoghegan  wrote:
>
> On 2019-11-02 13:18, Chris Bennett wrote:
>> On Sat, Nov 02, 2019 at 03:16:22PM -0400, STeve Andre' wrote:
>>>
>>> On 2019-11-02 15:07, Antoine Jacoutot wrote:
 You obviously never wrote a book.
 At least not with the requirements OP asked for. >
>>> Actually, I am, right now.  I've found that "formatting" is an
>>> annoyance, when writing material.  Get it written, *then* worry
>>> about how it looks.  I've done this for more than 40 years when
>>> creating documents, reports and such for work.
>>>
>>> --STeve Andre'
>>>
>>>
>> Actually the OP said that not necessarily the same application.
>> I have to agree that writing the content and doing the formatting to be
>> two separate processes. I write in a furious stream of conciousness.
>> Looking at the formatting, etc. just impedes my work.
>> Spout out the thoughts. Then review content. Then work on formatting and
>> editing content.
>>
>> /bin/ed
>>
>> Then do the delicate work of editing and formatting after the creative
>> stream ends. Or creativity may be lost. Forever. Over seeing some
>> misspelled word or wrong punctuation.
>>
>> Two or three different tools. Since there are really about three
>> processes being done that are quite different. For me, multitasking
>> sucks.
>>
>> But, please, what is good for formatting? I don't have an answer for
>> that myself. I am considering writing as a new direction for myself.
>> Getting old sucks.
>>
>> Chris Bennett
>>
>
> You can't go wrong with LibreOffice. I've written thousands of pages
> over the years with it. It may be too "heavy" for some, but for me, if
> I'm doing something too complex for vi or mousepad, I just fire up
> LibreOffice.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



OpenBSD and solid state disks

2019-11-02 Thread Raymond, David
I recently installed OpenBSD on a Lenovo X1 Carbon with a solid state
drive and it works great.

My question is whether OpenBSD addresses the special characteristics
of solid state drives, especially those having to do with longevity
and reliability.  I can't find anything written on this.  Linux has
certain means for addressing this issue, such as fstrim as well as
various kernel options.  Is there anything I have missed with OpenBSD
on this subject?

Dave Raymond

-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond