Debian Bug report logs - #537383
ProxyScout in Konqueror from testing works VERY slow with proxy autoconfiguration

version graph

Package: konqueror; Maintainer for konqueror is Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>; Source for konqueror is src:kde-baseapps.

Reported by: ximaera@hp.com

Date: Fri, 17 Jul 2009 17:12:04 UTC

Severity: normal

Tags: moreinfo

Found in version kdebase/4:4.2.2-1

Fixed in version 4:4.4.2-1

Done: Eckhart Wörner <ewoerner@kde.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>:
Bug#537383; Package konqueror. (Fri, 17 Jul 2009 17:12:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to ximaera@hp.com:
New Bug report received and forwarded. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>. (Fri, 17 Jul 2009 17:12:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Artyom Gavrichenkov <artyom.gavrichenkov@hp.com>
To: submit@bugs.debian.org
Cc: ximaera@gmail.com
Subject: ProxyScout in Konqueror from testing works VERY slow with proxy autoconfiguration
Date: Fri, 17 Jul 2009 21:06:51 +0400
Package: konqueror
Version: 4:4.2.2-1

When I tried to open a web page in the Konqueror, it often stopped working for 
a while (didn't respond to actions, redraw window, etc). The same happened 
sometimes when I was closing the browser. And the overall performance was very 
low.

I strace'd an instance of the browser to find out what did it wait for:

ximaera@agavrichen2#9:~$ type watch-trace-for-waits 
watch-trace-for-waits is a function                 
watch-trace-for-waits ()                            
{                                                   
    local DELAY=1 PRINTED=false LN=$(cat "$1" | wc -l);
    local SECCNT=$DELAY;                               
    while true; do                                     
        if ! {                                         
            ps -ef | grep -q "$2"                      
        }; then                                        
            $PRINTED && echo $SECCNT;                  
            return;                                    
        fi;                                            
        local NEWLN=$(cat "$1" | wc -l);               
        if [ "$NEWLN" == "$LN" ]; then                 
            if $PRINTED; then                          
                SECCNT=$(($SECCNT+$DELAY));            
            else                                       
                echo -n "Trace line #"$(($LN+1))": ";  
                PRINTED=true;                          
            fi;                                        
        else                                           
            if $PRINTED; then                          
                echo $SECCNT" seconds";                
                PRINTED=false;                         
                SECCNT=$DELAY;                         
            else                                       
                LN="$NEWLN";                           
            fi;                                        
        fi;                                            
        sleep $DELAY;                                  
    done                                               
}                                                      
ximaera@agavrichen2#9:~$ strace konqueror 'http://google.com' 2>konq.strace & 
time watch-trace-for-waits konq.strace $!
[1] 30964                                                                                                              
Trace line #13901: 14 seconds
Trace line #15903: 13 seconds
Trace line #16708: 13 seconds
Trace line #17311: 13 seconds
Trace line #18362: 13 seconds
Trace line #18848: 2 seconds
Trace line #18856: 9 seconds
Trace line #19860: 13 seconds
    <-- Soon after that, the page had been loaded
    <-- and I tried to close the window
Trace line #21607: 4 seconds
Trace line #21615: 5 seconds
Trace line #21638: [1]+  Done                    strace konqueror 
'http://google.com' 2> konq.strace
14 seconds
Trace line #23669: 2

real    2m25.351s
user    0m2.432s
sys     0m3.660s
ximaera@agavrichen2#9:~$ cat konq.strace | lines 13901 15903 16708 17311 18362 
18848 18856 19860 21607 21615 21638
13901:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
15903:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
16708:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
17311:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
18362:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
18848:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
18856:  poll([{fd=8, events=POLLIN}], 1, 20512) = 1 ([{fd=8, revents=POLLIN}])
19860:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
21607:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
21615:  poll([{fd=8, events=POLLIN}], 1, 19156) = 1 ([{fd=8, revents=POLLIN}])
21638:  poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])
ximaera@agavrichen2#9:~$ head -13901 konq.strace | egrep -n '^open.* = 8$' | 
tail -1
2571:open("/usr/lib/libdbus-1.so.3", O_RDONLY) = 8
ximaera@agavrichen2#9:~$ head -21638 konq.strace | egrep -n '^open.* = 8$' | 
tail -1
2571:open("/usr/lib/libdbus-1.so.3", O_RDONLY) = 8
ximaera@agavrichen2#9:~$

As you see, it took more than two minutes to show up the Google's main page, 
making web-surfing in Konqueror impossible. One and a half minute of these two 
was spent waiting for libdbus.

After tracing Konqueror again with the strace string size set to a bigger 
value than the default one I've found that before poll()ing the DBus, the 
browser sends it a message containing words "modules/proxyscout:

