From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/51072 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Memory exhausted while saving .newsrc.eld Date: Sun, 30 Mar 2003 04:23:51 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048991105 25322 80.91.224.249 (30 Mar 2003 02:25:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2003 02:25:05 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Sun Mar 30 04:25:03 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zSVL-0006aB-00 for ; Sun, 30 Mar 2003 04:25:03 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18zSV4-0005Fi-00; Sat, 29 Mar 2003 20:24:46 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 29 Mar 2003 20:25:50 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id UAA08427 for ; Sat, 29 Mar 2003 20:25:37 -0600 (CST) Original-Received: (qmail 46582 invoked by alias); 30 Mar 2003 02:24:28 -0000 Original-Received: (qmail 46577 invoked from network); 30 Mar 2003 02:24:28 -0000 Original-Received: from quimbies.gnus.org (80.91.231.2) by 66.230.238.6 with SMTP; 30 Mar 2003 02:24:28 -0000 Original-Received: from larsi by quimbies.gnus.org with local (Exim 3.35 #1 (Debian)) id 18zSUl-0006eF-00 for ; Sun, 30 Mar 2003 04:24:27 +0200 X-Now-Playing: Pet Shop Boys's _Disco 3_: "Somebody else's business" Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX3APfgAOCxALGGAIZe AF7k4+Q+AD4aABqc67y/AAACg0lEQVR4nEWTT4+bMBDFh2y5Y8j2HJso92VQem5tkSupxBdoLHPf Rvjr9z2TVa0IKf7xZt78QaLNPH9XPtpj2k+YxEvOuNx2cP4Pfs28egY+P3cQUyBQ3jfVjaC7FDBR kRAmNvdbUXRjUB3HgCOMf5JjSfR5Tt4aaQuA4tmHc7H2XOPQDyI9wQRFire8hRuDanpYqcaiwGum yx9yWLeUFL9m7phjSz/rpc1P2zLYNSV/EgK88T73KypMpZ7oXSMHVUmxNc7n10kDrmepdJT0cQjW 3F733jayLLN0KtGcg7c/XveDIViWg8qaEL/5njeY9QMEBVS9nHNCqw7XUoSDQGqAuZf00BHFojUR AiMv0MoUbfch55BzUFraQy2V9HYwf9oxIYM6gD05jOm0ueQBkgLYyuySWTBTnx79LUcCZ3BKEqHb 5DHZqGi2d9bZpiZw6LimuOa0xeAnr3Bcz/UiwyU/x6gcZAiPKTKREExhyikO18ydSdOvColKuyYk SbFH5Vga1mqKL4CJ+9WPjKSOEy9+7wK971UVBfrBjdqU+gCchpNAfSl1qLf1C1RugIV5+RbRKgd/ e08qkZbvzMtvNBfAu9MLLJWp6+W+dJFNHDEqFo5Qyz1W71Aci0IhKK6gkNuIsFJAr4P9Aq25rOiO vBEoth1TrAlQgmOxhxi0H71aN9DXDpw1pmPh+DMYtwN6IWgnzJygqQBmsytcawxqw7VDVHopYNgn esVn5miqYXESCCwX7YgJFoXIDJA8Y9FXhfYXi6aALRYF38NHg74gMD8Ewfh0DyWXjTPznDnBvuQE RwBWQyAEsWw/ABcC+b8Av6+S442R6AST24HuOQDKGBsuyT+vYA8UCdmKLAAAAABJRU5ErkJggg== In-Reply-To: (Kevin Greiner's message of "Mon, 24 Feb 2003 16:30:45 -0600") User-Agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.3.50 (gnu/linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:51072 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:51072 Kevin Greiner writes: > I just noticed that doing a 'J s' (gnus-agent-fetch-session) on > sufficient large number of groups can make the gnus-newsrc-alist so > large that you run out of memory while saving it. I've traced the > problem to gnus-save-newsrc-file which writes everything to a buffer > then uses save-buffer to write it to a file. Wow. Is the .newsrc.eld file really that big? Anyway, I just found a bug in the .newsrc.eld code that made my file 7k long instead of 700k, as it apparently was supposed to be. I've now bound print-length to nil the appropriate function. > I'd like to rewrite gnus-save-newsrc-file to write directly to a > temp file then, if no errors occur during writing, rename the temp > file as .newsrc.eld. I'm not sure it's possible to do any such thing in a reasonable fashion. You'd have basically to implement the Lisp writer in a file-specific manner. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen