Live data from Hacker News

A Raspberry Pi as a decent residential proxy

wiringbits.net

41–47 of 47 posts

Re: A Raspberry Pi as a decent residential proxy

#41
post #32

Earlier quoted context omitted.

Don't forget to set gpu_mem in config.txt. It looks like you are running with the default, which is 64MB for the GPU. I'm guessing you are not using the GPU in this application and should reduce this value to the bare minimum (which I don't recall, sorry)

Thanks for the hint, I would be surprised if this old Pi actually has any GPU.

pee was always a VideoCore GPU with ARM cores glued to its ass as an afterthought https://en.wikipedia.org/wiki/VideoCore

Re: A Raspberry Pi as a decent residential proxy

#42
Is there a solid solution to the SD card problem? Every Rpi I've tried to use as a server eventually kills its SD card, probably as running an os on SD is destined for failure with write wear. I'm guessing using SD for boot only and then using a home NAS would be an option, but I've not come across a dummies guide to making a Rpi reliable long term.

Re: A Raspberry Pi as a decent residential proxy

#43
post #42

Is there a solid solution to the SD card problem? Every Rpi I've tried to use as a server eventually kills its SD card, probably as running an os on SD is destined for failure with write wear. I'm guessing using SD for boot only and then using a home NAS would be an option, but I've not come across a dummies guide to making a Rpi reliable long term.

Years ago a friend mentioned her company would spring for very expensive industrial grade SD cards. My company up and refuses to have anything to do with SD cards.

Re: A Raspberry Pi as a decent residential proxy

#44
post #42

Is there a solid solution to the SD card problem? Every Rpi I've tried to use as a server eventually kills its SD card, probably as running an os on SD is destined for failure with write wear. I'm guessing using SD for boot only and then using a home NAS would be an option, but I've not come across a dummies guide to making a Rpi reliable long term.

I used to run the boot partition from the SD card and everything else over a mounted USB flash drive. That seemed to work quite ok for a long time, but maybe I just got lucky.

Re: A Raspberry Pi as a decent residential proxy

#45
post #42

Is there a solid solution to the SD card problem? Every Rpi I've tried to use as a server eventually kills its SD card, probably as running an os on SD is destined for failure with write wear. I'm guessing using SD for boot only and then using a home NAS would be an option, but I've not come across a dummies guide to making a Rpi reliable long term.

Spending a little extra on good quality SD cards helps both durability and performance.

Also making a backup image of the SD card once configured and using a NAS or external disk for important info helps mitigate the data loss risk, and gives you a quick path to restore onto a fresh SD.

With that said, I have a few raspberry pis that have been running for years without SD failures.

Also, make sure swap is not enabled on the SD

Re: A Raspberry Pi as a decent residential proxy

#46
post #32

Earlier quoted context omitted.

Don't forget to set gpu_mem in config.txt. It looks like you are running with the default, which is 64MB for the GPU. I'm guessing you are not using the GPU in this application and should reduce this value to the bare minimum (which I don't recall, sorry)

Thanks for the hint, I would be surprised if this old Pi actually has any GPU.

They all do, in fact the GPU is required to boot the CPU. In your free output it is clear that 64MB is assigned to the GPU, as per default, because it says you only have 432M total (available to the CPU).

You can gain most (not all) of that 64MB back for free, simply by running `echo gpu_mem=1 | sudo tee -a /boot/config.txt && sudo reboot`

(Pretty sure that the minimum is actually more than 1, but also that it will accept that and set it to the minimum... check the docs if you need to be sure)

Re: A Raspberry Pi as a decent residential proxy

#47
post #32

Earlier quoted context omitted.

Thanks for the hint, I would be surprised if this old Pi actually has any GPU.

They all do, in fact the GPU is required to boot the CPU. In your free output it is clear that 64MB is assigned to the GPU, as per default, because it says you only have 432M total (available to the CPU). You can gain most (not all) of that 64MB back for free, simply by running `echo gpu_mem=1 | sudo tee -a /boot/config.txt && sudo reboot` (Pretty sure that the minimum is actually more than 1, but also that it will a…

Thanks for the details.
Post reply on HN