LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-05-2018, 12:24 PM   #2056
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619

Quote:
Originally Posted by jostber View Post
Add sboui to the extra or an new contrib folder for Slackware. This is a nifty ncurses application for installing programs in Slackware with resolving dependencies.

https://github.com/montagdude/SlackB...r/system/sboui
Thanks for the plug. A clarification, though: it is only for SBo or similar SlackBuilds repositories.
 
2 members found this post helpful.
Old 09-05-2018, 04:38 PM   #2057
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Maybe upgrade to 4.19 for the kernel since that is slated to be LTS? https://news.softpedia.com/news/it-s...s-522452.shtml
 
2 members found this post helpful.
Old 09-05-2018, 04:50 PM   #2058
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,499

Rep: Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451
Quote:
Originally Posted by Darth Vader View Post
Is there a reason for non enabling it at all?
It seems that nobody else is enabling it (that I could find). And the kernel developers upstream made a point to disable CONFIG_ZRAM_WRITEBACK in the 4.14 kernel series.

That's enough to make me wonder about side effects and to not enable it in these next kernels. But if you see other projects start to enable this, that might convince me. We're just usually not the first to turn such options on.
 
2 members found this post helpful.
Old 09-05-2018, 05:34 PM   #2059
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by volkerdi View Post
It seems that nobody else is enabling it (that I could find). And the kernel developers upstream made a point to disable CONFIG_ZRAM_WRITEBACK in the 4.14 kernel series.

That's enough to make me wonder about side effects and to not enable it in these next kernels. But if you see other projects start to enable this, that might convince me. We're just usually not the first to turn such options on.
OK, I got it.

But how about enabling CONFIG_ZSWAP, which is an in-memory compressed cache for swap? Needs only "CONFIG_FRONTSWAP=y" and (preferable) "CONFIG_ZBUD=y" (or as module)

I do not think there's something to worry, because the feature should be manually enabled in kernel command-line, with "zswap.enabled=1" (so, who enable it probably known what s/he do) and personally I used this with great success since several months in a box with 4GB RAM, which happens to use the swap often.

While using that ZSWAP, my box behavior is much much better, and the responsiveness is kept even when it start to swap.

BTW, this one, the ZSWAP is used by other distributions, and it is available at least Arch, Fedora and openSUSE. Not sure about Debian and Ubuntu.

Some links:

https://wiki.archlinux.org/index.php/zswap
https://www.ibm.com/developerworks/c...ality7?lang=en

Last edited by Darth Vader; 09-06-2018 at 10:30 PM.
 
1 members found this post helpful.
Old 09-05-2018, 06:51 PM   #2060
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by jostber View Post
Add sboui to the extra or an new contrib folder for Slackware. This is a nifty ncurses application for installing programs in Slackware with resolving dependencies.

https://github.com/montagdude/SlackB...r/system/sboui
latest does not build he needs to update his SBO-Build to point to top of extracted blob and etc but a cool program. 1.1
easier to have a git pull checkout from his git. but hey his stuff

Last edited by Drakeo; 09-05-2018 at 06:52 PM.
 
Old 09-05-2018, 09:10 PM   #2061
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by Drakeo View Post
latest does not build he needs to update his SBO-Build to point to top of extracted blob and etc but a cool program. 1.1
easier to have a git pull checkout from his git. but hey his stuff
I'm not sure what you mean. The latest version is 1.1, which is available on SBo and builds fine on 14.2. I have not tried on -current. But this is not the place for this discussion; please go here instead:

https://www.linuxquestions.org/quest...rs-4175602521/
 
Old 09-06-2018, 12:36 AM   #2062
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,499

Rep: Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451Reputation: 8451
Quote:
Originally Posted by Darth Vader View Post
But how about enabling CONFIG_ZSWAP, which is an in-memory compressed cache for swap? Needs only "CONFIG_FRONTSWAP=y" and (preferable) "CONFIG_ZBUD=y" (or as module)
Next time I will. Thanks for the info.
 
4 members found this post helpful.
Old 09-06-2018, 01:27 AM   #2063
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,204

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
gdb-8.2:

http://www.gnu.org/software/gdb/download/ANNOUNCEMENT
http://ftp.gnu.org/gnu/gdb/gdb-8.2.tar.xz
 
Old 09-06-2018, 03:26 AM   #2064
burdi01
Member
 
Registered: Dec 2010
Location: The Netherlands
Distribution: Slackware Current64, PartedMagic, Xubuntu
Posts: 465

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Qury View Post
Hi Pat,
Could you please add the below to current?

