Trisquel-mini – Why so Fast and Efficient…?

12 réponses [Dernière contribution]
Andy
Hors ligne
A rejoint: 02/02/2020

As I use both mini and the full version – could any of our learned members explain why Ttisquel-mini LXDE is so efficient. Is there an inherent reason why it is more efficient than the sub ubuntu version it is based on? Neofetch says 128MiB RAM used…!
Whether on an old XP-Pro 3D CAD HDD station, Dell E6420 i7 SSD laptop, HP G60 laptop or old low spec Toshiba Satellite laptop it is just so fast and snappy being so light on resources.
Thanks Guys….

JC8
JC8
Hors ligne
A rejoint: 12/29/2020

LXDE is extremely lightweight and minimalist, that's the main reason. Trisquel-mini also comes with less packages out of the box, that's why it's called mini. If you want to go one step further in minimalism, simplicity and light resource consumption check out IceWM.

Malsasa
Hors ligne
A rejoint: 12/01/2016

As an Ubuntu user I understand that Ubuntu official family includes
snap where Trisquel does not. That contributes, I believe
significantly, to your lightweight case beyond the basics
jamelcastells above already explained. However, you report is very
interesting, especially the 128MiB number you mentioned, to me it's
excellent in 2021.

See also https://linuxdreambox.wordpress.com/2017/09/23/warning-packagekitd-and-snapd-eat-bandwidth.

Regards,
Malsasa

Andy
Hors ligne
A rejoint: 02/02/2020

Not convinced at all by that R-Pi IceWM guy. He shouts about 20MiB RAM used but when you look he has 163 tasks with ONLY ONE RUNNING and yes 162 Sleeping. Guess that if I stopped all but one tasks I could get this low RAM figure too?
His CPU load is far heavier than Trisquel or Trisquel-mini.

Andy
Hors ligne
A rejoint: 02/02/2020

Thanks Guys - I thought Trisquel-mini on my old XP-Pro 3D CAD workstation was super efficient at 143Mib but these unknown guys over somewhere, I guess in Eastern Europe have trumped my system…..
https://www.sistemlinux.org/2018/04/trisquel-mini-8-0-lts-flidas-incelemesi.html
Have you guys any idea as to country or language?
EDIT: Just spotted flag at foot of page - Turkish flag, is a red flag featuring a white star and crescent - or Ottoman for us oldies.
Guess Trisquel users are far and wide..?

trisquel-mini-8s.png temp2crop-01.png
andyprough
Hors ligne
A rejoint: 02/12/2015

You are doing well, any time you can get a modern distro to boot in under 350mb you are considered "minimalist". And you are running less than half that. Well done!

Here's some things that could help you on your quest to get even lower.

When you use the "free" command, it's handy to use the "h" flag to make it "human readable": 'free -h'

To see what processes are eating your memory, use the 'top' command and then the Shift-M key combo, to sort all your processes by which ones use the most memory. Sometimes you can find a process you don't need that you can remove from autostart, and reduce your initial memory. One thing that top will show you is that your terminal is probably using 20mb of memory, plus or minus a bit. Instead of running commands in a terminal, just switch to a tty to save yourself that +/-20mb.

Another way to look for ways to cut down on memory usage is by using the 'pstree' command, which normally comes as part of the 'psmisc' package. 'sudo apt install psmisc', and then 'pstree'. This will give you a printout of all the services your computer is using, in tree form. You may find that, unbeknownst to you, your computer was running bluetooth service or cups or saned service when you didn't have any bluetooth or printer or scanner you were using with it. Turning off unused services can sometimes shave down your memory usage.

If you have been using the computer for awhile and want to recover memory without having to reboot, there are a couple of commands you can try. You have to make yourself the root user in the terminal or tty to run these commands:
#to clear page memory (should be safe):
sync; echo 1 > /proc/sys/vm/drop_caches
#to clear dentries and inodes [MORE RISKY - could have some data loss] (dentries are data structure that represents a directory and inodes are data structure that represent a file)
sync; echo 2 > /proc/sys/vm/drop_caches
#to clear swap, if you are using swap:
swapoff -a && swapon -a

Andy
Hors ligne
A rejoint: 02/02/2020

Hi AndyPrough – Note 143 MiB used was for T-mini v8. Now with v9 Trisquel-mini-MAX loaded up with applications from LibreOffice, Gimp, video editing etc etc – the figure is around 250MiB but still so wickedly fast compared with other “lightweight distros.”

