From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +JUmDzQrAWbpAQAAe85BDQ:P1 (envelope-from ) for ; Mon, 25 Mar 2024 08:43:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +JUmDzQrAWbpAQAAe85BDQ (envelope-from ) for ; Mon, 25 Mar 2024 08:43:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=oeNgt7VZ; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=tugraz.at ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711352628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dgNLn5BHQqwIu0Myc8uaM7SIKKy03sQlnNQcIHEJjPo=; b=bcFr8h6U9/uSlNOdAJzXEkQQMSAmthXEQaxv76daE8ieDO3HoRDOqo3rsY6lt+gnaN00T2 yeNf0ophVjJyoZmc4EBgviuUrDSJ0TmE15y6u0ABO7P32XXF2vwbiw6/0qKZSg7siKDVhZ 4ZI9pax39BDvI5J5PkLQPlxhBXCEVUmxIY6rgr4DHbCDi4B1NGsx5LFNcR2uXPNry47Spx +QPelDNtbFZVl2UBNAEVaHNVdLh1H+gfazPPIpG/ou80Y/evWRLobZiwYnI7xLV7aMfGpe sPM2X53WB+cLADjmQR1Ot4uRgYJxp0MuFdtkPa7235rxqppN90nkMw+UGq9FqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tugraz.at header.s=mailrelay header.b=oeNgt7VZ; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=tugraz.at ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711352628; a=rsa-sha256; cv=none; b=SUrVug2HBXkkL+JZ+H8Gbe3HIhfOOO9RzoqJTbxjGW7mT3Lz5aAZsB18qGbPWD2jOArG8/ t5GZLUg5jzH3WZ3tU1aRTpoPSIgHriZVcPqhlmGuR/NcPlVn0294xxvpu9LpI7B8Kzct5m h8xv+vb4CBuAV3us4v92jQLqiQ+9o5srTBcpEKuWq427UKwm5oJedi+bJgHd+zIbtLg31V K2NX8UM89D74J10W/I1Q+Yxbn/VtMYmox3IsiFNRRD4bet5hjAXGtSJA06suniJlDYmWzG ygvpKg0eT1HwT+RSJIbeCTpipHqHQvhmVoyYKcJ0a3GMViRG5GEd5UaAgaBcqw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C1FD3B331 for ; Mon, 25 Mar 2024 08:43:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roeza-0004zP-B3; Mon, 25 Mar 2024 03:43:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roezY-0004zD-NK for gwl-devel@gnu.org; Mon, 25 Mar 2024 03:43:36 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1roezW-0003bk-5y for gwl-devel@gnu.org; Mon, 25 Mar 2024 03:43:36 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4V34dr53Blz1LM0F; Mon, 25 Mar 2024 08:42:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4V34dr53Blz1LM0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1711352544; bh=dgNLn5BHQqwIu0Myc8uaM7SIKKy03sQlnNQcIHEJjPo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=oeNgt7VZH+ywc/F+TCaMhdAN1IVenNGA+G6Ds11rXvG3voNrmZkABOsouI2RzwLJb 89BoFDA4ae72ApHCEZEWilLWxbhf3U2eizXgy2FuZqqO+6m2Qvic/oWsDnIRQAruM0 HBmIwRR1FpRg01IuckYrA5e2aQd33CePTKqj5F9U= Message-ID: <54f697191220794a99dde447f2f2ce56439d8408.camel@ist.tugraz.at> Subject: Re: Processing large amounts of files From: Liliana Marie Prikler To: Ricardo Wurmus Cc: gwl-devel@gnu.org Date: Mon, 25 Mar 2024 08:42:23 +0100 In-Reply-To: <87plvjd4el.fsf@elephly.net> References: <2010bdb88116d64da3650b06e58979518b2c7277.camel@ist.tugraz.at> <87plvjd4el.fsf@elephly.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: none client-ip=129.27.2.202; envelope-from=liliana.prikler@ist.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: gwl-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: C1FD3B331 X-Spam-Score: -8.73 X-Migadu-Spam-Score: -8.73 X-Migadu-Scanner: mx10.migadu.com X-TUID: yBIW+IVwtMff Am Donnerstag, dem 21.03.2024 um 15:34 +0100 schrieb Ricardo Wurmus: > [-guix-devel@gnu.org, +gwl-devel@gnu.org] oops D: >=20 > [...] > When running with "-l all" I see this: >=20 > =C2=A0 info: .75 Computing workflow `cat'... > =C2=A0 debug: 3.13 Computing script for process `meow' > =C2=A0 guix: 3.13 Looking up package `bash-minimal' > =C2=A0 guix: 3.13 Opening inferior Guix at > `/gnu/store/pb1nkrn3sg6a1j6c4r5j2ahygkf4vkv9-profile' > =C2=A0 guix: 4.27 Looking up package `guix' > =C2=A0 debug: 4.45 Generating all scripts and their dependencies. > =C2=A0 debug: 4.89 Generating all scripts and their dependencies. > =C2=A0 run: 6.73 Executing: /bin/sh -c > /gnu/store/5idhbvhrwj3p53kkz2vikdn1ypncwj84-gwl-meow.scm '((inputs > "/tmp/meow/0" ... > =C2=A0 process: 8.80 In execvp of /bin/sh: Argument list too long > =C2=A0 error: 8.80 Wrong type argument in position 1: #f >=20 > This at least tells us that the last error here is due to sh refusing > to run. Good to know, and I thought it'd be just that, but=E2=80=A6 shouldn't this failure to invoke sh be caught through something? > > For comparison: > > =C2=A0 time cat /tmp/meow/{0..7769} > > =C2=A0 [=E2=80=A6] > > =C2=A0=20 > > =C2=A0 real=C2=A0=C2=A00m0,144s > > =C2=A0 user=C2=A0=C2=A00m0,049s > > =C2=A0 sys=C2=A0=C2=A0=C2=A00m0,094s > >=20 > > It takes GWL 6 times longer to compute the workflow=C2=A0than to create > > the inputs in Guile, and 600 times longer than to actually execute > > the shell command.=C2=A0 I think there is room for improvement :) >=20 > Yeah, not good.=C2=A0 Do you have any recommendations? We already talked about this in response to your second mail, but (LRU) Caching of things that can be cached would be an approach to take.=20 Perhaps there's also inefficiencies in auto-connecting inputs =E2=80=93 not exhibited by this example, but thinkable. Design-wise, we might need a way of splitting large worfklows anyhow.=20 Files and environment variables work, but feel clunky at the moment, and particular files remind me about recursive make=E2=80=A6 maybe when I g= et the time, I can code something up and then look at ways for simplification. Cheers