Date: Wed, 8 Jul 2020 10:44:03 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: bob prohaska <fbsd@www.zefox.net> Cc: freebsd-ports@freebsd.org Subject: Re: Gracefully killing and restarting a port build.... Message-ID: <941930819.28.1594197843269@localhost> In-Reply-To: <20200708034703.GA50491@www.zefox.net> References: <20200708034703.GA50491@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Van: bob prohaska <fbsd@www.zefox.net> Datum: woensdag, 8 juli 2020 05:47 Aan: freebsd-ports@freebsd.org Onderwerp: Gracefully killing and restarting a port build.... > > While compiling www/chromium on a Pi3B it has become clear that the > default -j4 isn't going to work (yes, I know, ya told me). > > On the plus side, it hasn't crashed, despite several days of > continuous swapping with 1-2GB of swap in use. Kudos to the > VM folks. > > Now I'd like to (gracefully) stop the make and restart it with more > sane -j values. -2 seems like a reasonable start. > > A simple > kill <PID> aimed at the original make doesn't seem to do anything. Even > kill -9 <PID> appears to have no effect on the c++ threads, which are > still running minutes afterwards. > > Now it seems rather like I'm stuck: The original <PID> is gone, but > c++ is still grinding away as if nothing has changed.. > > Is there a better way to accomplish a clean(ish) stop and restart of > a multi-threaded make process? > > Thanks for reading, apologies if it's a dumb question, > > bob prohaska > > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > > Kill the leaf nodes of the process tree. So kill the c++ processes. Or type ctrl-c if you have control of the terminal. If you are running the compile in a jail (like poudriere) you might use "killall -j <jail> c++" or something similar. Pkill can be usable also. BTW: How graceful a restart works is outside of the scope of the ports framework and depends a lot on the structure of the chromium build process itself. Regards, Ronald. From owner-freebsd-ports@freebsd.org Wed Jul 8 10:46:36 2020 Return-Path: <owner-freebsd-ports@freebsd.org> Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD45535EF12 for <freebsd-ports@mailman.nyi.freebsd.org>; Wed, 8 Jul 2020 10:46:36 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au [203.41.22.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2560 bits) client-digest SHA256) (Client CN "hermes.heuristicsystems.com.au", Issuer "Heuristic Systems Type 4 Host CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B1wwB0Jf4z3dF7 for <freebsd-ports@freebsd.org>; Wed, 8 Jul 2020 10:46:33 +0000 (UTC) (envelope-from dewayne@heuristicsystems.com.au) Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id 068AjFX7060564 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for <freebsd-ports@freebsd.org>; Wed, 8 Jul 2020 20:45:16 +1000 (AEST) (envelope-from dewayne@heuristicsystems.com.au) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1594205116; x=1594809917; bh=X1QBbsi/vX8n1D6N2I/bojJB02WWbSyhOgtoCcDvsOo=; h=Subject:To:From:Message-ID:Date; b=LMkOMRdUmz0IOhg7kkNAp3Vjldoj+FDfYleQcjX2L+xZ1XgrxVQ3uWlrSrA50YGoB B4ysyoSr7T4PJr54tHmx/E6qFzOI9YLWETsrg+KYfBh8lXkUE6TmSU9JGFhCpS/sk4 m2Npqfu7r56sMiKbynZouqvhrif8un3m5PYnpBhzvG8Thup8Agvvy X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: State changes via pkg's scripts To: freebsd-ports@freebsd.org References: <53b45b37-ba04-9866-d750-79aa8f897f62@heuristicsystems.com.au> <20200708072352.6yjti4xgyrng2u4n@ivaldir.net> From: Dewayne Geraghty <dewayne@heuristicsystems.com.au> Autocrypt: addr=dewayne@heuristicsystems.com.au; prefer-encrypt=mutual; keydata= mQFNBFbOsVMBCgDfvi2PspSwoMEtFhF+aFLQKtzSA9f0dhDqthKHESdfbqxvKzhkBjvTJ5Na EgjKoKfoQTh5xuIv3HLhtDo5PeasPgQl9cPJeriqmqlS+UhY5BGYcMc1AO/TX0fsDaQz96ko at3RUW7sff/qPgVzSurk+DV5h866gPdn5Jdjohyl2F1rzRl6dnaAIyg49zlwZOnPHJGKye+B meqUCnPRglhkpNqXR3v1ulbWpfwhdNDvWT82qTG/qsFy/agjJvxwLuEBeoGc1dPWasO8Nztt 0dqf1Lpeg6SX2yJd76WVS4znt88OEbx/QL2PTJ/YtSepS68WaeKuARKPukkU+QXDep0gaLPl /TvU5xAZndNB3rYnpmoLb32pDHlrJbZUVyTMqc3J2EYM6aaizCpg4VEvVpVSqUT4D9MuREhu PeZ3SvEazQARAQABiQF3BB8BCAAhBQJWzrFTFwyAAWHe5yZt8RJL0vaU1MfDto5dBmeFAgcA AAoJEJVk7a1LmFrdy2QJ/AysDdFIMCRiaqEellprZQyEz5I/qZJEi6yRfXH813hhISFz6moh urZYLQ9SRdyMntT8W3Oc4pJc9fF9RSnY0SSQY/arZbrvsv6hKb1KtIK7P5mLS914J9buxEcJ SWeVuOuMA9aCNqg5uMu19pH5pXayORfbv+K7vFPiyllZ64ShUWZJL69vAc/TsbvMrGtG1M4P qyWCOKEiUT93zhVGQoA0aUYjMAZoyvozZCuieo4O8hkPgMz9lka+3bqQBSOB+qO4Iz+CZs0k Lw7Soga6bRqLK86DH99WjTA6Oj1r8Won+j4V9fnTDCVJoSyqdVHLySDv/lHaNu4Ia4AO4i2d shmLw03gOUvoWLJx5X01A5Zio4FvecnpZqQ0Wz5Ph9MiK3lwarfjonTOLeNGd5BpdnHu5VRC fJml7uAYeyKsD8C4tEBEZXdheW5lIEdlcmFnaHR5IDxkZXdheW5lLmdlcmFnaHR5QGNvbnNj aXVtaW50ZXJuYXRpb25hbC5jb20uYXU+iQGXBBMBCABBAhshCwsKDQkIDAcLAwIECBUKCQgL AwIBBRYDAgEAAh4BAheAFiEEC8bIxjMx+sDl4ZCClWTtrUuYWt0FAl5UUOgACgkQlWTtrUuY Wt3xZAn/W/mq5nDhLIfqxVM9GbU8rGzNsGLfnt5NCVcWlBKhgxOOw9EWkcRTMymwX9OMqwxI +te6Gvy7rG53T2xprtsQyqESZmjWcUSEPsQ9hjw4VZCL15ftBeZMYyO2T1e41UImXAlftleT 2kXCktgyAfwfCzHhFiZM8k9QMFQV1x+JukJ9xPFBgICRLsLsVNVw/R1L7KqARuws4HqXxY1J SCpO+FB4b6tWSIRKbzlb6tctdKppKbG/adVYuoK61ngvmsAzy/9OLhF8u1MNCgyFd2woOErh /zyuap8KvJZMlwAIqpjsoHyXsa0cq8A/uNQSmodwBpRsEGXCmZIZq2FJw6N+38to8C8m97q0 YWrY63VsoA6hA4A4/ywzE3EiwGvqJQBMRv2ET3TIdTyLoEIwXq2bDPU7XTZGh5UZEsKFMHH5 228= Message-ID: <5e832c4f-7ca9-09b5-bb6d-5410b78918d4@heuristicsystems.com.au> Date: Wed, 8 Jul 2020 20:44:47 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200708072352.6yjti4xgyrng2u4n@ivaldir.net> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B1wwB0Jf4z3dF7 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=LMkOMRdU; dmarc=none; spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au designates 203.41.22.115 as permitted sender) smtp.mailfrom=dewayne@heuristicsystems.com.au X-Spamd-Result: default: False [-5.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; HAS_XAW(0.00)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.02)[-1.018]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.07)[0.068]; RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from]; DKIM_TRACE(0.00)[heuristicsystems.com.au:+]; DMARC_NA(0.00)[heuristicsystems.com.au]; NEURAL_HAM_MEDIUM(-0.96)[-0.962]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/> List-Post: <mailto:freebsd-ports@freebsd.org> List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 08 Jul 2020 10:46:36 -0000 On 8/07/2020 5:23 pm, Baptiste Daroussin wrote: > On Wed, Jul 08, 2020 at 04:32:34PM +1000, Dewayne Geraghty wrote: >> Is there a more convenient method to examine a package's scripts than >> unpacking the manifest file and >> # cat +MANIFEST | jq -rM '.scripts' >> ? As I'd like to know what changes will, or have been applied. > > pkg info --raw-format json -R yourpkg | jq -rM '.scripts' > > So far noone added a better interface yet, it should not be difficult to add > > Best regards, > Bapt > Unfortunate. Thank-you, that is helpful. Kind regards, Dewayne.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?941930819.28.1594197843269>