grow the number of pool items a cpu can cache on demand

2017-06-15 Thread David Gwynne
the pool cache code counts the number of times the mutex on the global info was already held, which we can interpret as demand. in response to this demand we can grow the number of items a cpu can cache, which in return should reduce the codemand/contention on the global info. the contention is

smtpd session hang

2017-06-15 Thread Henri Kemppainen
I had a little debugging session with awolk@ over at #openbsd-daily. His smtpd would over time end up with hung sessions that never timeout. The problem is related to the data_io path's congestion control which may pause the session. In this case the io system will not wait for read events and

hack: fix paths, remove hack.sh

2017-06-15 Thread Michal Mazurek
Fix paths in Makequest /usr/games/lib/questdir -> /var/games/questdir Remove hack.sh, it is broken since forever and nobody complained Update the READ_ME But don't update this part: 3. The rest of the stuff belonging to hack sits in a subdirectory hackdir (on our system

Re: Add support for rdonly keyword in fstab

2017-06-15 Thread Jérôme FRGACIC
On Wed, 14 Jun 2017 12:49:19 -0700, Klemens Nanni wrote: fstab(5) has always used ro/rw for this exclusively, which is sufficient enough imho. I dare say mount(8) actually has too many ways to say the same thing: -r -o ro -r norw -o rdonly How about removing

Re: sppp(4)/pppoe(4) dynamic address hack

2017-06-15 Thread Martin Pieuchot
On 12/06/17(Mon) 15:46, Stefan Sperling wrote: > On Sat, Jun 10, 2017 at 06:14:02PM +0200, Martin Pieuchot wrote: > > There's no need to fix the routing table, we could something like: > > > > - if (hisaddr == 1) { > > + if (hisaddr < 10) { > > > > Now I think you have a good

Re: install.sub: ieee80211_{scan,config}: Allow quoted SSIDs

2017-06-15 Thread Klemens Nanni
No need for quoting $_nwid within [[ ... ]] since field splitting is not applied. Index: install.sub === RCS file: /cvs/src/distrib/miniroot/install.sub,v retrieving revision 1.1014 diff -u -p -r1.1014 install.sub --- install.sub 3

Re: wsfont: remove iso7/pcvt encoding macros and entries

2017-06-15 Thread Frederic Cambus
On Tue, Jun 13, 2017 at 11:29:59AM +, Miod Vallat wrote: > > > Hi tech@, > > > > We do not support iso7 nor pcvt encoding, so remove macro definitions > > and commented entries. > > If you do that, then you can probably optimize away > vga_valid_primary_font() in sys/dev/ic/vga.c as well.

gc idle pool cache lists

2017-06-15 Thread David Gwynne
the diff below adds cleanup of idle lists in the cpu caches in pools. the caches on the cpus move lists of items around instead of individual items. these lists are moved to the global pool struct and accumulate there. if you get a burst of work in the pool (eg, you use a lot of mbufs for a short

Re: vi(1): documenting :s

2017-06-15 Thread Jason McIntyre
On Thu, Jun 15, 2017 at 02:14:46AM -0600, Anthony J. Bentley wrote: > Hi, > > From vi(1): > > [range] s[ubstitute] [/pattern/replace/] ??[options] [count] [flags] > [range] & [options] [count] [flags] > [range] ~ [options] [count] [flags] > Make substitutions. The

vi(1): documenting :s

2017-06-15 Thread Anthony J. Bentley
Hi, >From vi(1): [range] s[ubstitute] [/pattern/replace/]  [options] [count] [flags] [range] & [options] [count] [flags] [range] ~ [options] [count] [flags] Make substitutions. The replace field may contain any of the following sequences:

Re: sed(1): missing NUL in pattern space

2017-06-15 Thread Otto Moerbeek
On Tue, Jun 13, 2017 at 10:08:11AM +, kshe wrote: > On Sat, 10 Jun 2017 10:25:27 +, Otto Moerbeek wrote: > > Thanks for the analysis and diff, I hope to get a chanche to think > > about this soon. At least I'll make sure this diff is not forgotten, > > -Otto > > I have seen the tests