Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Some tweaking questions...
New Posts  All Forums:Forum Nav:

Some tweaking questions...

post #1 of 6
Thread Starter 
This is a thread where I've had enough digging around and decided to see if someone can help me out with definitive (or somewhat definitive) answers to these questions. Hopefully, they may help others out in getting some extra juice out of Linux.

1) noatime vs relatime and how to know what is the default setting for a mounted fs?
Either one is better than default for pure speed but noatime is "supposedly" more risky.

2) data=writeback. This one I have no idea about. Pros and cons of using it?
DOESN'T WORK DON'T TRY IT If you do and can't start Linux drop to a root shell and fix your fstab (/etc/fstab) by FIRST remounting the / partition with this command then you can edit fstab without worry.
Code:
mount -o remount "filesystem of partition" /

3) zram-config(compressed swap cache on ram)....any point to using it on a system with 4+GB of RAM?
This one is up to you. Seems to help but very slightly.

4) Any danger having /tmp mounted as a tmpfs? I ask because I get a lot of "error couldn't execute or couldn't cache" when doing updates...but strangely in the 3 plus months of this I haven't had a single crash or instability happen that wasn't actually directly caused by me so that's why I ask.

5) Besides /tmp and /home/$USERNAME/.cache what other directories are safe and good to run as tmpfs?

6) Does swapiness value matter at all? I mean with or without swap does it change any system performance?
If you have no swap file then set your swapiness to 0. If you want to hit swap more then increase swapiness to 90-100.

7) Would changing nice values for desired programs make them any "faster" on a first launch? Even if it doesn't how would one go about changing nice values permanently?

That's it for now...I'm sure I'll find some other ones but these are questions I can't find or understood answers for. Thanks in advance.

PS: If you're wondering why I want to tweak Linux so much...it's because I've somehow managed to make Windows much faster (thanks to a small 4GB ramdisk) and now comparing Linux to Windows makes me feel bad that I can't figure out how to make Linux faster than Windows again. redface.gif
Edited by Rookie1337 - 11/22/12 at 6:07pm
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #2 of 6
Quote:
Originally Posted by Rookie1337 View Post

3) zram-config(compressed swap cache on ram)....any point to using it on a system with 4+GB of RAM?

Isn't the point of swap to save RAM space? If that's the case then this would be like putting the page file on RAM in Windows (i.e. useless).

Quote:
Originally Posted by Rookie1337 View Post

6) Does swapiness value matter at all? I mean with or without swap does it change any system performance?

The higher the swapiness the more often data will be written to the hard drive. If you have enough RAM low swapiness will give you better performance because you don't have to wait on the hard drive as often.


Also, as impressive as it is that you got Windows to run faster than Linux, I don't think you should need an excuse to tweak Linux. In fact, you should tweak Linux just for the sake of tweaking, same with everything else!
Wannabe
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K GA-Z77X-UD3H ASUS GTX 760 DirectCU II OC 2x4GB Samsung DDR3 
Hard DriveHard DriveCoolingOS
128GB Crucial M4 1TB WD Green Thermaltake Water 2.0 Pro Arch Linux 
MonitorKeyboardPowerCase
Dell U2412M 1920x1200 Microsoft Sidewinder x4 Thermaltake Toughpower XT 775W Cooler Master Haf X 
MouseMouse PadAudio
Logitech G700s SteelSeries Experience I-2 Beyerdynamic DT 770 PRO 80 ohms 
  hide details  
Reply
Wannabe
(15 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570K GA-Z77X-UD3H ASUS GTX 760 DirectCU II OC 2x4GB Samsung DDR3 
Hard DriveHard DriveCoolingOS
128GB Crucial M4 1TB WD Green Thermaltake Water 2.0 Pro Arch Linux 
MonitorKeyboardPowerCase
Dell U2412M 1920x1200 Microsoft Sidewinder x4 Thermaltake Toughpower XT 775W Cooler Master Haf X 
MouseMouse PadAudio
Logitech G700s SteelSeries Experience I-2 Beyerdynamic DT 770 PRO 80 ohms 
  hide details  
Reply
post #3 of 6
The swap file AKA Page file is used when you run low on memory... Putting the page file on a RAM disk is pointless.
post #4 of 6
Thread Starter 
Yeah...I know that I should tweak around regardless but I do find it interesting that I couldn't tell a difference between having zram and swapiness @100 and not having zram with swapiness @0. Somethings seemed to work slightly better with it but not a huge (AKA not bigger than a 1second different). IDK...there was a kernel maintainer/writer a while back who was all "you need swap so you can free up the cache to preload programs better" and a lot of sites say that it helps since a lot of programs have one time start up things that they don't use and would sit wasting memory so I figured if they swap is good to free up cache why not compress and move things to a different ram space in case they need it again. IDK. Not that big I guess.

So I'll make 3 as make up your own mind and 6 as swapiness 0 if you have no swap setup.

What about the other options guys?
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #5 of 6
Quote:
Originally Posted by Rookie1337 View Post

Yeah...I know that I should tweak around regardless but I do find it interesting that I couldn't tell a difference between having zram and swapiness @100 and not having zram with swapiness @0. Somethings seemed to work slightly better with it but not a huge (AKA not bigger than a 1second different). IDK...there was a kernel maintainer/writer a while back who was all "you need swap so you can free up the cache to preload programs better" and a lot of sites say that it helps since a lot of programs have one time start up things that they don't use and would sit wasting memory so I figured if they swap is good to free up cache why not compress and move things to a different ram space in case they need it again. IDK. Not that big I guess.

So I'll make 3 as make up your own mind and 6 as swapiness 0 if you have no swap setup.

What about the other options guys?

tweaking? you could try lloyds way of speeding things up with that raid ram disk thing. or you could try to compile a custom kernal, say linux-ck, or something like that
post #6 of 6
Thread Starter 
Quote:
Originally Posted by jrl1357 View Post

tweaking? you could try lloyds way of speeding things up with that raid ram disk thing. or you could try to compile a custom kernal, say linux-ck, or something like that

Yeah I will in a few weeks when I have time to risk downing my computer. But these are some other less (intensive) tweaks I was just curious about.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Some tweaking questions...