What are the operating systems that ship without blobs?

2019-04-12 Thread Quantum Robin
Are there operating
systems that ship without blobs?

If yes, what are the operating
systems that ship without blobs?


Re: Viewing SFP diagnostic data in OpenBSD ?

2019-04-12 Thread Rachel Roch
Apr 8, 2019, 5:25 AM by da...@gwynne.id.au:

>
>
>> On 6 Apr 2019, at 01:54, Rachel Roch <>> rr...@tutanota.de 
>> >> > wrote:
>>
>>
>>
>>
>> Apr 2, 2019, 11:19 PM by >> da...@gwynne.id.au >> 
>> :
>>
>>>
>>>
 On 3 Apr 2019, at 04:52, Stuart Henderson <>>  s...@spacehopper.org 
   >>> s...@spacehopper.org 
  >>> > wrote:

 On 2019-04-02, Rachel Roch <>>  rr...@tutanota.de 
   >>> rr...@tutanota.de 
  >>> > wrote:

> Hi,
>
> Hopefully I'm just searching the man pages wrong but I can't seem to find 
> any hints as to how I can view SFP diagnostics in OpenBSD (i.e. light 
> power etc.)
>
> Perhaps someone could kindly point me in the right direction ?
>
> Rachel
>

 I don't think that code has been written yet.

>>>
>>> You're right, it hasn't.
>>>
>>> Rachel, which nic are you interested in having this on?
>>>
>>> dlg
>>>
>>
>> Just spotted this email.
>>
>> An Intel I350 based NIC made by HotLava  (>> 
>> https://hotlavasystems.com/products_gbe.html 
>> >> ) <>> 
>> https://hotlavasystems.com/products_gbe.html 
>> >> >
>>
>
> OK. I made a start on this. Have a look for "sfp module info and diagnostics" 
> on tech@, or click on > 
> https://marc.info/?l=openbsd-tech=155469738013008=2 
> 
>
> We don't have an em(4) here with optics, but a diff doesn't look too bad if 
> you're willing to test it.
>
> dlg
>


Apologies for the delay in reply Work(TM) has been off the charts recently.  
Thanks a million for your hard work so far !

 Unfortunately I don't have any spare optics either (we only had a limited 
number of the HotLava cards and they're now all spoken for in production boxes).

I'll see what I can do, maybe I'll find another way to get hold of something.  
I really want to test it ! ;-)



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread Johan Huldtgren
> I have a Dell server that was advertised to support 4x3.5 + 2x2.5
> drives but when I popped it open I found there are only 4 SATA ports on
> the motherboard total. So of the 6 claimed drives, I can actually
> only install 3 drives because the stock DVD drive consumes a mobo port.
> 
> Speaking with Dell, they are recommending their part number PEXSAT32
> which is a rebadged StarTech product based on the Marvell 88SE9123
> chipset. From posts I saw from people running various OS, that chipset
> is flaky on everything but Windows.
> 
> My local shop has several el-cheapo no-brand cards based on the ASMedia
> ASM1061 chipset. From what I could find on the net those cards work ok
> but they can be slow. They also have a card based on the Silicon Image
> SiI3114 chipset. I didn't find much info on this one except for Windows
> victims claiming it was great or sucked.
> 
> Can anybody recommend some good 2 or 4 port SATA (internal) expansion
> cards or a SAS HBA that works well with OpenBSD?

I've got an mfi and an mfii card in two servers, both have worked well,
I do not run softraid on them though.

mfi0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS2108 GEN2" rev 0x05: 
apic 2 int 2
mfi0: "LSI MegaRAID SAS 9260-8i", firmware 12.15.0-0239, 512MB cache


mfii0 at pci3 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi
mfii0: "LSI MegaRAID SAS 9271-8i", firmware 23.34.0-0017, 1024MB cache

