[Privoxy-users] Privoxy on a Raspberry Pi
Phyks
phyks at phyks.me
Wed Mar 15 22:06:14 UTC 2017
Hi,
Framadrop works for me, weird. Anyway, I put it on a pastebin here:
http://paste.alacon.org/43566.
I did not yet try to update Privoxy, I will look into it (this is still
on 3.0.21).
The pi is running its own Unbound DNS resolver. It should work fine, and
typically if I make my laptop use it as well, I have DNS resolution
times comparable with 8.8.8.8.
Thanks,
--
Phyks
Le 15/03/2017 à 22:27, Ian Silvester a écrit :
> Hi Phyks,
>
> I could not retrieve the log excerpt stored at framadrop.org - could you
> check and reconfirm?
>
> That aside, could you also supply details of the Pi's DNS configuration
> - are the servers listed explicitly anywhere or is it using DHCP and
> fall back to those supplied by the LAN's router?
>
> Cheers,
>
> Ian
>
>
> My PGP public
> key[http://diem.serveftp.net:8080/IanSilvesterPGPPublicKey.asc]
>
> On Wed, 15 Mar 2017, at 17:07, Phyks wrote:
>> Hi,
>>
>> I tried to debug it further. Here are some tests with the current
>> settings.
>>
>> Using Privoxy home page:
>> * Without Privoxy, the main HTML takes around 80ms to load.
>> * With Privoxy, it takes around 500ms to load, if I reload the page
>> (even clearing the browser cache), it drops to about 80ms which is in
>> agreement with the without Privoxy case.
>>
>> (Screenshots available at
>> https://lutim.phyks.me/gallery#jqNGoAnQ/86EWpbzr.png,Q23nsaOT/1XMA8IBi.png,
>> put online as I am unsure about the policy with attached images on this
>> ML)
>>
>>
>> If I do the same test with http://clubic.com,
>> * Without Privoxy, the main HTML takes around 54ms to load.
>> * With Privoxy, it takes around 1.5s and this is reproducible even if I
>> reload immediately the page.
>>
>>
>> Looking at htop in parallel, Privoxy is spawning multiple processes
>> (about 10) and CPU load goes from 3% to around 100%, used by these
>> processes.
>>
>> The Raspberry Pi and my laptop are on the same local network, and the
>> Raspberry Pi is wired with 100M ethernet to the router, so the network
>> itself should be out of troubles.
>>
>>
>> Looking at the log as stated in the contact page
>> (https://framadrop.org/r/6j81o2D1m0#XNEfEVjRtqAXaHHI3YMRH3jtKRfxKdm7EADyfL/yEHk=),
>> it
>> seems that Privoxy is taking 1.5s to actually load the HTML content from
>> the remote server.
>>
>> However,
>>
>> ```
>> $ time curl http://www.clubic.com -s > /dev/null
>>
>> real 0m0.291s
>> user 0m0.120s
>> sys 0m0.030s
>> ```
>> so that it seems to be a problem related to Privoxy itself (and not due
>> to some network limitation on the Raspberry Pi or whatever like this).
>>
>>
>> Thanks!
>> --
>> Phyks
>>
>> Le 14/03/2017 à 19:50, Fabian Keil a écrit :
>>> Phyks <phyks at phyks.me> wrote:
>>>
>>>> I installed Privoxy on Raspbian (latest, Debian derived, based on
>>>> Jessie) through the repositories (version 3.0.21-7+deb8u1 installed).
>>>> Everything is running on a regular Raspberry Pi 1.
>>>
>>> Note that the current Privoxy version is 3.0.26 which means
>>> you are missing out on a bunch of changes including various
>>> performance improvements:
>>> http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/ChangeLog?view=markup
>>>
>>> Our current versioning scheme is a bit silly and we only bump
>>> the last number.
>>>
>>>> When I browse to any page (default configuration, no extra actions /
>>>> filter added yet), the CPU usage goes to 100% on the Raspberry Pi, and
>>>> it takes a few seconds to actually proxy the page, increasing the load
>>>> time from a few milliseconds to some seconds.
>>>
>>> That seems unreasonably slow to me, too.
>>>
>>>> I was wondering if anyone had experience with a similar setup and could
>>>> give me some input about the performances of the system. Also, is there
>>>> anything I could do to make it lighter?
>>>
>>> If you enable the debug directives recommended at:
>>> https://www.privoxy.org/user-manual/contact.html
>>> the log file should help to diagnose the issue.
>>>
>>> Please reproduce the problem with logging enabled and provide
>>> a log excerpt.
>>>
>>> Please also double check that the CPU usage is actually
>>> caused by Privoxy itself.
>>>
>>> Fabian
>>>
>>
>> _______________________________________________
>> Privoxy-users mailing list
>> Privoxy-users at lists.privoxy.org
>> https://lists.privoxy.org/mailman/listinfo/privoxy-users
> _______________________________________________
> Privoxy-users mailing list
> Privoxy-users at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-users
>
More information about the Privoxy-users
mailing list