How to clean RAM after closing programs?

Booting, installing, newbie
Message
Author
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#21 Post by Flash »

It appears that pp4 has removed those images. They give a 404 error now.
Attachments
404 error.png
(22.03 KiB) Downloaded 147 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#22 Post by Flash »

greengeek wrote:In many cases the problem with RAM usage by the browser is not so much a case of how MUCH ram the browser needs to run, it is a case of misuse of that ram, and ram leaks of some kind, causing the cpu usage to get clagged.

I often find even simple sites cause my Chrome 48 to go into some form of "runaway" when those sites have certain types of adverts spread around the screen. The browser process heats up the machine, stops other processes running and often fails completely.

Someone released a version of Palemoon that locked out many of the advertising sites and it works really well in cases where Chrome gets it's knickers in a knot. I can browse much much faster with that version of Palemoon than I can with Chrome (especially on Trademe.co.nz). Sometimes the problem is bad browser code and excessive adverts or bad video codecs rather than actually running out of RAM.

I really doubt that a machine with 4GB of ram should have any genuine issue with inadequate ram - the real issue is coding faults or bad privacy settings in the browser.
I completely agree. Many web pages cause SeaMonkey to lock up. They usually seem to be poorly designed just to look at them, though CNN is a big offender. It's no surprise they'd contain a lot of poorly written scripts and code. Turning off javascript helps a lot, but that leaves you out of the fun.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#23 Post by musher0 »

Hello pp4mnklinux.

I've uploaded on PrivateBin a handy RAM-Cleaner script that perhaps will
fill your need:
https://privatebin.net/?31c76cc5c9b46fe ... qKmasIA3E=

It is the result of collective work done at thread
http://murga-linux.com/puppy/viewtopic. ... t&start=75
a while back.

Requires the real less (not the busybox one; the real less utility should
be in all recent Puppies), as well as urxvt v. > 9.0. Uses urxvt's
borderless feature; it cleans the RAM, then displays before and after
info on screen for 20 seconds.

A screen capture is attached as well as a zip of the script.

Any questions, please ask, either here or at PrivateBin.

IHTH.
Attachments
cleanup_memory4c.zip
Unzip, make executable and run.
(3.58 KiB) Downloaded 62 times
RAM-Cleaner.jpg
(89.61 KiB) Downloaded 103 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply