Peppermint | Linux OS Community Forum
 
It is currently Sun Sep 15, 2019 4:17 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Fri Dec 20, 2013 10:19 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Can't take it anymore. I need to dump NM before proceeding. Man, I h-a-t-e that app! :twisted:

Here's the cure if anyone is interested. LoL!

Glad you started that thread! Saved me a lot of searching... ;)

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 

 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Fri Dec 20, 2013 10:30 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Happy to be of service :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 12:35 am 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Oh, drat! I forgot to upload my Peppermint-Conky scripts to Dropbox. I'll need to swap drives again. :lol:

Before I stop work, and regroup, here's a screenie of my SSD partition setup...


    Image

If you'll notice, I reserved 10% of the storage space (unformatted partition) for overprovisioning.

Supposedly, this improves the performance and lifespan of SSD drives. We'll see.

I must admit, this drive is performing much better than I expected. I'd like to keep it that way. ;)

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 1:17 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Cron job worked just fine, this morning. I decided to invoke it daily. ;)

Code:
vindsl@Necksa ~ $ cat /var/log/trim.log
*** Sat, 21 Dec 2013 09:08:07 -0700 ***
/: 7754571776 bytes were trimmed
/home: 40096567296 bytes were trimmed

IMO, cron jobs are overkill with laptops -- crons are generally used on machines that run 24/7/365 -- but it's a quick n' dirty solution.

It's a judgment call. I didn't want to Trim the drive on every boot, or constantly via 'discard', but I judge that a weekly cron wasn't sufficient for my needs. For instance, my Conky script regenerates an extensive log file every 15 minutes, and I can't move if off to RAM, for various reasons. There's a lot of reading/writing taking place on my SSD, from this one program alone, so I thought that a daily cron job would be more suitable for my needs.

Code:
$ gksudo gedit /etc/cron.daily/trim

Code:
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG

If you decide to do the above, after you've created/saved the file, run the following command in CLI to render the cron file executable.

Code:
$ sudo chmod +x /etc/cron.daily/trim

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Last edited by VinDSL on Sat Dec 21, 2013 2:54 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 1:35 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
While I'm thinking about it, I killed the cache in Chromium -- no reason to needlessly thrash the SSD. ;)

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
<default-apps>
  <web-browsers>
    <web-browser>
      <name>Chromium</name>
      <executable>chromium-browser</executable>
      <command>chromium-browser --cache-disk-size=1 %s</command>
      <icon-name>chromium-browser</icon-name>
      <run-in-terminal>false</run-in-terminal>
      <netscape-remote>false</netscape-remote>
      <!--
      <tab-command>false</tab-command>
      <win-command>false</win-command>
      -->
    </web-browser>
  </web-browsers>
</default-apps>

Change the '<command>' line to read (like the example above)...

Code:
$ gksudo gedit /usr/share/gnome-control-center/default-apps/chromium-browser.xml

Code:
<command>chromium-browser --cache-disk-size=1 %s</command>

BTW, setting this to '0' means 'unlimited'... Don't do it! :lol:

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 2:06 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Speaking of needless caching, hammering your SSD, here's where I set my swappiness...

Code:
vindsl@Necksa ~ $ cat /proc/sys/vm/swappiness
1
vindsl@Necksa ~ $

The default 'swappiness' in Ubuntu is '60', which is ridiculously high, useless you're running a server. I always knock this down to a more reasonable level, on any/all of my machines. It requires some experimentation for best results, depending on the rig.

However, in the case of mobile SSDs, any 'swappiness' is reportedly senseless and destructive. Here are the recommended 'swappiness' & 'cache' settings...

Code:
$ gksudo gedit /etc/sysctl.conf

Code:
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
# Sharply reduce swap inclination
vm.swappiness=1
#
# Improve cache management
vm.vfs_cache_pressure=50
#

Add these lines to the bottom on the script ( like the example above)...

Code:
# Sharply reduce swap inclination
vm.swappiness=1
#
# Improve cache management
vm.vfs_cache_pressure=50
#

Save & reboot...

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 2:32 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Here are my 'fstab' settings...

Code:
$ gksudo gedit /etc/fstab

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=fdf64950-e3e9-4b60-9f64-989caab57898 /               ext4    noatime,errors=remount-ro 0       1
# /home was on /dev/sda3 during installation
UUID=07470910-25c3-4517-afa4-a28d44f337e1 /home           ext4    noatime,defaults          0       2
# swap was on /dev/sda2 during installation
UUID=84b7af6b-a631-4209-8b73-745ef1bd579f none            swap    sw                        0       0

As mentioned above (in several places), I didn't want to use 'discard'. I won't bore you with all of my reasons.

'noatime' is a horse of a different color. It disables the 'access time stamp' which the OS changes, every time it reads a file. For SSDs, putting 'noatime' in your 'fstab' provides a definite plus. Please note where I added it, in the example above.

Also, DO NOT add 'noatime' to the 'swap' partition. It should only be used on your regular 'Linux' partitions.

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 3:19 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
I also changed the I/O scheduler from 'cfq' (slow) to 'deadline' (fast)...

Code:
vindsl@Necksa ~ $ cat /sys/block/sda/queue/scheduler
noop [deadline] cfq

Code:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=deadline"
GRUB_CMDLINE_LINUX="persistent"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

Do you see it? :ugeek:

Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=deadline"

Just add 'elevator=deadline' to that line.

Save

Then...
Code:
$ sudo update-grub

Reboot

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 6:44 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Oh, and one last thing, that I forgot to mention... :idea:

One of the first things I did (in my BIOS settings) was switch the hard drive mode from 'SATA' - > 'AHCI'

My Dell D620 & D630 won't even recognize a HDD in 'AHCI' mode, but the new SSD seems to love it!

You may want to do this, or not, depending on your BIOS/UEFI. Caveat emptor...

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Peppermint 4 Re-Spin Discussion
PostPosted: Sat Dec 21, 2013 6:53 pm 
Offline
User avatar

Joined: Mon Aug 05, 2013 11:58 pm
Posts: 220
Location: Arizona, USA
Just about there...

    Image

_________________
Be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL