Randomly my laptop starts freezing (1-3 sec) so I checked form my ram usage and it was 7/7.8 GB used.
My usage is only some firefox tabs(max 7 tabs) and vscode.
But I realized that my firefox and latte dock (and panel) takes too much ram.
This example uses only one firefox tab, and uses alot of resources by “Web” “MainThread” and “latte-dock”.
How can I reduce this usage?
From your screenshot it looks like the system is using 1.7 GiB from 7.7 GiB
To me that doesn’t look bad.
The freezing can be caused by something else tho: baloo indexing, schedulers …
Do you have a SSD and a swap partition on it? Maybe better approach is a swapfile or systemd-swap.
Please provide more information about your system, as pointed out here:
Once it finishes indexing, should be fine. Problem is not that easy when you have a bunch of partitions containing thousands of files spread over hundred of folders. Indexing them will take a looooong time and is resource consuming.
Not to mention they are using latte-dock … which is basically a 2nd DE and bloats KDE to about double the RAM cost. Actually in this case its taking 3 times the memory plasmashell is using.
(which isnt default … the user installed this, and even mentions it as the highest resource use…so…)
It seems it is. Taking only ~8mb.
The issue is configuration and perception;
In general this system is bloated.
See all the blur and transparency? I am going to guess there are other desktop effects in use.
Again lattedock is taking a huge amount.
Not to mention the apprent browsing habits - some modified waterfox with crappy extensions …
its using over 750mb with one tab open. Thats nothing to do with the desktop … thats the browser and user configuration.
So … I can easily see knocking off 1+ gig from this by just flipping a few switches.
Another example for my problem:
I am using vscode, firefox with 4 tabs and running react and express servers and suddenly my machine became almost unusable, it freezes every 5 secs
So you have answer – your servers eats ram. Optimize them, repair memory leaks and situation should be better.
EDIT: About system freezes: swap + HDD may cause it, for good swap performance you need fast disk. You should set lower swappiness – this will cause swap will be use later.
It’s likely to cause your system to lock up when it runs out of RAM. It’ll also prevent hibernation, which could be an issue with a laptop if that’s what you have.