Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126166 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 7DB811A00BD for ; Sun, 22 Dec 2024 14:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1734879302; bh=HTn36AQH+56WtEGgmco3tgH/bfG7guepiQ1S3pRXtpg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IEI5W+izSjRrG7WlUs3cLoE5dZM2WxsYI9Qqfl3KG4i3yUAL+7LaLLOt9cEp4OtGR ytlHiDdCr5vCK+Aor0w1mrCgBVn4Xo+bKpa/oFJQH5lADULHy/QaWoQSP1t1meN1XR SQr5n7pBoCRpP4Vz2/0Kkt/nzem2HySycKRjGVilZyPPvQN8ZGfba1HEEnIkoNmqzE q5soPS8xVNN8G4o6qHtyr9a77I2np+0G1idAvcXu0ziLGN+kGSm+O+wKxkTdv2KTw6 AAho07GLZ79vKIJ/2m4HU6u5sJNCiFX9TC5cUBK+KwTy1oLrQDQa8svfDMeUF5BWvY Ws/bY1hYIOwFw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C997618007E for ; Sun, 22 Dec 2024 14:55:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 22 Dec 2024 14:55:01 +0000 (UTC) Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6dccccd429eso27962316d6.3 for ; Sun, 22 Dec 2024 06:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunglas.fr; s=google; t=1734879482; x=1735484282; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HTn36AQH+56WtEGgmco3tgH/bfG7guepiQ1S3pRXtpg=; b=JcpkhDM+AQver7cv/xgw+QDcmr2idfCooNrrtyWkdqLZS8nMIVQX7d64Gl1+5c73Vo L7XNYCuO1+QxmpnYioE+PzNIlAgfbFwNaFgvf38gbCvoLGQQuVAT9TJbi3jE/+YUY3/x ylOvNDs4WDTaR/PZjqjaDk2OdrweXbTFbo8fOgy8QiTk27Fsxp0vz1zT1Rfax3RYrWom 07EIfQJr//32F5ZlQWpUW325Zrp3Xic6WSOKc2tHWtJNAvs3kOsk8McmC8O60pfshl6S cVFrfnTaIGTsmdDOqOfy8Sy4YDfjT57E4eN2QSeSFOxyTmN9gwxV+L7ueNW+d87LfDOz MI0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734879482; x=1735484282; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HTn36AQH+56WtEGgmco3tgH/bfG7guepiQ1S3pRXtpg=; b=M5ras0Yfc2d7bhmk/zXEf5PR0yxPANA5YmWXDlRwJwkYsZqagggmin9TtoMsOKJpno mmxDsehC7Tp0AuP2F8vqplYSfwdNDEK0Z/5qvH5hQOdNUV+FP7QxHaoYgb08L6W6XLXv 7omxhz8Ym+cRqnqpEQ7H0XWYYI8p3fB+mYhcNskXfvN+PaOd65XP++KOj42ZJ885+ZLO 9x02N9cIO8hIDAevLUwzjXLtwxNM3rEPPmmdhHybAla9itRmvPvDAsu0zHN5oEpYOLAR h3bDylj53Fn2s5KE0AeuF7U3njUJ2LKenZ/S0RQCDJqt53eMlfPY6qFLfeBx5uygo/0Q ueQg== X-Forwarded-Encrypted: i=1; AJvYcCUtGBx+bxtoM026F6xcsheXsAaYm6xhlZjv34hEJVd/mKnvRFT46e5a12GA+GJ+X8+jkIVCrr9Xvvs=@lists.php.net X-Gm-Message-State: AOJu0Yxu9og78TgG7xsCJ7mkNeMQ3s3lYcVa2VeQOM786Lo2BpTheIJt eaZF169xO/ByD6oVkgHtHuTIUyT4BDe+4/4ef5xL1OgVtzSdmuFSDipQh+0/fyKJCC/dAin4CSh qer0xaQGJ0Qs6bckd9X90ee8yu5X4OZXFkY3+vA== X-Gm-Gg: ASbGncsZVP8t6TpnM/usqnaULjJfs+dE+kKezW+/0YLIb8oGZy+m11u24QFEEjux1Bb JWlbrabRkIK7B8AhDp3pSvNaJ88YfC4rLmJCA2/3W+ofaHwLraPIbAPEwj+72lAwj6D3/PA== X-Google-Smtp-Source: AGHT+IERMrJT9SKhy9KxLwEyGkAfUrkne6BFFdw1JXNhMes/WPH6cqfGOY7dtWMs9E6tEqu1nUWyq84OyY94iGT+m4c= X-Received: by 2002:a05:6214:248a:b0:6d8:8da9:e418 with SMTP id 6a1803df08f44-6dd233aedd7mr156012216d6.40.1734879482090; Sun, 22 Dec 2024 06:58:02 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <27531d9d-9bfe-4acc-b9ab-80b1017e3038@app.fastmail.com> In-Reply-To: Date: Sun, 22 Dec 2024 15:57:51 +0100 Message-ID: Subject: Re: [PHP-DEV] Discussion: Remove file statcache? To: Jakub Zelenka Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="0000000000004225860629dd1b57" From: kevin@dunglas.fr (=?UTF-8?Q?K=C3=A9vin_Dunglas?=) --0000000000004225860629dd1b57 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Dec 22, 2024 at 10:44=E2=80=AFAM Jakub Zelenka wrot= e: > Thinking about it, there might be a possibility to address it (at least o= n > Linux) using fanotify. Not sure about other platforms but maybe there are > some solutions to address it. Also it might get a bit complex and not sur= e > how much the solution is viable. > For FrankenPHP, we successfully use https://github.com/e-dant/watcher for this kind of usage. It supports Linux (fanotify, notify, epoll...), macOS, and Windows, and is very efficient. It's a C++ library but with pure C bindings. Best, --0000000000004225860629dd1b57 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Dec 22, 2024 at 10:44=E2=80=AFAM = Jakub Zelenka <bukka@php.net> wr= ote:
Thinking about it, there might be a possibility to address it (= at least on Linux) using fanotify. Not sure about other platforms but maybe= there are some solutions to address it. Also it might get a bit complex an= d not sure how much the solution is viable.
<= div>
For FrankenPHP, we successfully use=C2=A0https://github.com/e-dant/watcher for th= is kind of usage. It supports Linux (fanotify, notify, epoll...), macOS, an= d Windows, and is very efficient.
It's a C++ library but with= pure C bindings.

Best,
--0000000000004225860629dd1b57--