[Linux] Pale Moon 31 spawning dozens of processes.

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
pub12
New to the forum
New to the forum
Posts: 1
Joined: 2022-05-11, 10:58

[Linux] Pale Moon 31 spawning dozens of processes.

Unread post by pub12 » 2022-05-11, 15:13

Running Pale Moon 31 on Linux. Just one Tab open.

ps -eLf | grep pale | wc -l

shows about 30 to 40 entries, why?

RES Mem about 150MB for each Process/Thread??

Then youtube opened an 50 processes seen. Browser Console shows some warnings and errors.

After accepting the YT cookies, CPU load and memory usage were normal, but three times before,
the computer was frozen due to high CPU load and memory usage.

Where has this config option gone to limit the number of processes?

Is 31 good enough or do we need a paler 32?

vannilla
Board Warrior
Board Warrior
Posts: 1908
Joined: 2018-05-05, 13:29

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by vannilla » 2022-05-11, 19:33

From ps's man page, under the EXAMPLES section:

Code: Select all

To get info about threads:
          ps -eLf
          ps axms
Basically, you are counting threads.
Also, what's a paler 32?

User avatar
andyprough
Fanatic
Fanatic
Posts: 233
Joined: 2020-05-31, 04:33

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by andyprough » 2022-05-11, 19:57

You should try opening a chromium based browser and running that command - you'll find about 170 different processes are running. Web browsers do a lot of stuff.

And RES Mem of 150MB showing up on each process (I assume you are getting that from htop) is simply the total being used by Pale Moon. It's using 150mb, not 150mb*30 processes.

And yes, Youtube probably opens a lot of processes. Youtube is doing a lot of stuff besides just showing you videos. Like attempting to harvest your personal data.
Self-compiled Pale Moon on Libre-antiX GNU/Linux respin, 32-bit and 64-bit, and on Hyperbola GNU/Linux 64-bit

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

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by moonbat » 2022-05-12, 04:49

andyprough wrote:
2022-05-11, 19:57
You should try opening a chromium based browser and running that command - you'll find about 170 different processes are running. Web browsers do a lot of stuff.
Pale Moon is a single process multithreaded browser, and OP doesn't seem to know the difference between threads and processes. There is always only one Pale Moon process with multiple threads, unlike Chromezilla browsers that spawn a whole new process for every tab.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

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

User avatar
andyprough
Fanatic
Fanatic
Posts: 233
Joined: 2020-05-31, 04:33

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by andyprough » 2022-05-12, 05:10

moonbat wrote:
2022-05-12, 04:49
Pale Moon is a single process multithreaded browser, and OP doesn't seem to know the difference between threads and processes. There is always only one Pale Moon process with multiple threads, unlike Chromezilla browsers that spawn a whole new process for every tab.
Ahh, seems that I did not get that distinction either. Very interesting.
Self-compiled Pale Moon on Libre-antiX GNU/Linux respin, 32-bit and 64-bit, and on Hyperbola GNU/Linux 64-bit

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

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by moonbat » 2022-05-12, 05:17

Moonchild posted a detailed explanation on the subject.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

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

User avatar
andyprough
Fanatic
Fanatic
Posts: 233
Joined: 2020-05-31, 04:33

Re: [Linux] Pale Moon 31 spawning dozens of processes.

Unread post by andyprough » 2022-05-12, 07:19

moonbat wrote:
2022-05-12, 05:17
Moonchild posted a detailed explanation on the subject.
That's pretty cool, I was not aware of how fundamentally secure Pale Moon was. I've used it because I prefer to use something that's independent of the long tentacles of Google. Pale Moon is the most functional of the very small group of browser that are developed independently of Google code, such as Netsurf and Dillo.
Self-compiled Pale Moon on Libre-antiX GNU/Linux respin, 32-bit and 64-bit, and on Hyperbola GNU/Linux 64-bit

Post Reply