.jh



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread Paul de Weerd
On Fri, Apr 12, 2019 at 10:29:33AM -0400, Allan Streib wrote:
| Paul de Weerd  writes:
| 
| > Not exactly what you're looking for, but I have a startech.com 2 Port
| > SATA 6Gbps PCI Express eSATA controller card [1].  I use this to
| > (occasionally) connect an external disk shelve (using a port
| > multiplier) to my machine.
| 
| Incidentally, does OpenBSD support hot-plugging external drive on eSATA
| ports?

Not that I'm aware of.  I've never tried (or had the need, with my
specific setup).

| I had a similar StarTech card and it worked fine if the external drive
| was attached and powered up at boot but did not recognize it if attached
| later. But was probably around 6.1 release if not older the last time I
| tried that.

I don't think anything has changed in this regard, nothing that has
been committed suggested adding support for hot swapping (e)SATA
devices.

Cheers,

Paul

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread Allan Streib
Paul de Weerd  writes:

> Not exactly what you're looking for, but I have a startech.com 2 Port
> SATA 6Gbps PCI Express eSATA controller card [1].  I use this to
> (occasionally) connect an external disk shelve (using a port
> multiplier) to my machine.

Incidentally, does OpenBSD support hot-plugging external drive on eSATA
ports?

I had a similar StarTech card and it worked fine if the external drive
was attached and powered up at boot but did not recognize it if attached
later. But was probably around 6.1 release if not older the last time I
tried that.

Allan



Re: Running php cli when php-fpm uses chroot

2019-04-12 Thread Stuart Henderson
On 2019-04-12, Joel Carnat  wrote:
> Hi,
>
> When php-fpm is configured to use chroot, it seems the php(1) cli still
> tries to work unchrooted. So when running maintenance php scripts (like
> occ from Nextcloud), errors raises for not finding resources (like mysql
> socket etc).
>
> I couldn't find a option for the php(1) command to "run as chroot".
> I didn't want to copy php(1) and its deps into the chroot directory.
>
> I could manage running the occ command by doing "dirty things":
>   # doas sh -c "ln -s /var/www/htdocs /htdocs && ln -s /var/www/run /run"
>   # doas -u www php occ db:convert-filecache-bigint
>   # doas sh -c "rm /htdocs /run"
>
> Is there a better way to handle chroot environnement when running php
> scripts from the cli?
>
> Thanks.
>
>

I normally do

mkdir /var/www/var
ln -s .. /var/www/var/www

and refer to full paths (including /var/www) inside the chroot.
It doesn't strike me as being particularly dirty.




Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread Paul de Weerd
Hi John,

On Thu, Apr 11, 2019 at 07:50:36AM +, John Long wrote:
| Can anybody recommend some good 2 or 4 port SATA (internal) expansion
| cards or a SAS HBA that works well with OpenBSD?

Not exactly what you're looking for, but I have a startech.com 2 Port
SATA 6Gbps PCI Express eSATA controller card [1].  I use this to
(occasionally) connect an external disk shelve (using a port
multiplier) to my machine.  OpenBSD detects this as:

ahci0 at pci2 dev 0 function 0 vendor "Marvell", unknown product 0x9128 rev 
0x20: msi, AHCI 1.2
ahci0: port 7: 1.5Gb/s
scsibus1 at ahci0: 32 targets

So despite being an "unknown product", it's supported by ahci(4) and I
have successfully accessed disks behind it.  The product page says
this uses the Marvell 88SE9128.

This vendor has similar products with internal ports using the same
Marvell chip.  Those may be of use to you.

Cheers,

Paul 'WEiRD' de Weerd

[1]: 
https://www.startech.com/Cards-Adapters/HDD-Controllers/SATA-Cards/2-Port-SATA-6-Gbps-PCI-Express-eSATA-Controller-Card~PEXESAT32#

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread John Long
Thank you!

/jl

On Fri, 12 Apr 2019 10:22:14 +0200
Marco Nuessgen  wrote:

