Question regarding slowdowns in PM (disk useage)

Discussions for the Apple Mac OS builds of Pale Moon

Moderator: dbsoft

Forum rules
Important note:
The old Mac OS versions of Pale Moon were provided by various people and not official or in any way organized. Please make sure you check the date of topic threads to know if the topic is current or relevant! We are using this board for both old discussions and new development of Pale Moon on Mac.

Any specific bugs you find that don't have their own topic yet: please make a new topic; one bug per topic please to keep things organized.
KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-22, 09:06

Throughout the years I was under the impression that browsers lag due to the browser itself, poorly coded websites, and my hard drive being old and close to full.

However, I checked the disk useage (never did before), and I am seeing this. So many gigabytes. Is this even normal?
(I am using the latest community build)
Attachments
Screen Shot 2020-09-22 at 05.01.01.png
Last edited by KlarkKentThe3rd on 2020-09-22, 10:28, edited 1 time in total.

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1878
Joined: 2015-09-30, 23:02
Location: uk.

Re: Question regarding slowdowns in PM (disk useage)

Unread post by Moonraker » 2020-09-22, 09:20

cache build up.?.
Have you cleared the cache or have PM clear on exit.?
user of multiple puppy linuxes..upup,fossapup.scpup,xenialpup..... :thumbup:

Pale moon 29.4.1

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-22, 09:24

I have limited the cache to be 350mb only. That, and (pics attached)
Attachments
Screen Shot 2020-09-22 at 05.21.31.png
Screen Shot 2020-09-22 at 05.23.21.png

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-22, 10:27

Whoever moved my thread here, thanks.

User avatar
billmcct
Keeps coming back
Keeps coming back
Posts: 951
Joined: 2012-09-04, 15:19
Location: Costa Rica & Union City Georgia USA

Re: Question regarding slowdowns in PM (disk useage)

Unread post by billmcct » 2020-09-22, 10:34

Something's lying to you. No way you could use 132.9% CPU. CPU use can never get past 100%.
--------------------------------------------------------------------------------------------------------------
The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Question regarding slowdowns in PM (disk useage)

Unread post by Moonchild » 2020-09-22, 10:40

The main question is: how long is your session? days? weeks? Judging by the CPU time used you haven't restarted the browser in forever, in which case the cumulative read/write numbers are quite normal.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-22, 12:10

Good question. I have restarted the browser at least twice in the past 3 days. Unless quitting and re-opening in 30 minutes is not the same as restarting.

Whenever something causes PM to slow down and my CPU to heat up, it also corresponds with the heavy load disk writing, as I now discovered. And yes, the CPU does go above 100% in these cases. I still have no idea what causes this, since closing YT usually does nothing, even after several minutes. Perhaps someone's mining crypto, sounds crazy but not impossible.

Right now, I have 50% CPU, 700mb being written, and 2.3GB of RAM used. Now it's all fine. And despite 1 30min YT video playing in 720p.

User avatar
Andrew Herbert
Fanatic
Fanatic
Posts: 165
Joined: 2019-11-25, 21:46

Re: Question regarding slowdowns in PM (disk useage)

Unread post by Andrew Herbert » 2020-09-22, 13:04

It also happens to me (except the slowdowns part) when accessing JS-heavy websites, even after closing them.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-22, 14:55

You don't have slowdowns because you have a stronger CPU/more RAM, I can bet on it.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-25, 20:31

This might be coming from a non-developer, but would it be possible to write an extension that strips the browser from/stops any JS that is not coming from any currently opened window? If you visit a JS heavy site, and it slows down PM for many minutes later, even after you leave, then this might be a potential solution.

Alternatively, just stop all scripts currently running. Like, kill and delete all scripts. Less convoluted to program, could easily help with slowdown.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Question regarding slowdowns in PM (disk useage)

Unread post by Moonchild » 2020-09-26, 07:44

Extensions can do many things but they can't control SpiderMonkey internal runtimes.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

New Tobin Paradigm

Re: Question regarding slowdowns in PM (disk useage)

Unread post by New Tobin Paradigm » 2020-09-26, 07:49

Even if a binary extension could issue commands to xpconnect to instruct the JS Engine that wouldn't stop or really affect DOM's direct usage of the JS API.

The Squash

Re: Question regarding slowdowns in PM (disk useage)

Unread post by The Squash » 2020-09-28, 01:50

billmcct wrote:
2020-09-22, 10:34
Something's lying to you. No way you could use 132.9% CPU. CPU use can never get past 100%.
It's called multi-core processors. Evidently OS X's process manager does not work in Solaris mode (which divides the CPU usage by the number of CPUs in the system), which makes sense because OS X was based partly on BSD, not at all on Solaris.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-09-28, 15:27

I never thought I'd see the day Solaris being mentioned here.

The Squash

Re: Question regarding slowdowns in PM (disk useage)

Unread post by The Squash » 2020-09-28, 22:21

What's that supposed to mean? You mean you didn't expect that Solaris would be mentioned at all on an OS X-specific part of the board?

And, I'll admit, Solaris does not come to mind readily when thinking about this browser.

KlarkKentThe3rd
Astronaut
Astronaut
Posts: 556
Joined: 2018-04-20, 20:31

Re: Question regarding slowdowns in PM (disk useage)

Unread post by KlarkKentThe3rd » 2020-11-28, 15:31

Looks like the magic bullet was realizing I was running too many add-ons that I wasn't actually using, some of them CPU-intensive and possibly conflicting with each other.

Half of those running right now are borderline passive, not doing anything until asked. nMatrix, uBlock, PureURL, arranged from most the least CPU using. This works, and now the excessive slowdowns are gone.
Attachments
Screenshot 2020-11-28 at 10.28.53.png

dbsoft
Project Contributor
Project Contributor
Posts: 405
Joined: 2020-02-21, 17:35

Re: Question regarding slowdowns in PM (disk useage)

Unread post by dbsoft » 2020-11-28, 18:57

KlarkKentThe3rd wrote:
2020-11-28, 15:31
Half of those running right now are borderline passive, not doing anything until asked. nMatrix, uBlock, PureURL, arranged from most the least CPU using. This works, and now the excessive slowdowns are gone.
So it was 1 or more of those 3 you disabled?

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: Question regarding slowdowns in PM (disk useage)

Unread post by moonbat » 2020-11-28, 23:29

Why did you disable Pale Moon Commander? :shock:
It is purely a front end for some advanced settings to keep from having to mess manually with about:config, and it doesn't run in the background or interfere with anything else.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

Locked