Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Philip Guenther
On Tue, 3 Jul 2018, Philip Guenther wrote: Flakey button on my mouse; time to clean it again and throw it out if it keeps glitching. Sorry about that. > On Tue, Jul 3, 2018 at 4:53 PM Nan Xiao wrote: > > Thanks for your reply! The "ulimit -a" outputs following: > > > > $ ulimit -a > > time(c

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Philip Guenther
On Tue, Jul 3, 2018 at 4:53 PM Nan Xiao wrote: > Thanks for your reply! The "ulimit -a" outputs following: > > $ ulimit -a > time(cpu-seconds)unlimited > file(blocks) unlimited > coredump(blocks) unlimited > data(kbytes) 33554432 > stack(kbytes)8192 > lockedmem(kby

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Nan Xiao
Hi Marc, Thanks for your reply! The "ulimit -a" outputs following: $ ulimit -a time(cpu-seconds)unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 33554432 stack(kbytes)8192 lockedmem(kbytes)1332328 memory(kbytes) 3978716 nofiles(des

Re: add HISTORY to ldap.1

2018-07-03 Thread Reyk Floeter
OK reyk@ (please send diffs to tech@ not misc@) > Am 03.07.2018 um 21:20 schrieb Rob Pierce : > > Ok? > > Index: ldap.1 > === > RCS file: /cvs/src/usr.bin/ldap/ldap.1,v > retrieving revision 1.7 > diff -u -p -r1.7 ldap.1 > --- ldap

add HISTORY to ldap.1

2018-07-03 Thread Rob Pierce
Ok? Index: ldap.1 === RCS file: /cvs/src/usr.bin/ldap/ldap.1,v retrieving revision 1.7 diff -u -p -r1.7 ldap.1 --- ldap.1 3 Jul 2018 10:10:09 - 1.7 +++ ldap.1 3 Jul 2018 19:19:21 - @@ -233,6 +233,11 @@ Match Gr

mgre and bgpd

2018-07-03 Thread Benjamin Girard
Hi, So we are currently trying to set up one mgre interface instead of multiple gre tunnel between two vpn machines and we are running against a problem with bgpd. we have two machines, vpn1 and vpn2, we have set up an mgre interface on both like this: root@vpn1:~ # ifconfig mgre0

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
Thanks for explaining! Looks like this is too complex to be reliably tricked by a few dd commands. Now I'm resorting to "sysctl kern.bufcachepercent=5; sysctl kern.bufcachepercent=90" to "almost" clear the cache. If only setting it to 0 were allowed... On Tue, Jul 3, 2018 at 3:06 PM, Claudio Jek

Re: "Cannot allocate memory" error when memory is enough

2018-07-03 Thread Marc Espie
On Tue, Jul 03, 2018 at 05:31:22PM +0800, Nan Xiao wrote: > Hi all, > > Greeting from me! > > I am running OpenBSD 6.3, and don't know from when, loading some > binary will prompt "Cannot allocate memory": > > $ egdb > ksh: egdb: Cannot allocate memory > > $ cmake > ksh: cmake: Cannot allocate

Re: clearing the disk cache

2018-07-03 Thread Claudio Jeker
On Tue, Jul 03, 2018 at 01:30:20PM +0200, Maximilian Pichler wrote: > On Tue, Jul 3, 2018 at 11:47 AM, Janne Johansson wrote: > > https://www.tedunangst.com/flak/post/2Q-buffer-cache-algorithm > > Thanks. If I'm reading this correctly upon access (read or write), an > action is performed dependin

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
On Tue, Jul 3, 2018 at 11:47 AM, Janne Johansson wrote: > https://www.tedunangst.com/flak/post/2Q-buffer-cache-algorithm Thanks. If I'm reading this correctly upon access (read or write), an action is performed depending on what queue a buffer is in: - none: Take a buffer from the tail of the col

Re: Weird routing problem on simple CARP setup

2018-07-03 Thread Stefan Sperling
On Wed, Jun 27, 2018 at 09:30:16AM +, BARDOU Pierre wrote: > Hello, > > I have a strange problem with OpenBSD 6.2, which looks like a bug. > Steps to reproduce : > > * sh /etc/netstart -> everything works. Routing table : > root@fw-t-wan-chut01:~ # netstat -rnf inet

Re: clearing the disk cache

2018-07-03 Thread Janne Johansson
Den tis 3 juli 2018 kl 10:59 skrev Maximilian Pichler < maxim.pich...@gmail.com>: > > > The buffer cache is implemented as two 2-queue and therefor a simple cat > > bigfile will not fill the cache. > > What sort of data structure or algorithm is this? Any reference would > be much appreciated. > >

"Cannot allocate memory" error when memory is enough

2018-07-03 Thread Nan Xiao
Hi all, Greeting from me! I am running OpenBSD 6.3, and don't know from when, loading some binary will prompt "Cannot allocate memory": $ egdb ksh: egdb: Cannot allocate memory $ cmake ksh: cmake: Cannot allocate memory But the memory seems enough: $top .. Memory: Real: 57M/1365M act/tot F

Re: clearing the disk cache

2018-07-03 Thread Maximilian Pichler
On Tue, Jul 3, 2018 at 9:48 AM, Claudio Jeker wrote: > or reboot the system after every run. Would unmounting and remounting not be good enough? (At least for a FAT-formatted SD card this appears to work, though it could be caused by something else). In fact, at what level does caching happen? Is

Re: clearing the disk cache

2018-07-03 Thread Benjamin Baier
On Tue, 3 Jul 2018 09:42:46 +0200 Maximilian Pichler wrote: > I'm doing some performance tests that include reading files from disk > and want to make sure that each test takes place under similar > conditions. > > In particular, how can one clear the disk cache? (I want to make sure > that the

Re: clearing the disk cache

2018-07-03 Thread Claudio Jeker
On Tue, Jul 03, 2018 at 09:42:46AM +0200, Maximilian Pichler wrote: > I'm doing some performance tests that include reading files from disk > and want to make sure that each test takes place under similar > conditions. > > In particular, how can one clear the disk cache? (I want to make sure > tha

clearing the disk cache

2018-07-03 Thread Maximilian Pichler
I'm doing some performance tests that include reading files from disk and want to make sure that each test takes place under similar conditions. In particular, how can one clear the disk cache? (I want to make sure that the second test isn't faster than the first one, just because some files they