1, new directory /etc/ld.so.conf.d
2, start the /etc/ld.so.conf file with the below line:
Code:
include /etc/ld.so.conf.d/*.conf
This seems to be required by virtualbox guest additions.
As far as i recall, i also had to add a line for ardour in the past as well, so i believe other programs might benefit too.
In Current64 I am using (the official build of) VB for years now and never had to implement something like your above request.
If you want we could discuss things in a separate thread.

Last edited by burdi01; 09-06-2018 at 03:28 AM.
 
Old 09-06-2018, 11:04 AM   #2065
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
I run two servers at work that run samba and winbindd to auth to Active Directory. I have to start winbindd myself in rc.local, which is fine ... but on a samba upgrade when I run "rc.samba restart" it would be really cool if it could also restart winbind if its already running. (Only if its already running though)

Thanks for your time.
 
Old 09-06-2018, 02:33 PM   #2066
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by Darth Vader View Post
How about enabling of CONFIG_ZRAM_WRITEBACK withing kernel?
Code:
CONFIG_ZRAM_WRITEBACK=y
This option is exceptionally useful for creating a "super-swap", in the form of a ZRAM device (compressed SWAP device in memory) backed up with a real SWAP partition.

The end result is ability to create a really fast and efficient memory SWAP design, doing something like
Code:
modprobe zram

echo 1 > /sys/block/zram0/reset

echo lz4 > /sys/block/zram0/comp_algorithm

echo /dev/sdb1 > /sys/block/zram0/backing_dev

echo 8G > /sys/block/zram0/disksize

mkswap /dev/zram0

swapon -p 100 /dev/zram0
To note that my example assumes that /dev/sdb1 is also itself an 8GB SWAP partition.

---------------------------------------------------------

In other hand, how about also enabling of ZSWAP options?

That ZSWAP also (alternatively) helps on getting a super-fast SWAP design and from my own experience it works exceptionally well.

Is there a reason for non enabling it at all?
You made me curious about this zram, not sure I can follow you on zram vs. zswap, but anyway thanks for pointing it out. I'm trying to understand what's the advantage of using zswap over setting the swappiness on 1 ( echo 1 > /proc/sys/vm/swappiness ). I'm compiling a lot under Slackware ARM on very limited RAM (512MB-1GB) on Raspberry boards and by setting the swappiness on 1 I am protecting the SDCards. Doing this for some time now and never had anything written in the actual swap partition until the whole available RAM was exhausted, very rarely and mostly due to my mistakes. zswap will create some CPU overhead for the compression and finally will also write in the swap if the available RAM will get entirely used.
I couldn't find any better references ATM but Wiki (hope they're not wrong about zram&zswap):
- swappiness
https://en.wikipedia.org/wiki/Swappiness
- on zswap & zram
https://en.wikipedia.org/wiki/Zswap
https://en.wikipedia.org/wiki/Zram
"When used as a compressed swap space, zram is similar to zswap, which is not a general-purpose RAM disk, but rather an in-kernel compressed cache for swap pages. However, unlike zswap, zram cannot use a hard disk as a backing store, i.e. it cannot move less-frequently used pages to disk. On the other hand, zswap requires a backing store, while zram does not."
 
Old 09-06-2018, 02:55 PM   #2067
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Quote:
Originally Posted by ivandi View Post
Another 2>/dev/null. In rc.cpufreq. /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver doesn't exist in qemu VM.

Code:
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default if ondemand
# is requested on these machines):
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2>/dev/null)" = "intel_pstate" ]; then
  SCALING_GOVERNOR="performance"
fi

Cheers
I missed this one and only noticed the changes in the changelog today. I was proposing some more changes in the thread where the intel_pstate driver limitations and script changes (performance governor) were discussed.
https://www.linuxquestions.org/quest...ml#post5898109
I'm not insisting on those changes as I usually fix things for myself, but I believe the actual script is still not optimal and maybe I should use this thread for my points.
- the sentence between the brackets is wrong and should be rewritten/removed, intel_pstate does not recognize ondemand as it is not supported and falls to its default powersave.
Code:
(which is the default if ondemand
# is requested on these machines):
- I proposed to allow the user to change/override the governor from within the rc.cpufreq script, as it was before, mainly because it's in this script where the alternatives are defined

Here is my proposal, containing ivandi's update, all changes highlighted in bold:
Code:
#If you want to manually choose a governor, pick one from above and provide it to the next line.
#Please note that the intel_pstate driver supports only the powersave and performance governors.
SCALING_GOVERNOR=
# For CPUs using intel_pstate, always use the performance governor. This also
# provides power savings on Intel processors while avoiding the ramp-up lag
# present when using the powersave governor (which is the default governor)
if [ -z "$SCALING_GOVERNOR" ]; then
if [ "$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2>/dev/null)" = "intel_pstate" ]; then
   SCALING_GOVERNOR="performance"
 else
   #Set the default governor as ondemand 
   SCALING_GOVERNOR="ondemand"
 fi
fi
 
1 members found this post helpful.
Old 09-06-2018, 06:48 PM   #2068
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Darth Vader View Post
Just to remember that not long time ago I proposed two solutions for improving the handling of kernels - as in keeping the previous kernels alive:

1. To use in the kernel packages the concept of "incoming" folder to store the essential files (and moving them from the sight of removepkg), then them to be moved on final place by post-install script.

This proposal was refused because it complicate the life of our honorable Gurus, who eventually should remove in a manual way those files.

2. To modify the upgradepkg to actively refuse to upgrade the "kernel-X" packages, and just to install them. A small change on upgradepkg with advantage that later the user can uninstall the old kernel packages with "removepkg"

This proposal was refused by our BDFL, as it being out of scope of "upgradepkg" for now and ever.
slackroll does it this way:
Quote:
When kernel packages have pending upgrades, you can use two operations created specifically to handle the situation. kernel-upgrade will install the new kernel packages using installpkg instead of upgradepkg and then help you configure your boot loader for the new kernel. This means that, for a small time period, you will have two versions of the kernel packages installed. After a successful reboot to the new kernel, you can use the kernel-clean operation to remove the previous versions of those packages.
 
1 members found this post helpful.
Old 09-06-2018, 07:22 PM   #2069
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by orbea View Post
Just a thought, but maybe it would be better if rc.local.template was installed instead of rc.local.new and users would simply copy it once instead of remove rc.local.new everytime?
Great suggestion.
 
1 members found this post helpful.
Old 09-07-2018, 02:54 AM   #2070
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
slackroll does it this way:
And that shows 2 things:

(1) It can be done in a third party tool, so there's no need to do it in the core tools.

(2) Reasonable people [1] can prefer to do it a different way [2], so there's a need not to do it in the core tools.

[1] me
[2] have a permanent emergency kernel that is unlisted in /var/log/packages, instead of the "use installpkg" idea, which I personally consider to be, at best, distasteful.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration