Deutsch English Français Italiano |
<mailman.120.1710920555.3452.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico <rosuav@gmail.com> Newsgroups: comp.lang.python Subject: Re: GIL-Removal Project Takes Another Step (Posting On Python-List Prohibited) Date: Wed, 20 Mar 2024 18:42:21 +1100 Lines: 29 Message-ID: <mailman.120.1710920555.3452.python-list@python.org> References: <ut09ig$1umjo$1@dont-email.me> <87v85jxepj.fsf@nightsong.com> <utati7$k004$1@dont-email.me> <87r0g5ybbp.fsf@nightsong.com> <utdkb8$19g6t$4@dont-email.me> <l5vhisFc622U1@mid.individual.net> <CAPTjJmp5GXTU+4sDr+ZmuumCMyzVb=nqXu1GLJgrFp-hQ5Y16Q@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de Xd3hiZ1etTG86/L1HylPNQk/9lEn9c8wxaV4GBQ+K6Pg== Cancel-Lock: sha1:shjuz9ZNQ8thaoJggJGliPzY8GQ= sha256:KjMn7dOoY8Xhfibw6Tyng8g4DoesRl7iRdDZbjpy8D0= Return-Path: <rosuav@gmail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=BlLX69+X; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'poster': 0.03; 'mar': 0.07; 'allocation': 0.09; 'schedule.': 0.09; 'then.': 0.09; 'typically': 0.09; 'subject:Python': 0.12; 'memory': 0.15; '2024': 0.16; 'chrisa': 0.16; 'cpython,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'generating': 0.16; 'greg': 0.16; 'subject:GIL': 0.16; 'wrote:': 0.16; 'probably': 0.17; 'pm,': 0.19; 'to:addr:python-list': 0.20; 'run': 0.23; 'normally': 0.26; "doesn't": 0.32; 'amounts': 0.32; 'python-list': 0.32; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'request': 0.35; 'also,': 0.36; "it's": 0.37; 'received:209.85': 0.37; 'way': 0.38; 'received:209': 0.39; 'quite': 0.39; 'enough': 0.39; 'received:209.85.208': 0.39; 'scheduled': 0.39; 'wed,': 0.39; 'still': 0.40; 'let': 0.66; 'time.': 0.66; 'subject:Project': 0.67; 'matter': 0.68; 'fyi': 0.69; 'responding': 0.69; 'times': 0.69; 'ignore': 0.71; 'subject:List': 0.71; 'out,': 0.78; 'thousand': 0.84; 'garbage': 0.84; 'subject:Posting': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710920553; x=1711525353; darn=python.org; 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=8n6hnn+5R1FlWXloLfo7pedtxU2fAwvsfex8Fe2lbLs=; b=BlLX69+XiOFv0W7klKa3UzglhhRXcu9jSO2Op9doluQtleD4ktwVGSYZU0hNnAYd/B jyfLhUH5sVXjCI68AJqYhRNsxH7zgs9QAIe44s911+Tz8WbjTGY1aKypeezU6KlaQO7D +Ns9+hVajeUF8Bz0hCMXwLMmLfqPA7mljqcIS/6jHTgDb0cmEPMfs5IaSaNmo8by9/T6 ieHWX323W9uNHkPlyeiJFfETDVdyltAO+Dql5PFr6j30H3KkT4CHM1UWjWrCe9T8nZ/d 7F04HmD8pkRto8O7khEL52MQne9dT1JWgHjx0m9j+no1IpoBB5iC2GCuAh5qbx2qAQdV Bwtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710920553; x=1711525353; 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=8n6hnn+5R1FlWXloLfo7pedtxU2fAwvsfex8Fe2lbLs=; b=QILrgYj0ntqEx/x3PdWb46SrMS9SC6qlgbviMeei587Q7abc5Nz3+X+zMBzDwTUozq N5Ckf5rLBY4KJvGqw448sii0NTSADwyMEql2Eeg8TjcQrrobLnJYsFKdW9yJukgtlg/1 Ov2Qkkh2a4w7Z4TfU/pTMDI2iafdAGHeoAzgTwL62mhoUDqePDbsAPmfeHhAoKN2DcCU QfyqFr2he0N7dLO/GJt+azsriKrjrqSkEPaAYF/pmGwfoES7r1wldXSwyywAb8SmwDs0 zkWt/EvMvCljVhY1mi+fKylbOYKX20Mpl8//A59m8ZwJdxTigISxn8f3xaJlUgmxSLWK 2doQ== X-Gm-Message-State: AOJu0Yylfc6Ly8Rgs/LCNjUhmr+ykRobsHXABpdBFQcbgF4o2LD5EmM8 TIi2O1MS497Zi/qhx5b8LfXT+S3gv19j2f0n8uq+Mhn+c6+KXDVCs3sZrbhPxpGxwDjwkoxMZ+a V5J+xFP7t1XxmRYV23Gaw9bb4MUoP64YN X-Google-Smtp-Source: AGHT+IFUs8rzjcJr/fS5ieub6g0giREqhENq/cW02Dtj9oISY4USBx0nn2l9+xCkGmATqU9TTsWSwoJgT0pD+2346Xo= X-Received: by 2002:a2e:874d:0:b0:2d2:af88:8947 with SMTP id q13-20020a2e874d000000b002d2af888947mr11910714ljj.15.1710920552932; Wed, 20 Mar 2024 00:42:32 -0700 (PDT) In-Reply-To: <l5vhisFc622U1@mid.individual.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <CAPTjJmp5GXTU+4sDr+ZmuumCMyzVb=nqXu1GLJgrFp-hQ5Y16Q@mail.gmail.com> X-Mailman-Original-References: <ut09ig$1umjo$1@dont-email.me> <87v85jxepj.fsf@nightsong.com> <utati7$k004$1@dont-email.me> <87r0g5ybbp.fsf@nightsong.com> <utdkb8$19g6t$4@dont-email.me> <l5vhisFc622U1@mid.individual.net> Bytes: 6450 On Wed, 20 Mar 2024 at 18:31, Greg Ewing via Python-list <python-list@python.org> wrote: > > On 20/03/24 4:14 pm, Lawrence D'Oliveiro wrote: > > not to > > mention the latency when there isn=E2=80=99t quite enough memory for an= allocation > > and you have to wait until the next GC run to proceed. Run the GC a > > thousand times a second, and the latency is still 1 millisecond. > > That's not the way it usually works. If you run out of memory, you > run a GC there and then. You don't have to wait for GCs to occur on > a time schedule. > > Also, as a previous poster pointed out, GCs are typically scheduled > by number of allocations, not by time. > FYI you're violating someone's request by responding to them in a way that results in it getting onto python-list, so it's probably safest to just ignore cranks and trolls and let them stew in their own juices. But normally the GC doesn't need to be scheduled at all. In CPython, the only reason to "run garbage collection" is to detect cycles, so you would have to be generating inordinate amounts of cyclic garbage for this to matter at all. ChrisA