Author Topic: More cautious Update Manager settings in next Peppermint?  (Read 3495 times)

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5822
  • Karma: 1122
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: More cautious Update Manager settings in next Peppermint?
« Reply #15 on: October 09, 2016, 09:01:44 am »
Great site BTW, you do a lot of people a real service with those tutorials .. I know I've used them before :)

I've been pointing users, here and elsewhere, to the Ubu SSD optimization page for years.   :)

I'd implemented most of the suggestions prior to discovering that page, based on my own trial n' error experiences in Ubu testing, so we're in total concurrence on the tweaks.  Can't argue with 3-second Peppermint boot times !

I think these discussions are born out of a misunderstanding of how Peppermint is stitched together -- that's all.

Personally, I'm all for locking the options, now that the cat is out of the bag, so to speak.  If someone wants to take the time and trouble to unlock the options and diddle with them, they're (probably) smart enough to chroot their install, once it goes awry .    8)

EDIT

Might as well post an easy to follow chroot article (picked at randow), just in case:

LINK:  http://www.webupd8.org/2014/01/how-to-fix-non-bootable-ubuntu-system.html  (replace the word 'Ubuntu' with 'Peppermint')

This may become your best friend, if you start playing around with the Peppermint OS underpinnings.  I suggest bookmarking it ...  LoL !
« Last Edit: October 09, 2016, 09:21:35 am by VinDSL »

Pjotr

  • Guest
Re: More cautious Update Manager settings in next Peppermint?
« Reply #16 on: October 09, 2016, 09:34:17 am »
Removing the metapackages would effectively block kernel updates and shouldn't bother mintupdate at all .. obviously this is still not our advised policy for the same reason in the hypothetical example (maybe more so as effectively pinning 'just' the kernel may allow other packages, particularly things like xorg/graphics drivers through that may rely on the newer kernel .. though I'd have to think some more on that one because if packaged correctly the control file *should* stop that happening, though again there's no guaranteed the Ubuntu package maintainer will take this into account as it's not what he expects to happen)
Thanks for the answer. That's a relief.

I don't expect problems for the graphics stack. The graphics stack in Ubuntu LTS only gets updated in point releases that contain a kernel from a newer series (I expect both such a newer kernel series and a newer graphics stack in Ubuntu 16.04.2 and its successors).

But when you stick to the default kernel series for your Ubuntu version (which is the 4.4.x for Ubuntu 16.04 en 16.04.1), you shouldn't get that newer graphics stack ever.

That's how it worked in Trusty (14.04.x), so I expect it to be likewise in Xenial.  :)
« Last Edit: October 09, 2016, 09:36:31 am by Pjotr »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: More cautious Update Manager settings in next Peppermint?
« Reply #17 on: October 09, 2016, 09:48:55 am »
@Pjotr

You're most likely correct, and as you say there's currently nothing in /usr/lib/linuxmint/mintUpdate/rules that I see as a problem , but that was just another (possibly bad) example, but the point still stands ;)

@VinDSL

I really don't want to "block" the "option", there will always be cases where modifying defaults can cause harm but I don't want to turn Peppermint into a totally locked down OS X alike :)

I wonder if just adding a "don't change the settings below unless you know what you're doing" warning to levels tab of mintupdate > preferences would be a better idea ?

Another option may be to simply have a blank /usr/lib/linuxmint/mintUpdate/rules but again that removes CHOICE and I assume would list all packages as "safe" ???

I'm gonna need to give this some thought.....
« Last Edit: October 09, 2016, 10:00:01 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5822
  • Karma: 1122
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: More cautious Update Manager settings in next Peppermint?
« Reply #18 on: October 09, 2016, 10:08:05 am »
Guess we could extend the data request in support  ...   ;D

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  inxi -Fz && cat /usr/lib/linuxmint/mintUpdate/rules

Spoiler (click here to view / hide)
[close]

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: More cautious Update Manager settings in next Peppermint?
« Reply #19 on: October 09, 2016, 10:18:20 am »
There's little point, that file won't change unless I release an updated version of mintupdate .. which is kinda (part of) my point, our 'rules' file will not reflect changes made by Mint as workarounds because we don't update mintupdate when they do.
(in fact it's only likely to get changed in Peppermint 7 AT ALL if there's a security issue)
« Last Edit: October 09, 2016, 10:22:05 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: More cautious Update Manager settings in next Peppermint?
« Reply #20 on: October 09, 2016, 10:41:22 am »
You could add a note, something like this. 

"These are the recommended default settings for Peppermint.  It's advised not to modify them unless you're fully aware of the possible consequences".

This way, any user is made aware.  They can always ask if they don't understand anything  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: More cautious Update Manager settings in next Peppermint?
« Reply #21 on: October 09, 2016, 10:51:30 am »
So far that's the way I'm leaning .. a simple warning.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Pjotr

  • Guest
Re: More cautious Update Manager settings in next Peppermint?
« Reply #22 on: October 09, 2016, 01:13:27 pm »
As for whether swappiness should be changed, this is up to the user, but it doesn't always follow that lowering swappiness will speed up a system, in fact it may slow it down .. there's a pretty good explanation of why as the ticked response here:
https://askubuntu.com/questions/184217/why-most-people-recommend-to-reduce-swappiness-to-10-20/184221#184221
Now that the mintupdate issue has been dealt with, I'd like to continue the discussion about the usefulness of lowering the swappiness....

I think this is is probably the best reply (by "Linux dude") in the askubuntu thread to which you referred:
http://askubuntu.com/a/475465

Another background article which I think hits the nail on the head:
https://rudd-o.com/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: More cautious Update Manager settings in next Peppermint?
« Reply #23 on: October 09, 2016, 03:05:18 pm »
Sure, I wasn't saying "don't do it" .. just clarifying that it may not always have the desired effect, lowering swappiness is not a "one size fits all" panacea .. I just want people to be aware of this so they understand to monitor their system and decide for themselves if it helped, rather than just do it and forget about it.

It's not as simple as "hey there's stuff in my swap partition, that must be bad" .. it's more about Linux trying to intelligently predict then make room for more pressing stuff .. sometimes it'll get things right, sometimes it won't, but it all really depends what the user does (obviously along with RAM limitations / excesses).

I'm just saying be aware that a lower swappiness may not do what you expect, so keep an eye on things.

That said, my current setting is 10 so I'm not "against" it .. if it appears to speed things up, go for it ;)
« Last Edit: October 10, 2016, 04:09:48 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5822
  • Karma: 1122
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: More cautious Update Manager settings in next Peppermint?
« Reply #24 on: October 09, 2016, 10:29:21 pm »
I know every rig is different, but for the sake of conversation, here are the settings I use ...

Code: [Select]
╭─vindsl@Boogaloo-5 ~ 
╰─➤  sudo sysctl -p
kernel.shmmax = 100000000
vm.min_free_kbytes = 65536
vm.overcommit_memory = 0
vm.overcommit_ratio = 50
vm.dirty_background_ratio = 5
vm.dirty_ratio = 1
vm.swappiness = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eno1.disable_ipv6 = 1

3-second boot.  Peppermint 7 flies like the wind, no matter what I throw at it.