Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Rick Macklem
Did my usual and forgot to attach it. Here's the patch, rick From: Rick Macklem Sent: Tuesday, November 28, 2017 6:17:13 PM To: Emmanuel Vadot Cc: Konstantin Belousov; FreeBSD Current; freebsd...@freebsd.org; Rick Macklem Subject:

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Rick Macklem
I think the attached patch should fix your performance problem. It simply checks for nfsrv_delegatecnt != 0 before doing all the locking stuff in nfsrv_checkgetattr(). If this fixes your performance problem (with delegations disabled), I'll probably add a separate counter for write delegations

witness_lock_list_get: witness exhausted

2017-11-28 Thread Michael Jung
Hi! I've recently up'd my processor count on our poudriere box and have started noticing the error "witness_lock_list_get: witness exhausted" on the console. The kernel *DOES NOT* crash but I thought the report may be useful to someone. $ uname -a FreeBSD poudriere 12.0-CURRENT FreeBSD

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Rick Macklem
Emmanuel Vadot wrote: >I wrote: >> Since it defaults to "disabled", I don't see why a tunable would be >> necessary? >> (Just do nothing and delegations don't happen. If you want the server >> to issue delegations, then use the sysctl to turn them on. If you want to >> turn >> them off again

Re: CURRENT: core dumped no process name

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 08:37:44AM -0800, Gleb Smirnoff wrote: > Hi Alex, > > On Tue, Nov 28, 2017 at 06:09:16PM +0700, Alex V. Petrov wrote: > A> You were right. > A> After revert to r325188 worked: > A> Nov 28 18:05:18 alex kernel: pid 23618 (mc), uid 0: exited on signal 6 > A> (core dumped)

Re: CURRENT: core dumped no process name

2017-11-28 Thread Gleb Smirnoff
Hi Alex, On Tue, Nov 28, 2017 at 06:09:16PM +0700, Alex V. Petrov wrote: A> You were right. A> After revert to r325188 worked: A> Nov 28 18:05:18 alex kernel: pid 23618 (mc), uid 0: exited on signal 6 A> (core dumped) Can you please send over to me the syslogd binary and syslogd.core? --

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Emmanuel Vadot
On Tue, 28 Nov 2017 14:12:38 + Rick Macklem wrote: > Konstantin Belousov wrote: > >On Tue, Nov 28, 2017 at 02:26:10PM +0100, Emmanuel Vadot wrote: > >> On Tue, 28 Nov 2017 13:04:28 +0200 > >> Konstantin Belousov wrote: > >> > >> > On Tue, Nov 28,

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Emmanuel Vadot
On Tue, 28 Nov 2017 15:40:09 +0200 Konstantin Belousov wrote: > On Tue, Nov 28, 2017 at 02:26:10PM +0100, Emmanuel Vadot wrote: > > On Tue, 28 Nov 2017 13:04:28 +0200 > > Konstantin Belousov wrote: > > > > > On Tue, Nov 28, 2017 at 11:41:36AM +0100,

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Rick Macklem
Konstantin Belousov wrote: >On Tue, Nov 28, 2017 at 02:26:10PM +0100, Emmanuel Vadot wrote: >> On Tue, 28 Nov 2017 13:04:28 +0200 >> Konstantin Belousov wrote: >> >> > On Tue, Nov 28, 2017 at 11:41:36AM +0100, Emmanuel Vadot wrote: >> > > >> > > Hello, >> > > >> > > I would

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 02:26:10PM +0100, Emmanuel Vadot wrote: > On Tue, 28 Nov 2017 13:04:28 +0200 > Konstantin Belousov wrote: > > > On Tue, Nov 28, 2017 at 11:41:36AM +0100, Emmanuel Vadot wrote: > > > > > > Hello, > > > > > > I would like to switch the

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Emmanuel Vadot
On Tue, 28 Nov 2017 13:04:28 +0200 Konstantin Belousov wrote: > On Tue, Nov 28, 2017 at 11:41:36AM +0100, Emmanuel Vadot wrote: > > > > Hello, > > > > I would like to switch the vfs.nfsd.issue_delegations sysctl to a > > tunable. > > The reason behind it is recent

Re: CURRENT: core dumped no process name

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 06:09:16PM +0700, Alex V. Petrov wrote: > You were right. > After revert to r325188 worked: > Nov 28 18:05:18 alex kernel: pid 23618 (mc), uid 0: exited on signal 6 > (core dumped) Thank you for confirming. Adding the committer. > > 28.11.2017 17:38, Konstantin Belousov

Re: CURRENT: core dumped no process name

2017-11-28 Thread Alex V. Petrov
You were right. After revert to r325188 worked: Nov 28 18:05:18 alex kernel: pid 23618 (mc), uid 0: exited on signal 6 (core dumped) 28.11.2017 17:38, Konstantin Belousov пишет: > On Tue, Nov 28, 2017 at 05:13:10PM +0700, Alex V. Petrov wrote: >> from /var/log/messages >> >> # grep core

Re: Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 11:41:36AM +0100, Emmanuel Vadot wrote: > > Hello, > > I would like to switch the vfs.nfsd.issue_delegations sysctl to a > tunable. > The reason behind it is recent problem at work on some on our filer > related to NFS. > We use NFSv4 without delegation as we never

Switch vfs.nfsd.issue_delegations to TUNABLE ?

2017-11-28 Thread Emmanuel Vadot
Hello, I would like to switch the vfs.nfsd.issue_delegations sysctl to a tunable. The reason behind it is recent problem at work on some on our filer related to NFS. We use NFSv4 without delegation as we never been able to have good performance with FreeBSD server and Linux client (we need

Re: CURRENT: core dumped no process name

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 05:13:10PM +0700, Alex V. Petrov wrote: > from /var/log/messages > > # grep core /var/log/messages > Nov 21 06:26:56 alex kernel: 1001: exited on signal 11 (core dumped) > Nov 22 00:46:31 alex kernel: FreeBSD/SMP: 1 package(s) x 8 core(s) > Nov 22 16:01:32 alex kernel:

Re: CURRENT: core dumped no process name

2017-11-28 Thread Alex V. Petrov
from /var/log/messages # grep core /var/log/messages Nov 21 06:26:56 alex kernel: 1001: exited on signal 11 (core dumped) Nov 22 00:46:31 alex kernel: FreeBSD/SMP: 1 package(s) x 8 core(s) Nov 22 16:01:32 alex kernel: 1001: exited on signal 11 (core dumped) Nov 23 08:14:45 alex kernel:

Re: CURRENT: core dumped no process name

2017-11-28 Thread Konstantin Belousov
On Tue, Nov 28, 2017 at 10:37:45AM +0700, Alex V. Petrov wrote: > SUBJ: > Nov 28 10:28:38 alex kernel: 1001: exited on signal 11 (core dumped) > It was a thunerbird > > > 12.0-CURRENT #0 r326286 > kernel GENERIC-NODEBUG The format strings is following: "pid %d (%s), uid %d: exited on signal