DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BK0Uwum1166038 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BK0Uwum1166038 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=k+TOCAqJ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D1913858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1734654656; bh=nk8wj8lk5/RODSRF9CgdhEHZzSOJDMqqj9mXDybtLJg=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=k+TOCAqJVabF0l1ZSoE7JVbtvUzzT6/SIl5Kd9uvGrN8nYyz8F2tyG96QnUIgUU98 /XZhJryvClQLdnkRp9Km9uzBY7s7id3VUidDMcEIRYRxAksu7GcYT80LmU1hQnj7DK MhD+DgbrSlZScDCIOohwn1gF/x2lECfcDCy4FPPI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A1BE3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1A1BE3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734654626; cv=none; b=dQaFzWGRAcBhzu48IXbkmQjHIYd0yttr5kHzeZD5INPHDOWdG4pFVTtVYM39KZFN0dCGC37G25rPkHNUvmDoRAGNvEn34tRB5cHZmKZ5/bZB5BQRkf/EVPZRF8Yja9943Ga26l0OobL/kPGA0cg6FVSfJbDq1SaEjxpXw/sFKgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734654626; c=relaxed/simple; bh=SCM3D6ctpMWLWk0R5Y3DZrFaYzC/hwsOo3FUA3ahO24=; h=Message-ID:Date:MIME-Version:Subject:To:From:DKIM-Signature; b=E2qy3zp52r5zknuZZXCFhUFre4eFsg/fwbPqPyGAIOv0+M14z4FC31apVIhX+jgF8Z3te314SkYin9ndZ2kM6GICh1M/EpgNOSoY1d5yDhx0ta/YbwahAQgh2x7w7ZomnqHCUWrW2PKZz4h6qQ2PSNwt4KkEZ/09WANjDuqiKLI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A1BE3858D20 Content-Type: multipart/mixed; boundary="------------KsvSnafTD3Dx0tHaIHQchQca" Message-ID: <6193fecd-9116-4182-82ff-a7bdcc5a6dbd@SystematicSW.ab.ca> Date: Thu, 19 Dec 2024 17:30:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: EPYC 144 core machine has issues with Cygwin PID wraparound Content-Language: en-CA To: cygwin AT cygwin DOT com References: Organization: Systematic Software In-Reply-To: X-Stat-Signature: hjchj5woaedmadqnxe48yneqpza1e7db X-Rspamd-Server: rspamout07 X-Rspamd-Queue-Id: 8F0E920030 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX194QzAvdS2GqSZ16HsPrOv83jXU0OzJWPk= X-HE-Tag: 1734654600-321934 X-HE-Meta: U2FsdGVkX1/8rsqe6GjBF6mtaN3rOwnMrnrdfwMtJa63RR6kqXKUT0UmIjVx1FmoX/vKH6eMu4BB2BFxNwlFUElfkUEVtWv9I8iFOii62kmivdUk7XF9kGFQVxjhOFRGwCuTdtyjFTH79o65g+MM2/u4jPBLg7LcE45pYrzajyBHJjCvqdU+CM9dCGHaWVDA1TO4o2qXXh4LSxfEfQc1IXeQVFzrSaN8FD+SfxuwsZUIRkUDRah1uyjJ3WKHBbkdrr0cIhORmjIFhxtTX+gpH3NJbJzirjOZs09p+fAgAo8yZzG9xvHUYv9IbgTLXfgxantqDg/B1bmuG1OJs2AclPhZyAcHfyIA9qycf+Xqhi/cfxoTXkcTECvfMP1Sh+eBdHhjjURt6sOPTtt4EHyZkrtuB6DZiZZqSAOsA7gj797Wsb0+q7sPm6x9x3BdPzNry4m6Tg/AuyYIXP3MA30WPQ== X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" This is a multi-part message in MIME format. --------------KsvSnafTD3Dx0tHaIHQchQca Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-12-19 16:42, Corinna Vinschen via Cygwin wrote: > On Dec 19 17:20, Cedric Blancher via Cygwin wrote: >> Good afternoon! >> >> We have a new AMD EPYC machine with 144 cores (upgraded from 8 core >> machine) running Windows 10 Enterprise, with a mixture of native Win32 >> apps+Cygwin. >> But the Cygwin apps cause trouble, as PID numbers get re-used too >> fast. We churn through ~~6912000 child processes EVERY HOUR, which now >> causes major problems with PID wraparounds in scripts and perl. >> >> 1. How can I increase the value at which pid-wraparound will happen? >> 2. How can I test for Cygwins max PID value? Cygwin does not have >> /proc/sys/kernel/pid_max > > We can't make the pid algorithm variable in terms of the max pid, so > I changed the maximum PID to the maximum pid on Linux, i.e., 4194304. > > Please check out the next test release cygwin 3.6.0-0.294.g363357c023ce. Run the attached to check your upgrade: $ gcc -o cyg_max_pid{,.c} && ./cyg_max_pid max pid 65536 -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry --------------KsvSnafTD3Dx0tHaIHQchQca Content-Type: text/plain; charset=UTF-8; name="cyg_max_pid.c" Content-Disposition: attachment; filename="cyg_max_pid.c" Content-Transfer-Encoding: base64 LyohL3Vzci9iaW4vZ2NjIC1EX0dOVV9TT1VSQ0UgLXBpcGUgLVdwLC1EX0ZPUlRJRllfU09V UkNFPTMgLWZhbmFseXplciAtZnNhbml0aXplLXJlY292ZXI9YWxsIC1mc3RhY2stY2hlY2sg LWZzdGFjay1wcm90ZWN0b3ItYWxsCiAqIC1XYWxsIC1XZXh0cmEgLVdmb3JtYXQ9MiAtV2Zv cm1hdC1vdmVyZmxvdz0yIC1XZXJyb3I9Zm9ybWF0LXNlY3VyaXR5IC1nZ2RiIC1PZyAtLXBh cmFtPXNzcC1idWZmZXItc2l6ZT00ICovCi8qIGN5Z19tYXhfcGlkLmMgLSBwcmludCBDeWd3 aW4gbWF4IHBpZCBpZCBhbGxvd2VkIC0gbm90IG1heCBwaWRzIHBlciB1c2VyIC0gc2VlIHVs aW1pdCAqLwoKI2luY2x1ZGUgPHN0ZGludC5oPgojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1 ZGUgPHVuaXN0ZC5oPgojaW5jbHVkZSA8c3lzL2N5Z3dpbi5oPgoKaW50Cm1haW4gKHZvaWQp CnsKICAgIHBpZF90IG1wID0gY3lnd2luX2ludGVybmFsIChDV19NQVhfQ1lHV0lOX1BJRCwg Jm1wKTsgCiAgICBwcmludGYgKCJtYXggcGlkICVkXG4iLCBtcCk7Cn0KCg== --------------KsvSnafTD3Dx0tHaIHQchQca Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple --------------KsvSnafTD3Dx0tHaIHQchQca--