> On Thu, Apr 11, 2019 at 07:50:36AM +, John Long wrote:
> [...]
> > Can anybody recommend some good 2 or 4 port SATA (internal)
> > expansion cards or a SAS HBA that works well with OpenBSD?  
> 
> Have a look at the IBM ServeRaid M1015 SAS 6.0gbps SATA III. HBA. It
> is based on the LSI SAS2008 chip and can be crossflashed to:
> LSI9211-IT Straight pass through no RAID
> LSI9211-IR Pass through, RAID 0, 1, 1e, 10
> 
> https://www.servethehome.com/ibm-serveraid-m1015-part-4/
> 
> 
> Marco.
> 



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread John Long
On Fri, 12 Apr 2019 07:00:15 +0200
Robert  wrote:

> On Thu, 11 Apr 2019 07:50:36 +
> John Long  wrote:
> > Speaking with Dell, they are recommending their part number PEXSAT32
> > which is a rebadged StarTech product based on the Marvell 88SE9123
> > chipset. From posts I saw from people running various OS, that
> > chipset is flaky on everything but Windows.
> >
> > Can anybody recommend some good 2 or 4 port SATA (internal)
> > expansion cards or a SAS HBA that works well with OpenBSD?  
> 
> I am using two of these in my server:
> 
> ahci0 at pci3 dev 0 function 0 "Marvell 88SE9230 AHCI" rev 0x11: msi,
> AHCI 1.2

Thank you! So far two votes for this chipset. Somebody contacted me
offline to say he was using a HighPoint Rocket 640L card. Is this the
same card you have?

/jl



Running php cli when php-fpm uses chroot

2019-04-12 Thread Joel Carnat
Hi,

When php-fpm is configured to use chroot, it seems the php(1) cli still
tries to work unchrooted. So when running maintenance php scripts (like
occ from Nextcloud), errors raises for not finding resources (like mysql
socket etc).

I couldn't find a option for the php(1) command to "run as chroot".
I didn't want to copy php(1) and its deps into the chroot directory.

I could manage running the occ command by doing "dirty things":
  # doas sh -c "ln -s /var/www/htdocs /htdocs && ln -s /var/www/run /run"
  # doas -u www php occ db:convert-filecache-bigint
  # doas sh -c "rm /htdocs /run"

Is there a better way to handle chroot environnement when running php
scripts from the cli?

Thanks.



Re: Good options for SAS HBA or SATA expansion cards?

2019-04-12 Thread Marco Nuessgen
On Thu, Apr 11, 2019 at 07:50:36AM +, John Long wrote:
[...]
> Can anybody recommend some good 2 or 4 port SATA (internal) expansion
> cards or a SAS HBA that works well with OpenBSD?

Have a look at the IBM ServeRaid M1015 SAS 6.0gbps SATA III. HBA. It is
based on the LSI SAS2008 chip and can be crossflashed to:
LSI9211-IT Straight pass through no RAID
LSI9211-IR Pass through, RAID 0, 1, 1e, 10

https://www.servethehome.com/ibm-serveraid-m1015-part-4/


Marco.



Re: Answer 2 / Re: 10GBit network performance on OpenBSD 6.4

2019-04-12 Thread Stuart Henderson
On 2019-04-09, Mark Schneider  wrote:
> Hi Peter
>
> Thank you very much for your feedback.
>
> It looks like the performance issue is more complex than I have expected.
> Just for the test I have installed OpenBSD 6.4 and FreeBSD 13.0 on few 
> different servers and compared results (details are in attached files).
>
> Pure network speed I have to test with sucht tools like tcpbench, iperf3 
> or netperf to get independent of the mass storage stuff and other things.

It really depends what you want to test. It isn't clear from your mails
what the purpose of this is.

If that is packet forwarding performance, use separate machines either side
of the router, using tcpbench or iperf or various other high-speed packet
generators and sinks. There are big differences between forwarding and
application traffic.

OpenBSD will very likely come out with slower top speeds. But whether that's
important or not, again, depends on the situation.