From nobody Sun Jun 12 16:33:03 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D1647855E17 for ; Sun, 12 Jun 2022 16:33:18 +0000 (UTC) (envelope-from martin@waschbuesch.de) Received: from relay01.waschbuesch.it (relay01.waschbuesch.it [IPv6:2a01:138:9002:2::21]) (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 (4096 bits) client-digest SHA256) (Client CN "*.waschbuesch.it", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LLgHL09kXz4Znl for ; Sun, 12 Jun 2022 16:33:17 +0000 (UTC) (envelope-from martin@waschbuesch.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=waschbuesch.de; s=dkim; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:Subject:From:References:Cc:To:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Wt/kV6ptTyJHHXh2wHtl8ZtSTXKcRJLaGr3J3waI2wI=; b=NtKA8QsBVdQmCw1r96nu5wi7NE 2ttbsZrVNd1ajje8OdtP+uN4Jyo/eLCXxOvLa7oSXmpknH7yG4jzmc4tuh7CvjQtsVOwhRQp1kog7 E/3aNZ784P292LsglB0z28wQ5tsrHGc5X1xmfqkc+vJYxKpDvZrqNso7JaI/rgihBiZE=; Received: by relay01.waschbuesch.it with esmtpsa (TLS1.3:TLS_AES_128_GCM_SHA256:128) (Exim) (envelope-from ) id 1o0QWN-000GLb-5Q; Sun, 12 Jun 2022 16:33:03 +0000 Message-ID: Date: Sun, 12 Jun 2022 18:33:03 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: de-DE To: Franco Fichtner Cc: freebsd-ports@freebsd.org References: <897f37df-5d6e-b1ce-9037-cfaf6a1eea12@waschbuesch.de> From: =?UTF-8?Q?Martin_Waschb=c3=bcsch?= Subject: Re: stuck php processes after upgrade to 13.1-RELEASE In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4LLgHL09kXz4Znl X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=waschbuesch.de header.s=dkim header.b=NtKA8QsB; dmarc=pass (policy=reject) header.from=waschbuesch.de; spf=pass (mx1.freebsd.org: domain of martin@waschbuesch.de designates 2a01:138:9002:2::21 as permitted sender) smtp.mailfrom=martin@waschbuesch.de X-Spamd-Result: default: False [-4.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[waschbuesch.de:s=dkim]; FREEFALL_USER(0.00)[martin]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[2a01:138:9002:2::21:from]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[waschbuesch.de,reject]; DKIM_TRACE(0.00)[waschbuesch.de:+]; MLMMJ_DEST(0.00)[freebsd-ports]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15598, ipnet:2a01:138::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi Franco, good to know I am not the only one. (For me it is frequent enough to be annoying, though.) :-) There may be additional situations where something like this occurred (twice now and on different webservers): Having stopped php-fpm and made sure that there are no dangling processes. "service php-fpm start" then got stuck after the line "Starting php_fpm." Waited a couple of minutes before killing it. (CTRL+C worked). No idea it is related, however. Am 07.06.22 um 15:27 schrieb Franco Fichtner: > Hi Martin, > >> On 6. Jun 2022, at 23:38, Martin Waschbüsch wrote: >> >> Hi there, >> >> ever since I upgraded some of my webservers to FreeBSD 13.1-RELEASE, >> some cronjobs executing php scripts seem to end up stuck. >> It does not always happen. I have not been able to pinpoint the >> circumstances. Nor have I managed to come up with a way to reproduce >> the issue. > > We are seeing the same thing under fringe conditions on stable/13 from > beginning of this year: > > Configuring firewall.......done. > load: 0.53  cmd: php 69829 [nanslp] 65.89r 0.34u 0.23s 0% 27696k > mi_switch+0xc2 sleepq_catch_signals+0x2e6 sleepq_timedwait_sig+0x12 > _sleep+0x1d1 kern_clock_nanosleep+0x1c1 sys_nanosleep+0x3b > amd64_syscall+0x10c fast_syscall_common+0xf8 > [doesn't continue] > > Haven’t looked at this more closely as it only happens intermittently on > OPNsense 22.1 live images. > > The process reacts to CTRL+C just fine and the process ends. > > > Cheers, > Franco > >> >> With every processes that gets stuck that way, I can do >> >> truss -p >> >> and will get a neverending output of: >> >> sched_yield()                     = 0 (0x0) >> >> which to me looks like an attempt to let other threads get on with >> work, but being rescheduled immediately. >> >> Scripts this has happened with were magento2 and shopware 5.7 >> maintenance cronjobs running with PHP 7.4.29. >> >> Also note, in case this makes a difference, that all of these servers >> are running on VMs provided using kvm (I use a proxmox cluster for >> virtualisation). >> I noticed that the new kvmclock timer module is automatically used. On >> 13.0 I had to install kvmclock-kmod for that. Don't know if the code >> changed now it is part of base. >> >> >> Anyway, maybe someone else has had similar things happen on their systems? >> >> I was loath to open a PR because at this point I don't rightly know >> how to categorize it. Is it a problem with FreeBSD? Or a formerly >> harmless issue with PHP that became more 'visible' on the newer OS >> version? >> Is it something in conjunction with kvm, or a timing issue... >> >> Any help appreciated. >> >> Thanks, >> >> Martin >> Liebe Grüße, Martin Waschbüsch -- Schumacherring 29 81737 München Telefon: +49 89 57005708 Fax: +49 89 57868023 Mobil: +49 170 2189794