From owner-freebsd-questions@freebsd.org Sun Nov 11 09:18:58 2018 Return-Path: Delivered-To: freebsd-questions@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 8B4F61131A2E for ; Sun, 11 Nov 2018 09:18:58 +0000 (UTC) (envelope-from markand@malikania.fr) Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 88BD476CEC for ; Sun, 11 Nov 2018 09:18:56 +0000 (UTC) (envelope-from markand@malikania.fr) Received: from postfix.malikania.fr ([5.135.187.121]) by mwinf5d54 with ME id yZJo1y0032dbEiD03ZJoW6; Sun, 11 Nov 2018 10:18:48 +0100 X-ME-Helo: postfix.malikania.fr X-ME-Auth: ZGVtZWxpZXIuZGF2aWRAb3JhbmdlLmZy X-ME-Date: Sun, 11 Nov 2018 10:18:48 +0100 X-ME-IP: 5.135.187.121 Received: from kiwi (unknown [86.243.9.210]) by postfix.malikania.fr (Postfix) with ESMTPSA id 1CBF87625F for ; Sun, 11 Nov 2018 10:03:09 +0100 (CET) Message-ID: <687be81a7d4b9342d3f1643ce6fc5dbe83c7b099.camel@malikania.fr> Subject: Unkillable process in a ZFS jail From: David Demelier To: freebsd-questions@freebsd.org Date: Sun, 11 Nov 2018 10:03:07 +0100 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 88BD476CEC X-Spamd-Result: default: False [0.85 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.65)[-0.647,0]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.33)[-0.326,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[malikania.fr]; NEURAL_SPAM_SHORT(0.44)[0.437,0]; MX_GOOD(-0.01)[malikania.fr]; RCVD_IN_DNSWL_NONE(0.00)[123.242.12.80.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[123.242.12.80.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:3215, ipnet:80.12.240.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.00)[country: FR(-0.02)]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2018 09:18:58 -0000 Hello there, I've just realized there was a process burning my small dedicated server CPU for 4 days long. The process was spawn in a ZFS jail from buildbot service. top shown this: buildbot 1 20 0 0K 16K CPU0 0 83.5H 101.02% python2.7 No kill -9 was able to stop the process, the jail was also unstoppable. And any filesystem operation in that jail got stuck. Just like editing /etc/rc.conf didn't terminate correctly. I remember there was a ZFS issue a long time ago about deadlocks, but I'm not sure it's still present, my server runs FreeBSD 11.2. This leads me to these questions: 1. Is there some issue regarding ZFS? What to do if a process is unkillable? 2. Do you know any kind of monitoring service or periodic files that reports too many CPU usage after a while? By sending a mail that would be very handy. Regards, -- David