From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78658 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.gnus.general Subject: Re: Asynchroneous image retrieval in HTML rendering Date: Mon, 02 May 2011 16:53:24 +0200 Message-ID: <87zkn5duhn.fsf@gmail.com> References: <87bozwfw84.fsf@gmail.com> <87r58ll8jm.fsf@gmail.com> <87liys4x04.fsf@gmail.com> <87tydewilm.fsf@gmail.com> <87liyp35fy.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304348381 26286 80.91.229.12 (2 May 2011 14:59:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 14:59:41 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26960@lists.math.uh.edu Mon May 02 16:59:37 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGub3-000165-7I for ding-account@gmane.org; Mon, 02 May 2011 16:59:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QGuaK-0000QT-3d; Mon, 02 May 2011 09:58:52 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QGuaJ-0000QJ-1W for ding@lists.math.uh.edu; Mon, 02 May 2011 09:58:51 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QGuaH-0002d6-UR for ding@lists.math.uh.edu; Mon, 02 May 2011 09:58:51 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QGuaG-0001Gq-Er for ding@gnus.org; Mon, 02 May 2011 16:58:48 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGuaB-0000X4-Gw for ding@gnus.org; Mon, 02 May 2011 16:58:43 +0200 Original-Received: from portable56.ceremade.dauphine.fr ([193.48.71.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 16:58:43 +0200 Original-Received: from antoine.levitt by portable56.ceremade.dauphine.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 16:58:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: portable56.ceremade.dauphine.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78658 Archived-At: 02/05/11 16:30, Lars Magne Ingebrigtsen > Antoine Levitt writes: > >> That doesn't change much for my test cases, so I guess the DNS lookup is >> indeed the bottleneck. > > Have you verified that the DNS lookup is really the problem? Because I > have more theories. :-) (Or, as scientists call it, "guesses".) No, just that your recent commit didn't change anything. But the groups that have trouble, such as gwene.fr.lemonde.blog.vidberg, are also those whose DNS is slow/buggy. > > One thing about the async image retrieval is that it's massively > parallel. If there's 500 images in the article, Gnus will call > `url-retrieve' 500 times in rapid succession, which will then fire off > 500 HTTP connections (in parallel, more or less). > > I suspect that Emacs doesn't really like having this number of async > socket sentinels going on at the same time, which means that the main > Emacs thread gets no CPU time, which gives us interactive pauses. That doesn't seem likely: I also get freezes in groups with just one or two images. And in this case, doesn't that rather mean that there's something wrong with the scheduler from emacs/the OS? > > (And it's really rude towards the server. It's basically a one-Emacs > DoS attack.) Isn't that already what all browsers do?