From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id E99783857C53 for ; Thu, 21 Dec 2023 16:10:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E99783857C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E99783857C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703175008; cv=none; b=IBnS81qg09pddKaMmdH72lfT98DM8lsay5VN6O0PfhsiOaaDSYDz6i5h1ayk07ERFouihtjxbEjKrNP0lNqU7ZxVQHoXGBgbVUezrRW+39R5xRXzAjedzgd36hLQtWK2KstsKMQDD/lqVO3lIK3i+qhL0EZlr1rw0e7Rbf0oG7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703175008; c=relaxed/simple; bh=Yo3OBLC56KVPvXBDsxCKcIaEzeYNJJhDTaCGEc7xALg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=qZf+6eYZVVzk45SikIcS3SH+JikEatJvC5nyZLDM0Qhe+CRdWOle5FEdHsnWQbKxI7ItEPRdcKze39pvI+8/tR6/AUywH/iit8h2y0T+KA5IkAMk2iZu/PWbVda0wViGwQaSMoYRIFpzwRNJxt69jWDZVoPcOTWOUZ07ApQylc4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5537dd673e5so798021a12.0 for ; Thu, 21 Dec 2023 08:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703175004; x=1703779804; darn=cygwin.com; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Yo3OBLC56KVPvXBDsxCKcIaEzeYNJJhDTaCGEc7xALg=; b=TC16SjdnY7ZUlDklUpMu/L22TEe6wE9MH9jQhUv9AXlQJLac5scRbBf46zb79GQO80 NXYwH1Cis39Ma/rqsGZiIXyVp6f7nf4FIg1JR3FjgGbc++f4JwCnoHc2J9WyqBZ0aDwu 7O9E7wem2fxd15RkLf7yVCUeTfZ5gNLQYx468evmEgoJ9hmnbuMJbLWTSYXXEChJcQj/ PyjDE26dL2K4n332G/XjgHi6JDhSKNmWvoYnssuJ97x3ewpQtU7n8kuDEFiO88UfXvdj k89G5j+4i52ZurdMWOwvNnACXjhiK3yYEZP0dWO8HrltUVJ5NU0v63GJL7a/1o+c83OQ HZmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703175004; x=1703779804; h=content-transfer-encoding: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=Yo3OBLC56KVPvXBDsxCKcIaEzeYNJJhDTaCGEc7xALg=; b=P7MRA5eks9pQH3Cfqwlm3/yVD435qvsPB0UqMpV4CVmI2MiH3ds/4C7xOS5HXr560r zNZBj1Us9h5qxRliuJcDwMbJ9FKKBuse9NNX9H6Esfl7yBfZcQ2H3Fcak/441R3jj1z6 jvh/elXjmN8smfn0t3WIbblgz47/MtR8n8E6iHJ929j4UlaqdYqzPtBkURaZC6pk+Qmz 0klZRPSBDn1NhViaWxAnXAramoYJeCQjg+SHvrA2DzA+Z0iKo0HwKTPJkIrD5Osf8N5P cEAvIYekPNU5vPVHhacbONWDX74B0I1kadH0JLxOShZ7vN1FbS3Tb+eHTUv+NacHFAmA 49vg== X-Gm-Message-State: AOJu0YxAd7QqB8Za5rRh3omzWrbcDIem03yl0W2CS7v2I2QQcAkgOk1i C3aA+yvnS8SUD6C76+SAFmDm4r5MRh5JYjAj4SMLd0IC6+E= X-Google-Smtp-Source: AGHT+IFbYUTa8v0A7YhP2jFqRa7/TxVs6uZcd07tEnBnpIt53iZzDUxrVgO9Hh41puWwAst1d032drXioDDN3QzKD3A= X-Received: by 2002:a50:9f27:0:b0:553:a375:db4e with SMTP id b36-20020a509f27000000b00553a375db4emr2867073edf.18.1703175003926; Thu, 21 Dec 2023 08:10:03 -0800 (PST) MIME-Version: 1.0 References: <07c7379e983c9f436ebf86e3818ca843@kylheku.com> In-Reply-To: From: Cedric Blancher Date: Thu, 21 Dec 2023 17:10:00 +0100 Message-ID: Subject: Re: rfe: CYGWIN fslinktypes option? Re: Catastrophic Cygwin find . -ls, grep performance on samba share compared to WSL&Linux To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 21 Dec 2023 at 13:17, Martin Wege via Cygwin wr= ote: > > On Wed, Dec 20, 2023 at 6:21=E2=80=AFPM Kaz Kylheku via Cygwin > wrote: > > > > On 2023-12-17 22:22, Dan Shelton via Cygwin wrote: > > > It would be nice if someone from the Cygwin authors could assist me i= n > > > figuring out why this happens. > > > > Cygwin is famously slow; this is nothing new. We are grateful > > for Cygwin because it makes stuff work at all; if it were blazing > > fast that would be a bonus. > > > > E.g. git operations (clone, rebase, ...); ./configure scripts; ...: all > > run like molasses. > > > > The following is just my fast and loose opinion, shot from the hip, > > and possibly off or wrong, but it likely has to do with the layering. > > Cygwin's core API is based on a C library called Newlib. Cygwin bolts > > Newlib to Windows by means of an additional shim below Newlib that > > is based on C++ objects, where there is path munging going on and such, > > and that's where the Win32 calls get made. It's an additional abstracti= on. > > I disagree with that. Ok, part of that is that the layering causes > more memory allocations and copies, but this is not the root cause. > > The root cause is IMO the extra Win32 syscalls (>=3D 3 per file lookup, > compared to 1 on Linux) to lookup the *.lnk and *.exe.lnk files on > filesystems which have native link support (NTFS, ReFS, SMBFS, NFS). > On SMBFS and NFS it hurts the most, because access latency is the > highest for networked filesystems. > > So my proposal would be to add an option ('fslinktypes') to the CYGWIN > environment variable to define which types of links are supported: > default 'all'. which is an shortcut for 'native,lnk,lnkexe'. > So in case people do not want 'lnk' link support they just add > CYGWIN+=3D' fslinktypes:native' to env, to turn off support for > lnk/lnk.exe style links, and be happy. > > @Corinna Vinschen Would that be acceptable? +1 for this proposal, which is almost the same idea as I proposed in https://www.mail-archive.com/cygwin@cygwin.com/msg174612.html Ced --=20 Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur