Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Tweak that might work with MX?

Post Reply
Message
Author
User avatar
danielson
Forum Regular
Forum Regular
Posts: 180
Joined: Wed Dec 14, 2016 3:36 pm

Tweak that might work with MX?

#1 Post by danielson » Fri Feb 23, 2018 7:31 am

Tweaks don't usually do much for me.
Picked up one for LinuxMint Cinnamon from here:
https://sites.google.com/site/easylinuxtipsproject/3
Now, i'm temporarily working on LM Cinn. but if someone wants to look at this and see if it works on MX, i'd be glad to know the results.
LM startup time on my laptop now under 10 sec. (previously 25 sec. on either LM or MX).

Lots of RAM (at least 4 GB): put /tmp on tmpfs
10. Does your system have lots of RAM memory? If it has at least 4 GB, then you can probably speed up your system a bit by placing /tmp on a tmpfs partition. Which means, translated into ordinary language: you bring about that temporary files will not be placed on the hard disk anymore, but on a virtual RAM disk instead.

This is how you do it:

a. Launch a terminal window.
(You can launch a terminal window like this: *Click*)
Copy/paste this green line into the terminal (it's one line!):
sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/
Press Enter. Type your password when prompted; your password will remain entirely invisible, not even dots will show when you type it, this is normal.

b. Then copy/paste this command into the terminal:
sudo systemctl enable tmp.mount
Press Enter.
c. Reboot your computer.
d. After the reboot: check whether it works, with this terminal command:
systemctl status tmp.mount

By default, a tmpfs partition has its maximum size set to half your total RAM. The actual memory consumption depends on how much you fill it up, as a tmpfs partition doesn't consume any memory until it is actually needed.
Note: do not apply this on systems with less RAM than 4 GB! Because then this tweak won't make them faster, but (much) slower.

How to undo tmpfs
10.1. Do you wish to undo tmpfs? Then copy/paste this line into the terminal:
sudo rm -v /etc/systemd/system/tmp.mount
Press Enter. Type your password when prompted; your password will remain entirely invisible, not even dots will show when you type it, this is normal.
Afterwards, reboot your computer.
Distro: MX-18b1_x64
Laptop: HP EliteBook 8460p
CPU: Dual core Intel i5-2520M.
Office: LibreOffice.
Browser: Firefox (Quantum), Vivaldi (Snapshot).

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5828
Joined: Sat Jul 15, 2006 10:40 am

Re: Tweak that might work with MX?

#2 Post by anticapitalista » Fri Feb 23, 2018 7:46 am

Only do this if you run systemd boot.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17034
Joined: Fri Dec 15, 2006 8:07 pm

Re: Tweak that might work with MX?

#3 Post by Stevo » Fri Feb 23, 2018 4:11 pm

It seems to me that there should be a way to do the same trick with the standard sysvinit.

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5828
Joined: Sat Jul 15, 2006 10:40 am

Re: Tweak that might work with MX?

#4 Post by anticapitalista » Fri Feb 23, 2018 5:03 pm

Stevo wrote:It seems to me that there should be a way to do the same trick with the standard sysvinit.
Maybe, but not with the commands posted by OP.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17034
Joined: Fri Dec 15, 2006 8:07 pm

Re: Tweak that might work with MX?

#5 Post by Stevo » Fri Feb 23, 2018 5:22 pm

anticapitalista wrote:
Stevo wrote:It seems to me that there should be a way to do the same trick with the standard sysvinit.
Maybe, but not with the commands posted by OP.
Yes, it would have to be different. I also noticed that another tweak was to add noatime to the filesystem options in /etc/fstab, except for the swap partition. We just have "defaults" in MX, but the Arch wiki has "defaults,noatime" in their generic example fstab.

User avatar
entropyfoe
Forum Regular
Forum Regular
Posts: 851
Joined: Thu Apr 19, 2007 11:42 am

Re: Tweak that might work with MX?

#6 Post by entropyfoe » Fri Feb 23, 2018 5:28 pm

noatime is recommended for SSDs to reduce writes.
Asus Prime 370X-Pro
AMD Ryzen 1600X (12 threads @ 3.6 GHz)
16 Gig DDR4 3200 (G Skill)
Nvidia -MSI GeForce GT 710 fanless
Samsung 960 NVMe SSD nvme0n1 P1-3=MX-17.1, P4=MX 18 betas
1TB SSD sda1= Data, 2TB WD =backups
on-board ethernet & sound

sunrat
Forum Regular
Forum Regular
Posts: 228
Joined: Mon Mar 28, 2016 9:54 pm

Re: Tweak that might work with MX?

#7 Post by sunrat » Fri Feb 23, 2018 7:25 pm

I thought tmpfs is a special FS for use in memory, and systemd uses it by default for /tmp. So this suggested tweak is unnecessary for systemd based systems and irrelevant for MX when using the default sysvinit.
tmp.mount unit is enabled by default in the one I use (siduction). Maybe it is not enabled in some systemd distros (Mint?).
https://wiki.gentoo.org/wiki/Tmpfs

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17034
Joined: Fri Dec 15, 2006 8:07 pm

Re: Tweak that might work with MX?

#8 Post by Stevo » Fri Feb 23, 2018 8:32 pm

entropyfoe wrote:noatime is recommended for SSDs to reduce writes.
Yes, but it should also speed up spinning drives somewhat if it can reduce writes on them.

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 449
Joined: Sun Aug 20, 2017 10:11 am

Re: Tweak that might work with MX?

#9 Post by stsoh » Sat Feb 24, 2018 12:36 am

simplest way to do this is:
open thunar > goto /etc folder > open fstab file > copy below and paste it to eol (end-of-line) > save and exit. done.

Code: Select all

tmp     /tmp      tmpfs rw,mode=1777 0 0
vartmp  /var/tmp  tmpfs rw,mode=1777 0 0 
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

Post Reply

Return to “Hardware /Configuration”