From: SourceForge.net <no...@so...> - 2011-05-26 07:34:42
|
Support Requests item #3305782, was opened at 2011-05-22 10:19 Message generated for change (Comment added) made by goblincz1 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3305782&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Open Priority: 5 Private: No Submitted By: Skritek (goblincz1) Assigned to: Fabian Keil (fabiankeil) Summary: Slow ping Initial Comment: When i try http://www.speedtest.net/ with privoxy then ping take twice much time than without privoxy. Is this problem by design or is way to get lower ping ? For examle: Ping without privoxy 60ms. Ping with privoxy 120ms. ---------------------------------------------------------------------- >Comment By: Skritek (goblincz1) Date: 2011-05-26 09:34 Message: So i have build console version and it has same ping as GUI32 version :/ ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-25 20:59 Message: You shouldn't have to manually mess with #defines. Running ./configure without the --enable-mingw32 option should be all that is needed. ---------------------------------------------------------------------- Comment By: Skritek (goblincz1) Date: 2011-05-25 10:49 Message: I cant compile console version. A have uncommented #define _WIN_CONSOLE in win32.c and this is the result of make: w32log.o:w32log.c:(.text+0x507): undefined reference to `_g_hInstance' w32log.o:w32log.c:(.text+0x51f): undefined reference to `_g_hInstance' w32log.o:w32log.c:(.text+0x54e): undefined reference to `_g_hInstance' w32log.o:w32log.c:(.text+0x56b): undefined reference to `_g_hInstance' w32log.o:w32log.c:(.text+0x593): undefined reference to `_g_hInstance' ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-24 19:07 Message: Most of the Windows-GUI-specific code is located in files starting with w32: fk@r500 ~/git/privoxy $ls w32* w32.rc w32log.c w32log.h w32res.h w32svrapi.c w32svrapi.h w32taskbar.c w32taskbar.h If a Privoxy build without the GUI is indeed faster, the cause probably lies in one of the files above. If the GUI-less Privoxy isn't actually faster, the problem is likely to be elsewhere. Instead of reading a lot of code looking for problems, it would probably be more effective to profile were the time is spend first, however I don't know how one properly profiles code on Windows. If profiling isn't an option, you could enable all the debug directives again to see if there large time differences in unexpected places and maybe add additional log messages to pinpoint where the gaps are coming from. ---------------------------------------------------------------------- Comment By: Skritek (goblincz1) Date: 2011-05-24 00:03 Message: I dont need logging so I dont care that it slows down the ping. Tomorow i will try the console version. Im developer and I can write in c languague. I have motivation too. So I gues that i should to investigate the source code. It would by nice if you can give me some instructions where to start looking. ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-23 19:56 Message: Looks like the logging overhead is significant with the mingw32 version. I assume nobody ever bothered profiling it, so this could probably easily improved if somebody was motivated to do it. In the meantime, you could try compiling Privoxy without the GUI, to see if it makes a difference. The 45ms don't look too bad, but you may be able to speed it up a bit by playing with the TCP/IP settings. A certain latency is to be expected when using a proxy, though, as you need to establish twice the number of connections. ---------------------------------------------------------------------- Comment By: Skritek (goblincz1) Date: 2011-05-22 19:46 Message: I have measured following values. without privoxy - 19 ms privoxy default config - 45ms privoxy default config with "activity-animation" and "log-messages" to 0 - 44ms privoxy default config with with all debug levels 154 privoxy default config with with debug levels 16 and 32768 - 71ms ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-22 16:21 Message: Your log shows that Privoxy spends most of the time parsing the client request and the server response, often spending several milliseconds on a single header. On my not particularly modern Intel Core(TM)2 Duo CPU T5870 @ 2.00GHz it often takes less than a single millisecond to deal with all client or server headers and usually still less than three if the system is busy compiling software. Of course I run Privoxy on FreeBSD and the Windows version is expected to perform a bit worse than a Privoxy version running in a native POSIX environment, but spending several milliseconds on a single header still seems a bit excessive to me. Does it make a difference if you set the config directives "activity-animation" and "log-messages" to 0? Does it make a difference if you remove all debug directives except "debug 16" and "debug 32768"? ---------------------------------------------------------------------- Comment By: Skritek (goblincz1) Date: 2011-05-22 12:20 Message: I have attached Privoxy's logfile from http://speedtest.cesnet.cz test. ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-22 11:25 Message: The site requires Flash so it doesn't work on my system. The "description" at http://pingtest.net/learn.php is worthless, too. Do those "pings" show up in Privoxy's logfile if you enable the debug settings described at: http://www.privoxy.org/user-manual/contact.html#CONTACT-BUGS ? ---------------------------------------------------------------------- Comment By: Skritek (goblincz1) Date: 2011-05-22 11:07 Message: Im talking about web based ping. You can try it on http://www.speedtest.net/ or http://speedtest.cesnet.cz/ . And other sites. I dont know how this exactly works. ---------------------------------------------------------------------- Comment By: Fabian Keil (fabiankeil) Date: 2011-05-22 10:51 Message: What's your definition of a "Ping"? Privoxy doesn't proxy ICMP, so I assume you are talking about something else? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3305782&group_id=11118 |