Re: Embedded FreeBSD on a five-core RISC-V processor using LLVM

2019-02-01 Thread Theo de Raadt
Please don't fanboy here.  It is not appreciated.

> I believe a few will be interested in OpenBSD on RISC-V hardware.
> 
> This is the first time, a BSD is booting on RISC-V hardware.
> Looking forward to get OpenBSD on RISC-V hardware.
> 
> So, it might be interesting to look at this talk and associated tracks.
> 
> OpenBSD on Open Source CPUs (like Shakti RISC-V) would make a great firewall.
> 
> Thanks.
> 
> Regards,
> Dinesh
> 
> 
> 
> On 2/2/19, Stuart Henderson  wrote:
> > On 2019-02-01, Dinesh Thirumurthy  wrote:
> >> Hi,
> >>
> >> This talk
> >>
> >> https://fosdem.org/2019/schedule/event/testing_freebsd_risc_v5/
> >>
> >> is being presented at 1130 UTC Sat Feb 2nd. You can view via live
> >> streaming video.
> >>
> >> They talk about FreeBSD bring up on the SiFive FU540, RISC-V board.
> >>
> >> The BSD track is at https://fosdem.org/2019/schedule/track/bsd/
> >>
> >> The RISC-V track is at https://fosdem.org/2019/schedule/track/risc_v/
> >>
> >> Thanks.
> >> Regards
> >> Dinesh
> >>
> >>
> >
> > Seems like the wrong mailing list for this?
> >
> >
> >
> 



Re: Embedded FreeBSD on a five-core RISC-V processor using LLVM

2019-02-01 Thread Dinesh Thirumurthy
I believe a few will be interested in OpenBSD on RISC-V hardware.

This is the first time, a BSD is booting on RISC-V hardware.
Looking forward to get OpenBSD on RISC-V hardware.

So, it might be interesting to look at this talk and associated tracks.

OpenBSD on Open Source CPUs (like Shakti RISC-V) would make a great firewall.

Thanks.

Regards,
Dinesh



On 2/2/19, Stuart Henderson  wrote:
> On 2019-02-01, Dinesh Thirumurthy  wrote:
>> Hi,
>>
>> This talk
>>
>> https://fosdem.org/2019/schedule/event/testing_freebsd_risc_v5/
>>
>> is being presented at 1130 UTC Sat Feb 2nd. You can view via live
>> streaming video.
>>
>> They talk about FreeBSD bring up on the SiFive FU540, RISC-V board.
>>
>> The BSD track is at https://fosdem.org/2019/schedule/track/bsd/
>>
>> The RISC-V track is at https://fosdem.org/2019/schedule/track/risc_v/
>>
>> Thanks.
>> Regards
>> Dinesh
>>
>>
>
> Seems like the wrong mailing list for this?
>
>
>



Re: Embedded FreeBSD on a five-core RISC-V processor using LLVM

2019-02-01 Thread Stuart Henderson
On 2019-02-01, Dinesh Thirumurthy  wrote:
> Hi,
>
> This talk
>
> https://fosdem.org/2019/schedule/event/testing_freebsd_risc_v5/
>
> is being presented at 1130 UTC Sat Feb 2nd. You can view via live
> streaming video.
>
> They talk about FreeBSD bring up on the SiFive FU540, RISC-V board.
>
> The BSD track is at https://fosdem.org/2019/schedule/track/bsd/
>
> The RISC-V track is at https://fosdem.org/2019/schedule/track/risc_v/
>
> Thanks.
> Regards
> Dinesh
>
>

Seems like the wrong mailing list for this?




Embedded FreeBSD on a five-core RISC-V processor using LLVM

2019-02-01 Thread Dinesh Thirumurthy
Hi,

This talk

https://fosdem.org/2019/schedule/event/testing_freebsd_risc_v5/

is being presented at 1130 UTC Sat Feb 2nd. You can view via live
streaming video.

They talk about FreeBSD bring up on the SiFive FU540, RISC-V board.

The BSD track is at https://fosdem.org/2019/schedule/track/bsd/

The RISC-V track is at https://fosdem.org/2019/schedule/track/risc_v/

Thanks.
Regards
Dinesh



Re: Questions about Carp / PF / PFSync

2019-02-01 Thread Charles Amstutz
Charles Amstutz(charl...@binary.net) on 2019.01.30 23:16:17 +:
> Hello
> 
> We are running into an issue with a lot of dropped packets where states are 
> failing to be created. We have noticed that it coincides with a fair amount 
> of congestion, around 10-15/s according to 'pfctl -si'.
> 
> We finally tried disabling our Carp Interfaces (we are using carp for 
> failover) and the problem seems to completely go away. We have 53 carp 
> interfaces on these two boxes and are just looking for some input on what 
> might be causing an issue like this, where having carp interfaces enabled is 
> causing such high congestion.
> 
> We are running OpenBSD 6.4.
> 
> Thanks,

Set sysctl net.inet.carp.log=7 (and activate carp again).
What does it show (in /var/log/messages)?

Also, whats the output of

sysctl net.inet.ip.ifq.drops
sysctl net.inet6.ip6.ifq.drops
netstat -m
pfctl -vsi

?


/var/log/messages

With the logging we notice what is typical add entry attempts for arp


sysctl net.inet.ip.ifq.drops

net.inet.ip.ifq.drops=0

sysctl net.inet6.ip6.ifq.drops

net.inet6.ip6.ifq.drops=0

netstat –m

297 mbufs in use:
200 mbufs allocated to data
4 mbufs allocated to packet headers
93 mbufs allocated to socket names and addresses
17/104 mbuf 2048 byte clusters in use (current/peak)
99/555 mbuf 2112 byte clusters in use (current/peak)
0/40 mbuf 4096 byte clusters in use (current/peak)
0/56 mbuf 8192 byte clusters in use (current/peak)
0/14 mbuf 9216 byte clusters in use (current/peak)
0/30 mbuf 12288 byte clusters in use (current/peak)
0/24 mbuf 16384 byte clusters in use (current/peak)
0/48 mbuf 65536 byte clusters in use (current/peak)
5236/6856/524288 Kbytes allocated to network (current/peak/max)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

pfctl –vsi

Status: Enabled for 1 days 20:18:23  Debug: err

Hostid:   0x30e5b38f
Checksum: 0x0930fa9e7e5a8c4562c3c5b488715989


State Table  Total Rate
 current entries 7400
 half-open tcp136
 searches   486306276 3048.9/s
 inserts 21891932  137.3/s
removals21884532  137.2/s
Source Tracking Table
current entries0
 searches   00.0/s
inserts00.0/s
removals   00.0/s
Counters
match   39904360  250.2/s
bad-offset 00.0/s
fragment   00.0/s
short  40.0/s
normalize  10.0/s
memory 00.0/s
bad-timestamp  00.0/s
congestion   1777154   11.1/s
ip-option  00.0/s
proto-cksum00.0/s
state-mismatch  41850.0/s
state-insert   00.0/s
state-limit00.0/s
src-limit  00.0/s
synproxy   00.0/s
translate  00.0/s
no-route   00.0/s
Limit Counters
max states per rule00.0/s
max-src-states 00.0/s
max-src-nodes  00.0/s
max-src-conn   00.0/s
max-src-conn-rate  00.0/s
overload table insertion   00.0/s
overload flush states  00.0/s
synfloods detected 00.0/s
syncookies sent00.0/s
syncookies validated   00.0/s

Adaptive Syncookies Watermarks
  start  25000 states
  end12500 states



Re: VMD from Network!

2019-02-01 Thread Mike Larkin
On Fri, Feb 01, 2019 at 07:11:46PM +0100, Oleg Pahl wrote:
> Hi All,
> 
> Please help me to setup my VMM/VMD to install per PXE.
> 
> Is it posible if I have just MAC from VMM Client.
> 
> The other staff (PXE Server) is ready to install my VM.
> 
> Many Thx.
> 
> Oleg
> 

PXE worked (with a custom BIOS I built for a few folks) last year but between
then and now, something broke. I have not had a chance to fix it yet.

-ml



VMD from Network!

2019-02-01 Thread Oleg Pahl

Hi All,

Please help me to setup my VMM/VMD to install per PXE.

Is it posible if I have just MAC from VMM Client.

The other staff (PXE Server) is ready to install my VM.

Many Thx.

Oleg



VMs loosing network connectivity for a few minutes on a daily basis

2019-02-01 Thread mabi
Hello,

I am testing VMM/VMD on OpenBSD 6.4 with OpenBSD 6.4 virtual machines but 
noticed that maybe around 2 times per day the VM loose their network 
connectivity for a short amount of time of around 2-3 minutes. I currently have 
3 OpenBSD VM with very light load on them and it happens to all of them.

