Re: strlcpy version speed tests?

2020-06-30 Thread Luke Small
I suppose this strlcpy4 without a goto is more elegant -Luke On Tue, Jun 30, 2020 at 10:07 PM Luke Small wrote: > I made it SUPER easy to test my assertion. The code is there. No > configuration needed. > > On Tue, Jun 30, 2020 at 9:59 PM Theo de Raadt wrote: > >> Luke Small wrote: >> >> >

Re: strlcpy version speed tests?

2020-06-30 Thread Stuart Longland
On 1/7/20 11:18 am, Luke Small wrote: > I made a couple different versions if anybody is interested! You don't need our permission… -- Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... ...it's backed up on a tape somewhere.

strlcpy version speed tests?

2020-06-30 Thread Luke Small
I made a couple different versions if anybody is interested! -Luke #include #include #include #include #include #include /* cc strlcpy_test.c -pipe -O2 -o strlcpy_test && ./strlcpy_testfast */ /* * Copy string src to buffer dst of size dsize. At most dsize-1 * chars will be copied.

em(4) issue I reported time ago seems to be fixed now

2020-06-30 Thread Walter Alejandro Iglesias
Today I burned the latest snapshot in a USB pen-drive and booted it in a HP desktop of mine where happened this: https://marc.info/?l=openbsd-bugs=156682947025229=2 It seems to be fixed, the card is now recognized out of the box as 1000baseTX as expected. :-) (I didn't change anything in my

MiniPC COOFUN C-N34 Apollo lake. external SD card support does not work.

2020-06-30 Thread Victor
Hello all, I've installed Release version OpenBSD 6.7 on a MiniPC COOFUN C-N34. It is a fan-less 4 core, 4GB RAM, Apollo Lake machine. See dmesg output bellow. This MiniPC has an internal 64GB eMMC, which works fine with 6.7 release. The OS is installed here. It is the only OS installed and

Re: OpenBGPD fatal in RDE: rde_dispatch_imsg_session: imsg_get error: Cannot allocate memory

2020-06-30 Thread Laurent CARON
Le 30/06/2020 à 11:56, Claudio Jeker a écrit : Can you check and monitor with ps aux | grep bgpd and or top the VSZ and RSS of the RDE process. What is the maximum you notice. Also how do you start bgpd? Make sure the limits from login.conf are actually applied (using rcctl start should do that

Re: OpenBGPD fatal in RDE: rde_dispatch_imsg_session: imsg_get error: Cannot allocate memory

2020-06-30 Thread Claudio Jeker
On Tue, Jun 30, 2020 at 10:23:07AM +0200, Laurent CARON wrote: > Hi, > > > I'm running a pretty busy OpenBGPd router (~250 bgp sessions) with 4 IPv4 > and 4 IPv6 full views, plus a few IX sessions. > > > # bgpctl show rib mem > RDE memory statistics >     820983 IPv4 unicast network entries

OpenBGPD fatal in RDE: rde_dispatch_imsg_session: imsg_get error: Cannot allocate memory

2020-06-30 Thread Laurent CARON
Hi, I'm running a pretty busy OpenBGPd router (~250 bgp sessions) with 4 IPv4 and 4 IPv6 full views, plus a few IX sessions. # bgpctl show rib mem RDE memory statistics     820983 IPv4 unicast network entries using 31.3M of memory     203228 IPv6 unicast network entries using 10.9M of

why isn't strlcpy written like this:

2020-06-30 Thread Luke Small
strlcpy is: size_t strlcpy(char *dst, const char *src, size_t dsize) { const char *osrc = src; size_t nleft = dsize; /* Copy as many bytes as will fit. */ if (nleft != 0) { while (--nleft != 0) { if ((*dst++ = *src++) == '\0') break; } } /* Not enough room in dst, add NUL

Re: Alpine-virt vmd guest tsc directive

2020-06-30 Thread George
On Mon, 29 Jun 2020 14:53:52 -0700 Mike Larkin wrote: > On Mon, Jun 29, 2020 at 08:25:19PM +, Martin wrote: > > Setting up Debian as vmm guest is not a trivial procedure and > > require Debian Linux host with KVM installed first to install your > > guest with screen connected. > > Why do