writev(8, 
[{"l\1\0\1\0\0\0I\0\0\0w\0\0\0\1\1o\0\23\0\0\0/modules/proxyscout\0\0\0\0\0\6\1s\0\f\0\0\0org.kde.kded\0\0\0\0\2\1s\0\27\0\0\0org.kde.KPAC.ProxyScout\0\3\1s\0\v\0\0\0proxyForUrl\0\0\0\0\0\10\1g\0\1s\0\0"..., 
136}, {"6\0\0\0http://www.google.ru/intl/en_com/images/logo_plain.png\0"..., 
59        }], 2) = 195
gettimeofday({1247848875, 377033}, NULL) = 0
poll([{fd=8, events=POLLIN}], 1, 25000) = 1 ([{fd=8, revents=POLLIN}])

I'm using proxy server autoconfiguration. Seems like Konqueror is not caching 
the autoconfiguration and every time you need to view a page, it sends a new 
query to the proxy configuration URL. If this is intended, it is a -- really 
-- bad idea. Two or five minutes per any single web page exceed much anyone's 
expectations.

I'm using Debian GNU/Linux Testing/Squeeze:
- kernel 2.6.26-2-686 (2.6.26-17)
- libc6 2.9-12

-- 
Artyom Gavrichenkov | Engineer, HP Global Delivery Russia Center | Mailto: 
ximaera@hp.com | Tel. No: +7 916 515 49 58





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>:
Bug#537383; Package konqueror. (Sat, 18 Jul 2009 20:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to ximaera@gmail.com:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>. (Sat, 18 Jul 2009 20:57:02 GMT) Full text and rfc822 format available.

Message #10 received at 537383@bugs.debian.org (full text, mbox):

From: Artyom Gavrichenkov <ximaera@gmail.com>
To: 537383@bugs.debian.org
Subject: Re: ProxyScout in Konqueror from testing works VERY slow with proxy autoconfiguration
Date: Sun, 19 Jul 2009 00:53:34 +0400
[Message part 1 (text/plain, inline)]
I've forgot to mention that I have Intel Core 2 Duo and 1 GB of RAM inside my PC, so this doesn't look like a hardware issue.

-- 
Artyom Gavrichenkov | PGP key ID at pgp.mit.edu: FA1C670E | e-mail: ximaera[at]gmail.com | Jabber: ximaera[at]gmail.com | Tel. No: +7 916 515 49 58
[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Eckhart Wörner <ewoerner@kde.org> to control@bugs.debian.org. (Fri, 02 Apr 2010 02:27:07 GMT) Full text and rfc822 format available.

Information stored :
Bug#537383; Package konqueror. (Fri, 02 Apr 2010 02:27:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Eckhart Wörner <ewoerner@kde.org>:
Extra info received and filed, but not forwarded. (Fri, 02 Apr 2010 02:27:12 GMT) Full text and rfc822 format available.

Message #17 received at 537383-quiet@bugs.debian.org (full text, mbox):

From: Eckhart Wörner <ewoerner@kde.org>
To: 537383-quiet@bugs.debian.org, 537383-submitter@bugs.debian.org
Subject: Re: ProxyScout in Konqueror from testing works VERY slow with proxy autoconfiguration
Date: Fri, 2 Apr 2010 04:21:20 +0200
tags 537383 + moreinfo
thanks

Hi,

you reported http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537383 some time 
ago. Since then, KDE Software Compilation had several releases. Can you please 
verify whether the bug you reported is still present in a more current version 
(and - if yes - specify which version)?

Eckhart




Message sent on to ximaera@hp.com:
Bug#537383. (Fri, 02 Apr 2010 02:27:13 GMT) Full text and rfc822 format available.

Reply sent to Eckhart Wörner <ewoerner@kde.org>:
You have taken responsibility. (Sun, 02 May 2010 16:03:21 GMT) Full text and rfc822 format available.

Notification sent to ximaera@hp.com:
Bug acknowledged by developer. (Sun, 02 May 2010 16:03:21 GMT) Full text and rfc822 format available.

Message #25 received at 537383-done@bugs.debian.org (full text, mbox):

From: Eckhart Wörner <ewoerner@kde.org>
To: 457214-done@bugs.debian.org, 471933-done@bugs.debian.org, 494879-done@bugs.debian.org, 518100-done@bugs.debian.org, 532809-done@bugs.debian.org, 535334-done@bugs.debian.org, 537383-done@bugs.debian.org, 559729-done@bugs.debian.org, 379686-done@bugs.debian.org
Date: Sun, 2 May 2010 18:01:42 +0200
Version: 4:4.4.2-1

No response from the submitter for 4 weeks, closing.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 19 Jun 2010 07:37:40 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 12:45:19 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.