Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 15 Nov 2018, 08:20
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to clean RAM after closing programs?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
rufwoof

Joined: 24 Feb 2014
Posts: 2630

PostPosted: Mon 20 Aug 2018, 07:55    Post subject:  

ITSMERSH wrote:
Quote:
22 browsers tabs

Shocked
May be you should get a hobby in real life? Wink

22 does seem somewhat excessive - but each to their own. Predominately I run one session cli/root using tmux for multiple windows (tabs set to be at the top of screen), and another browser as desktop, running as user ... type setup. That way the hardware and personal docs/data (root) are isolated from the X/browser (user) session. Nowadays a browser/online services can pretty much do all the things I do/use, calculator, text editing, image editing, docs/spreadsheets, mail/calendar, music/video player ....etc. Such that I can ctrl-alt-Fn between the root/cli/tmux (with multiple tabs) and browser (maximised, with multiple tabs). Used in such a manner and two or even three browser sessions, each with multiple tabs ... isn't that uncommon - as that is a form of 'multiple-desktops' with multiple-activities/tasks running on each.

I've also transitioned over from using a gui document editor (LibreOffice) to simply creating/editing documents using raw html (browser can be used to view/spell-check and the print to PDF file those html documents). Pretty much just base OpenBSD (that includes X, window manager, http server, mail server ...etc. as part of the base system, that is intensively security audited as a whole), with a browser (Iridium in my case) on top of that. And where the browser is in effect the desktops/windows (gui). Pretty rare however for me to have even 15 'windows' (browser tabs) 'open' (3 browser sessions, 5 tabs each). More often its a case of 1 browser session, up to a handful of tabs.

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
souleau


Joined: 23 Oct 2016
Posts: 132

PostPosted: Mon 20 Aug 2018, 14:02    Post subject:  

mcewanw made this shell script years ago called freeupram, and it works great for me.
I don't know how it behaves on modern puppies though.

Here's the link:

http://www.murga-linux.com/puppy/viewtopic.php?p=356501&search_id=1802544596#356501
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 2773
Location: 500 seconds from Sol

PostPosted: Mon 20 Aug 2018, 14:25    Post subject:  

Hi souleau,

Examination of mcewanw's script reveals that it is exactly the same as that nic007 provided earlier on this thread.

Maybe the thing to do is to create a desktop file which calls it. Then you could add it to the panel/taskbar.

Sorry, don't have the time to prepare it right now. But all you would need is a named /usr/share/desktop file, using the script after Exec=; a line providing "No Display" if you didn't want it to appear on the Start Menu, an icon somewhere (e.g. /usr/share/icons) with the desktop Icon's argument being Icon=pathToIcon/nameOfIcon.png? and an argument Category=Utility.

mikesLr
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5275
Location: Republic of Novo Zelande

PostPosted: Mon 20 Aug 2018, 15:16    Post subject:  

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.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5275
Location: Republic of Novo Zelande

PostPosted: Mon 20 Aug 2018, 15:20    Post subject: Re: I FOUND THE PROBLEM
Subject description: SCRIPT PROBLEM
 

pp4mnklinux wrote:
I found that the problem is not the RAM, but a scrip which hang on the computer.

I send two screens, hosted at google drive


https://photos.google.com/photo/AF1QipOLHzZz3IB_u1FPGYZPTd6wRrFo57E4BAAmkS6V


https://photos.google.com/photo/AF1QipMk7B7NDMFNuOXvZaU8b4YDc_tSOPSp17lwyop5


thanky
I tried to view these but it seems to require signing into a Google account. I could not find a way to view these.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13084
Location: Arizona USA

PostPosted: Mon 20 Aug 2018, 15:30    Post subject:  

It appears that pp4 has removed those images. They give a 404 error now.
404 error.png
 Description   
 Filesize   22.03 KB
 Viewed   115 Time(s)

404 error.png

Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13084
Location: Arizona USA

PostPosted: Mon 20 Aug 2018, 15:34    Post subject:  

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.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12965
Location: Gatineau (Qc), Canada

PostPosted: Tue 21 Aug 2018, 03:32    Post subject:  

Hello pp4mnklinux.

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

It is the result of collective work done at thread
http://murga-linux.com/puppy/viewtopic.php?t=97524&sort=lastpost&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.
cleanup_memory4c.zip
Description  Unzip, make executable and run.
zip

 Download 
Filename  cleanup_memory4c.zip 
Filesize  3.58 KB 
Downloaded  27 Time(s) 
RAM-Cleaner.jpg
 Description   
 Filesize   89.61 KB
 Viewed   71 Time(s)

RAM-Cleaner.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0528s ][ Queries: 13 (0.0100s) ][ GZIP on ]