Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2020 10:06:05 +0200
From:      Gordon Bergling <gbe@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        Allan Jude <allanjude@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   Re: Constant load of 1 on a recent 12-STABLE
Message-ID:  <20200705080605.GA53520@lion.0xfce3.net>
In-Reply-To: <0a10a722-3eec-456b-d771-97a49af89ad1@FreeBSD.org>
References:  <20200603101607.GA80381@lion.0xfce3.net> <c18664e8-b4e3-1402-48ed-3a02dc36ce29@freebsd.org> <20200603202929.GA65032@lion.0xfce3.net> <8b1498ea-e343-506e-79c7-c25b594808f0@freebsd.org> <20200604123720.GA63595@lion.0xfce3.net> <20200623072332.GA54653@lion.0xfce3.net> <0a10a722-3eec-456b-d771-97a49af89ad1@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 02, 2020 at 10:40:50AM +0300, Andriy Gapon wrote:
> On 23/06/2020 10:23, Gordon Bergling wrote:
> > What is maybe also related to the problem is the following top output, 
> > collected by 'top -HS'. The three zfskern threads generate little load, but that
> > constant. The annoying part of the problem is, that the load of 1 is reported and
> > that the hostsystem schedules the thread over all 4 physical cores and keeps the
> > clockrate at the highest frequency.
> > 
> >   PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
> >    11 root        155 ki31     0B    64K CPU2     2  17:28  97.39% idle{idle: cpu2}
> >    11 root        155 ki31     0B    64K CPU3     3  17:29  96.78% idle{idle: cpu3}
> >    11 root        155 ki31     0B    64K CPU1     1  17:29  96.40% idle{idle: cpu1}
> >    11 root        155 ki31     0B    64K RUN      0  17:25  96.13% idle{idle: cpu0}
> >     8 root         -8    -     0B  1040K mmp->m   2   0:44   4.32% zfskern{mmp_thread_enter}
> >     8 root         -8    -     0B  1040K mmp->m   1   0:44   4.28% zfskern{mmp_thread_enter}
> >     8 root         -8    -     0B  1040K mmp->m   3   0:44   4.25% zfskern{mmp_thread_enter}
> > 
> > Does anyone has some insight where zfskern is spawned? I maybe can bisect then the resulting change
> > which leads to this behaviour.
> 
> That's strange.  Those mmp threads shouldn't really be consuming much CPU.
> Normally they should just sleep all the time.
> Do you use the new ZFS multi-modifier protection feature?  I guess not.
> Do you have 'multihost' property set on any of your pools?
> 
> The change you were looking for is
> r361383 MFC r354804,r354806,r354807,r354885: 10499 Multi-modifier protection (MMP)

I didn't use the ZFS multi-modifier protection feature and didn't have the 'multihost'
propery set on any of my 3 ZFS pools. Thanks for identifing the particular change. I
have tried OpenZFS from ports, which seems to improve the situation, but I went back
to the base version since only the zroot pool was found and the two others pools 
weren't detected.

--Gordon

> -- 
> Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200705080605.GA53520>