From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id E80AD227E2 for ; Sun, 21 Jan 2024 22:49:17 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1705873757; b=LuY//TW7RgQmsoxBZipjwg7WezkCoos/0CtiGWBsLLOZbjDhi8G/fFHY5VGlq6CLOEJYwVMl6d VFHOtGEGOi08WwNm+JWRiaxVd19vx1FXokNg2dw1caX/LIBsd9M/PnybJXf3BcvtxGFQzxS92C G2zEbijKVTBbyeFO3jQc8xxg31+Hxy3dZPz2Tn3TIyHDoHJjmCbel3HPUAVfzi6Yo8ueLYAzRx EqU31mqnBkjlWBKW74sdrSkeezZlM2ii+Q2nkwP1hX1t6JKj7Js7uLs81qUKTgivk7drlvJYZH tSW6mNt/O6Y0lf/abufOisKrClmk2zADYYz9ByYPqNS20g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1705873757; bh=Z6sNQ2nu/wI7QMbp/y5GUMpwKVwh5BFPYhf+nNMSn8s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=qUokLKdDibEOrCTaPVcxwTPFw3Wb0CscTOaJTFikw8EQV+gv2YSp420ZW5sTZasrbBrWuE5nBV L0fC8mhjCaZ32XmeaVcMOaMJYS/x1zpbNpQ9h2L/IPudPfaA/iF+v11vnjaVnShZCpQTjPJBfQ lfU62poNfFKqp1cCus5N53RpdljCOQ0zJFPck1q+ZhyrN+EZigI4kUzs+usefnqLflbjf7KoX0 MYpvrq6D3M2GC3ZgZetch3BS8nTzZtRk+bwuDSMMswew1c5XAHfhTFCxh8B073AC6Dc2nVoT50 T9DCHK+08p9n08NFPixufwBXE7vVUSW7tms65J42s6DPbA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=S1lKH/sInFxv8vfyGIMhoWpAc0OFBXdfOg3qpVNpTsM=; b=r6RmioUpb8jzzWSbYMG6byp9lt pAVujbAcJJDFwNPLaxXiNd38zzsQm4SlHKMo+Xn138gUqefyqee2h3P7GHFKwBXwU5baDovJI2swY YQHsEKMUVJ51z7yyMQymmYD4Ix55TcPkpHw6o4D23moANR5vclgSWU6NXll/BGO6sCBRhTMnT274s gv4czNvsiRywrWQXfxfkCed0UnT5P5mwmebKFqS5uUXfSw4VcofD7Va8giPwmsT9HdBnUCcRDScRw ADshB/HaITdLh2e8XHwAlXnH3EGt46SKtPOtFd1IbgnXq/7eS3Vyku8h34iUe5EUVLyfkF3HC+Wzu mdYMGq0g==; Received: by zero.zsh.org with local id 1rRfgr-000Aii-CJ; Sun, 21 Jan 2024 21:49:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f54.google.com) smtp.remote-ip=209.85.208.54; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f54.google.com ([209.85.208.54]:55440) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rRfgC-000A0M-SF; Sun, 21 Jan 2024 21:48:37 +0000 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55a035669d5so2902668a12.2 for ; Sun, 21 Jan 2024 13:48:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1705873716; x=1706478516; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S1lKH/sInFxv8vfyGIMhoWpAc0OFBXdfOg3qpVNpTsM=; b=vt3bw1PNcDsL6JwBN9zzPb4e1fhCy7jN+N3g2Vk73uqOcuOBFIZROgrkt4qqAIxpL2 ztjyUm/OlEKx7CqU2RlweE8QNe5r8ZkibSOAHKRmYrQcRlPMg/BXs9AIJOkAcyRxr7Nb aNXLqRagZycEJEscTvuKbu0QevhFnkZjtS4PCX7qp0maIYtTt+gGz8Vxvj0qiHwIRj4E FLhSWCDwxT0MEBM7l9zIIkCIVPm1FGew+Eo33nE88pF0GBAYFFOTiHd41dVMfreE0RVX kN9e7lFiytygucETrxYv3yaOpXRhtNNEcghNp1m3bQtFAY0hJMgPnIZeNDz4Ol0i2/km Ff8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705873716; x=1706478516; h=content-transfer-encoding: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=S1lKH/sInFxv8vfyGIMhoWpAc0OFBXdfOg3qpVNpTsM=; b=iiDhCDQTShGK7phaxMDBhvJZzPCOmA4q4rpx2Jbxy5qw70nFur0MHH8qyywigEzc4s wFerM3lwWRpgw7wGPsz/2WlZt3Des0TdkDN+znyWQLbMr/yQU1gZ1fLKObKWX5xMFxiz dVM2oknsSRcEcvxf1c7AqFCQuVKopAcTwFQmB7tnt51M/IOCHls/hBuUGevHUtgIPFDl 0mCUBj3j79QG/xvFxfRbibc7d2sVxwCeG2sJjxGq4eeUklsgWpIG8a9hWn3MxVN53YJY Ue0mSKUR57M7DMDukjnYV4qQy031rZOQSCqwyFkxcjzta9x+fqGtTQR1YVqynuZSH29q WsDw== X-Gm-Message-State: AOJu0YwsbnHHBaqgq8WwTkMr0NTqDbTXuGjmZISX6Tfcn4uxAgL8wg5g m23N+R10Q+NjsGEH3XkrQyUIdUSbtTsnYQ6c/GDC+3XCvedORMFValwexe1Zh4ALvw8i/T0yMgW HCcjMIgK2iV7ehdLYtB/SheRVgwQTKNqobnBQ X-Google-Smtp-Source: AGHT+IEKpyaBrgqvW0dephG5Zi0GArkWbAIHMxjQ8etujiTE44PA7X9ddgMVXBnDbj9RviVG82nn0gmnquh8QGE61Tg= X-Received: by 2002:a17:906:f116:b0:a2f:1c8e:19e0 with SMTP id gv22-20020a170906f11600b00a2f1c8e19e0mr1313582ejb.12.1705873715686; Sun, 21 Jan 2024 13:48:35 -0800 (PST) MIME-Version: 1.0 References: <62da1cec-bcc9-49ed-8f5f-ad428fdd3f20@eastlink.ca> In-Reply-To: From: Bart Schaefer Date: Sun, 21 Jan 2024 13:48:24 -0800 Message-ID: Subject: Re: /proc slows % echo /**/*/etc/r*(/N) To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29538 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sun, Jan 21, 2024 at 11:59=E2=80=AFAM Ray Andrews wrote: > > On 2024-01-21 11:09, Bart Schaefer wrote: >> >> ... so by expanding that you're traversing the >> whole filesystem again, which takes you back to /proc/ again, and so >> on for every PID until zsh gives up (probably because it can't >> allocate any more memory). > > It had that looping feeling. Didn't realize that it was crashing tho, I = thought it was actually finishing. This is a situation wherein zsh can tell that it's not able to allocate memory, so it just stops trying without crashing. If it had crashed you'd have got nothing back and probably lost your shell session.