The network connectivity recovers on its own or if I login through the console 
to the VM and initiate for example a ping to the outside. The host/hypervisor 
itself never looses connectivity.

Now I presume there is either an issue with my network setup or maybe a bug but 
I would rather think it has to do with my network setup. My network setup on 
the OpenBSD host itself consists of two physical network devices (bnx0 + bnx1) 
which I have bundled in a trunk (trunk0) in failover mode. Then on top of my 
trunk I have two VLAN interfaces (vlan2 and vlan6). vlan2 is my private network 
and vlan6 is my public facing network (internet). Then finally I have a bridge 
interface (bridge6) with my vlan6 interface inside where my VM connect to as 
they are directly available on the internet.

So the whole chain of network interfaces from host to VM looks like this:

[bnx0+bnx1]-[trunk0]-[vlan6]-[bridge6]-[tap0]-[vio0]


My /etc/vm.conf looks like this:

switch "uplink_vlan6" {
interface bridge6
}

vm "obsd1vm" {
memory 2G
disk "/var/vmm/obsd1vm.qcow2"

interface {
switch "uplink_vlan6"
lladdr fe:e1:bb:03:01:01
}
}

My /etc/hostname.* files look like this:

/etc/hostname.bnx0
up

/etc/hostname.bnx1
up

/etc/hostname.trunk0
trunkproto failover trunkport bnx0 trunkport bnx1 up

/etc/hostname.vlan2
 inet 192.168.1.56 255.255.255.0 192.168.1.255 vnetid 2 parent trunk0 
description "private" up

/etc/hostname.vlan6
inet xxx.xxx.xxx.xxx 255.255.255.0 xxx.xxx.xxx.255 vnetid 6 parent trunk0 
description "public" up

/etc/hostname.bridge6
add vlan6
up

The hardware switch behind the host is a Cisco switch and the two ports 
connected to the two hardware NICS of the server have both the following config:

interface Eth101/1/9
  switchport mode trunk
  switchport trunk native vlan 99
  switchport trunk allowed vlan 2,6


Finally below is the output of ifconfig:

bnx0: flags=8b43 mtu 
1500
lladdr ---REMOVED---
index 3 priority 0 llprio 3
trunk: trunkdev trunk0
media: Ethernet autoselect (1000baseT full-duplex,rxpause)
status: active
bnx1: flags=8b43 mtu 
1500
lladdr ---REMOVED---
index 4 priority 0 llprio 3
trunk: trunkdev trunk0
media: Ethernet autoselect (1000baseT full-duplex,rxpause)
status: active
bridge6: flags=41
description: switch1-uplink_vlan6
index 5 llprio 3
groups: bridge
priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp
vlan6 flags=3
port 8 ifpriority 0 ifcost 0
tap0 flags=3
port 10 ifpriority 0 ifcost 0
trunk0: flags=8943 mtu 1500
lladdr ---REMOVED---
index 6 priority 0 llprio 3
trunk: trunkproto failover
trunkport bnx1
trunkport bnx0 master,active
groups: trunk
media: Ethernet autoselect
status: active
vlan2:  flags=8843 mtu 1500
lladdr ---REMOVED---
description: private
index 7 priority 0 llprio 3
encap: vnetid 2 parent trunk0
groups: vlan egress
media: Ethernet autoselect
status: active
inet 192.168.1.56 netmask 0xff00 broadcast 192.168.1.255
vlan6: flags=8943 mtu 1500
lladdr ---REMOVED---
description: public
index 8 priority 0 llprio 3
encap: vnetid 6 parent trunk0
groups: vlan
media: Ethernet autoselect
status: active
inet ---REMOVED--- netmask 0xff00 broadcast ---REMOVED---
pflog0: flags=141 mtu 33136
index 9 priority 0 llprio 3
groups: pflog
tap0: flags=8943 mtu 1500
lladdr fe:e1:ba:d0:56:1c
description: vm1-if0-obsd1vm
index 10 priority 0 llprio 3
groups: tap
status: active

Last note, the host and VMs are all patched up to 013_unveil.

I hope I could provide here all the relevant details, if there is anything else 
I should add I would be happy to provide with more info.

Best regards,
Mabi



Re: is pfsync loosing data on reboot?

