From owner-freebsd-hackers@freebsd.org Sat Apr 7 14:35:46 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED4B1F8CFC6 for ; Sat, 7 Apr 2018 14:35:45 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4480583AF8; Sat, 7 Apr 2018 14:35:44 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w37EZeAa008616; Sat, 7 Apr 2018 07:35:40 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w37EZeqw008615; Sat, 7 Apr 2018 07:35:40 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201804071435.w37EZeqw008615@pdx.rh.CN85.dnsmgr.net> Subject: Re: [diskless] pkg takes 100% of a CPU In-Reply-To: <1523110791.40504.15.camel@freebsd.org> To: Ian Lepore Date: Sat, 7 Apr 2018 07:35:40 -0700 (PDT) CC: =?ISO-8859-1?Q?BERTRAND_Jo=EBl?= , freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 14:35:46 -0000 > 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. The /etc/rc.initdiskless is presenty (11.x and later) in a usable state, though it has some issues if your /usr is seperate from /, and you have to override the default size of /var due to bloat, though I think the sizes of all the tmpfs's got bumped in ^head/. I had a very nice working iPXE based boot menu system that you could boot all of {10|11|12-snaps}{i386|amd54}, but it is for some strange reason having a problem with the NFS load of the kernel going at an abismal pace, like 10 to 15 minutes to load the kernel. Stuff before and after that is normal speed. I believe this to be my fault, I changed something some place, and it broke, and I did not notice for a good long time. Now I do not know what it was that I changed that broken it :-(. The only real special thing in the above setup was a pxeboot that I got from a very specific point in time that has a nfsroot fix in it, without that you can not easily override the nfsroot ip:path from iPXE menu. /boot/pxeboot before and after this specific version is/was broke (since my test system is borked I can not test ^/heads latest pxeboot). Regards, -- Rod Grimes rgrimes@freebsd.org