Date: Sun, 8 Apr 2018 13:11:04 +0200 From: Eduardo Morras <emorrasg@yahoo.es> To: freebsd-hackers@freebsd.org Subject: Re: [diskless] pkg takes 100% of a CPU Message-ID: <20180408131104.117b849278667b57ca51b223@yahoo.es> In-Reply-To: <1523110791.40504.15.camel@freebsd.org> References: <aa289e46-170e-760b-c32c-e67bc37ed888@systella.fr> <CAHEMsqaMUWwj08y=oLCiKf3i=GWi=9kzcJ82v69i_50LUpF4fw@mail.gmail.com> <d1187041-65ca-565f-187e-8d5e9afd2210@systella.fr> <1523110791.40504.15.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 07 Apr 2018 08:19:51 -0600 Ian Lepore <ian@freebsd.org> wrote: > On Sat, 2018-04-07 at 11:50 +0200, BERTRAND Jol wrote: > > Steven Hartland a crit: > > >=20 > > > When we?ve seen it using 100% it?s been doing comprehension stuff > > > which usually finishes you just have to wait. Not sure if that?s > > > what you?re seeing? > > Yesterday, I have killed pkg after more than 100 hours of > > CPU time... > >=20 > > Best regards, > >=20 > > JB >=20 > For me, pkg(8) quit working on systems that have /var/db mounted from > nfs long ago, maybe as much as a year ago at this point. I mentioned > it on irc, and was told "It's probably something to do with locking", > but I already have boot.nfsroot.options=3D"nolockd" in loader.conf > (because that's pretty much the only option because the rc(8) system > was broken years ago when it comes to nfsroot). Is the db is on netbsd side? If yes, sqlite db over nfs are pita because nfs lies about file locking. It's true that it works 99% of time, the problematic part is the 1%. Documentation talks about incorrect NFS implementation, but a correct implementation can fail too because network latency, separate memory data between clients and server or different filesystem semantics; or all of them. https://www.sqlite.org/faq.html#q5 https://stackoverflow.com/questions/9907429/locking-sqlite-file-on-nfs-file= system-possible#9962003 >=20 > -- Ian --- --- Eduardo Morras <emorrasg@yahoo.es>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180408131104.117b849278667b57ca51b223>