2019-02-01 Thread Sebastian Benoit
Janne Johansson(icepic...@gmail.com) on 2019.02.01 12:49:53 +0100:
> Den fre 1 feb. 2019 kl 07:17 skrev Harald Dunkel :
> 
> > Hi folks,
> > I have a question about pfsync protocol in a master-backup firewall
> > configuration (OpenBSD 6.3 and 6.4):
> > If I reboot (let's say) the backup host, will it receive the whole
> > set of state information again, when it gets back online?
> > Hopefully I am not too blind to see, but pfsync(4) doesn't tell.
> >
> >
> > Yes, it will get a full dump since it has zero pre-existing knowledge of
> the current situation regarding states.
> 
> I think carp will delay itself until the sync is done, so it will not try
> to take over even if it has lower advskew than the other, until the sync is
> complete.

depending on the setting of sysctl net.inet.carp.log,
carp(4) will log what it (and pfsync) does.



Re: is pfsync loosing data on reboot?

2019-02-01 Thread Janne Johansson
Den fre 1 feb. 2019 kl 07:17 skrev Harald Dunkel :

> Hi folks,
> I have a question about pfsync protocol in a master-backup firewall
> configuration (OpenBSD 6.3 and 6.4):
> If I reboot (let's say) the backup host, will it receive the whole
> set of state information again, when it gets back online?
> Hopefully I am not too blind to see, but pfsync(4) doesn't tell.
>
>
> Yes, it will get a full dump since it has zero pre-existing knowledge of
the current situation regarding states.

I think carp will delay itself until the sync is done, so it will not try
to take over even if it has lower advskew than the other, until the sync is
complete.

-- 
May the most significant bit of your life be positive.


Re: boot problems, nvme?

2019-02-01 Thread kasak

01.02.2019 14:00, Kapetanakis Giannis пишет:

On 31/01/2019 15:57, kasak wrote:

31.01.2019 15:18, Kapetanakis Giannis пишет:

Hi,

I've just installed current as well 6.4 on a new pc and I have problems booting 
it.

Although I can boot bsd.rd and install system fine I cannot boot the normal 
kernel.
Boot hungs after
wskbd0 at pckbd0: console keyboard, using wsdisplay1

In bsd.rd next line is
softraid0 at root

I couldn't transfer the dmesg from bsd.rd so I took pictures of it.
Maybe someone can have a look?
https://nefeli.cc.uoc.gr/index.php/s/ce6hAZzTWPcNOLu

thanks

G

I can advice you to try to disable pcppi driver.

boot -c

disable pcppi

quit

What motherboard you own?


Thanks that worked.
hw.vendor=Gigabyte Technology Co., Ltd.
hw.product=Z370 HD3P

is this a bug?

G


Maybe. I have Asus Z170-K with similar problem.

also here is another post 
http://openbsd-archive.7691.n7.nabble.com/pcppi-hangs-td338060.html





Re: boot problems, nvme?

2019-02-01 Thread Kapetanakis Giannis
On 31/01/2019 15:57, kasak wrote:
> 31.01.2019 15:18, Kapetanakis Giannis пишет:
>> Hi,
>>
>> I've just installed current as well 6.4 on a new pc and I have problems 
>> booting it.
>>
>> Although I can boot bsd.rd and install system fine I cannot boot the normal 
>> kernel.
>> Boot hungs after
>> wskbd0 at pckbd0: console keyboard, using wsdisplay1
>>
>> In bsd.rd next line is
>> softraid0 at root
>>
>> I couldn't transfer the dmesg from bsd.rd so I took pictures of it.
>> Maybe someone can have a look?
>> https://nefeli.cc.uoc.gr/index.php/s/ce6hAZzTWPcNOLu
>>
>> thanks
>>
>> G
> 
> I can advice you to try to disable pcppi driver.
> 
> boot -c
> 
> disable pcppi
> 
> quit
> 
> What motherboard you own?


Thanks that worked.
hw.vendor=Gigabyte Technology Co., Ltd.
hw.product=Z370 HD3P

is this a bug?

G



sound short stops in mpv when doing firefox stuff

2019-02-01 Thread Mihai Popescu
Hello,

I use mpv with a network stream (radio) and in the same time I use
firefox for browsing. There is some audible sound short stop each time
I open a new tab in firefox and sometimes when in change tabs.
This it doesn't happen if I listen to that stream in the firefox
browser, no matter how many tabs I open.
I use the most recent snapshot/amd64. I tried to adjust cache for mpv
but it does not matter. Vlc is playing fine, as cvlc terminal app.

I want to stick with mpv for the moment, so if anyone is an expert in
fine tuning it, please drop here a hint. Even if it cannot be fixed
for the moment,

Thank you.