Date: Sun, 8 Apr 2018 10:14:03 +0200 From: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= <joel.bertrand@systella.fr> To: freebsd-hackers@freebsd.org Subject: Re: [diskless] pkg takes 100% of a CPU Message-ID: <36a0a944-c276-5e3e-0490-ce8e8c5ab1ac@systella.fr> In-Reply-To: <201804071708.w37H8Ts8009359@pdx.rh.CN85.dnsmgr.net> References: <201804071708.w37H8Ts8009359@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Rodney W. Grimes a écrit : >> On Sat, 2018-04-07 at 07:35 -0700, Rodney W. Grimes wrote: >>>> >>>> On Sat, 2018-04-07 at 11:50 +0200, BERTRAND Jol wrote: >>>>> >>>>> Steven Hartland a crit: >>>>>> >>>>>> >>>>>> 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... >>>>> >>>>> Best regards, >>>>> >>>>> JB >>>> 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="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). >>> My understanding of the current broken state of afairs is that pkg >>> does not work over nfs unless you have proper and full lockd support, >>> AND set NFS_WITH_PROPER_LOCKING in pkg's environment.??This really >>> really really just needs to work without a lot of fuss out of the >>> box. >>> >> >> nfs locking support is compiled into the kernel on both the server and >> client side, and rpc.lockd is running on both, but there is no need for >> actual locking on the mount because the rootfs isn't accessed by >> multiple clients at once -- each of my arm boards has its own private >> rootfs exported from the server. I'm pretty sure I tried remounting >> root > > pkg wants to do locking, multiple copies of pkg may be running on one > client, you might get pkg to work for you if you do the > > echo "NFS_WITH_PROPER_LOCKING = true;" >> /usr/local/etc/pkg.conf Of course, I have set this line in /usr/local/etc/pkg.conf. I cannot attach pkg to gdb : root@pythagore:~ # gdb -p 75520 GNU gdb 6.1.1 [FreeBSD] ......... This GDB was configured as "amd64-marcel-freebsd". Attaching to process 75520 /usr/src/contrib/gdb/gdb/solib-svr4.c:1444: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled. A problem internal to GDB has been detected, further debugging may prove unreliable. pkg seems to be called by /usr/local/sbin/pkgcheck-qsa I have killed pkg with -SEGV but I'm unable to find core file. Best regards, JB
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36a0a944-c276-5e3e-0490-ce8e8c5ab1ac>