Tend to use $ free or free -m so that my old brain has all columns with same units but $ free -h is cool.
You minimalist guys are getting to the old fool – just had to find out what tty was – interesting old school tech. Used F3 to get in but did not know how to get out or how to take screenshot let alone save it. Suppose I could have used old school camera…? Bombed out with exit, then powered off.
Yes tty does save a little – thanks.
Always wondered why Trisquel-mini came with all those different terminals..? So in main Trisquel on old HP G60 I checked the tick boxes in Accessories for UX and XTerm only to find that this action alone slowed things down a little. See screenshots below – interesting..? Will have to see if I can duplicate results on the Dell Trisquel-mini notebook. Why does top command reveal three users...?
Have known since day one ubuntu $ sudo apt install psmisc or whatever but always wondered why such stuff wasn’t in the stock repository as say XTerm is..? Does this 'pstree' show anything that is not covered by a systemd command similar to $ systemd-analyze critical-chain - for start up..? Is $ sudo apt install *** totally safe – where is it dragging it from? Sorry for dumb question but just something I have shied away from and have not needed up till now.
Thanks for a great post or should I say reference page and getting old brain thinking about post on minimalist topic – am I beginning to see the light….?

ps – have you seen the pages of tricks and variables for XTerm – cannot retain this much data but found Ctrl + mouse, left right and centre useful but failed at colours.

Ttrisquel-v9-free-h.png Trisquel-XTerm-Term-HPG60.png
andyprough
Hors ligne
A rejoint: 02/12/2015

> "You minimalist guys are getting to the old fool – just had to find out what tty was – interesting old school tech. Used F3 to get in but did not know how to get out or how to take screenshot let alone save it."

There are usually 7 tty screens, and you can access them with the Control-Alt-F1 through Control-Alt-F7 key combinations. The graphical screen is almost always on the 7th tty, so you would go back to your Trisquel desktop by using the Control-Alt-F7 key combination.

>"Have known since day one ubuntu $ sudo apt install psmisc or whatever but always wondered why such stuff wasn’t in the stock repository as say XTerm is..? Does this 'pstree' show anything that is not covered by a systemd command similar to $ systemd-analyze critical-chain - for start up..? Is $ sudo apt install *** totally safe – where is it dragging it from? Sorry for dumb question but just something I have shied away from and have not needed up till now."

Oh, no problem. "sudo apt install " is just the way to install programs from the terminal instead of from a graphical program like the Software Manager or like Synaptic. They are all pulling programs from the exact same Trisquel repos, so there's no safety concern.

As far as comparing it to the output of 'systemd-analyze critical-chain', pstree shows many more running services than the systemd command does.

I do notice that the psmisc is available through the 'sudo apt isntall psmisc' command but not through the Trisquel Software Manager application. I think the Software Manager just installs bigger programs like Firefox and Libreoffice, not small command line utilities like psmisc.

But pstree is only useful if you are hunting for more ways to save more memory. Since you are already at a very low level of memory usage already, I think you may not want to keep hunting for more services to disable. You have a very fast, low-memory Trisquel system - probably you should just enjoy it rather than trying to hack on it (like I would).

lanun
Hors ligne
A rejoint: 04/01/2021

> for us oldies

Indeed. The Ottoman Empire was brought to its tragic end in 1922.

andyprough
Hors ligne
A rejoint: 02/12/2015

Would still be going to, if it hadn't been for that dratted Lawrence of Arabia...

https://yewtu.be/watch?v=vOlRhGEhG7k

Andy
Hors ligne
A rejoint: 02/02/2020

Guess you guys over the pond get all your history remade, rewritten and regurgitated by Hollywood – Oh Dear! Top Gun – What a Joke :) Lol
Apparently most Americans can’t even point to Afghanistan, Iraq or Vietnam on a map!
Did not know Arabia was part of the Ottoman Empire at the time…! Or even Arabic…!
AFAIK In 1914, T.E. Lawrence helped to map the Negev Desert which might be used by the Ottoman Empire allied with Germany.
As to what you wish to imply – only you know?

Andy
Hors ligne
A rejoint: 02/02/2020

Thanks Malsasa - As I understand it Mint does not allow Snaps either and suggest their lightweight version, PeppermintOS, which we can therefore compare with Trisquel-mini. Does not use snaps either?
You will read all over the web that PeppermintOS, ignoring all of its faults, is so fast and efficient. Indeed lightening fast – speed, speed and more speed….. where 400MiB RAM used at idle is considered very lean or frugal.
Pity all testers are ignorant of Trisquel-mini LXDE where I consider half of that figure to be efficient. Stability is taken for granted.
Even though PeppermintOS is efficient we still do not have an explanation of why Trisquel-mini LXDE is more efficient! Peppermint’s faults perhaps leading to discrepancy…?
Any more ideas guys – please help.

https://www.dedoimedo.com/computers/peppermint-10-review.html

Could anyone explain this cloud based OS and its reliance on Google and Microsoft – Yikes! I’m confused…

https://www.ubuntupit.com/everything-you-need-to-know-about-peppermint-linux-os/

Andy
Hors ligne
A rejoint: 02/02/2020

Thought you might like to see cold start boot up times for my juiced up Trisquel-min-max with LibreOffice, Abrowser GIMP et all added - 13.9secs...!

Fast-01.png