LinuxQuestions.org
Help answer threads with 0 replies.
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 10-20-2021, 08:21 AM   #8701
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019

Quote:
Originally Posted by Daedra View Post
According to this post, it looks like it does default to full if nothing is specified at boot time.
Which seems at odds with the quote from the help text LC quoted:
Quote:
This option allows to define the preemption model on the kernel command line parameter and thus override the default preemption model defined during compile time.
... which would imply that if you have (as slackware does)
Code:
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
then it would default to voluntary but one can override it.

Much of the reading on this seems unclear and contradictory.

Last edited by GazL; 10-20-2021 at 08:22 AM. Reason: fixed quote tags
 
Old 10-20-2021, 08:31 AM   #8702
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It defaults to full when no option is specified explicitly:

https://git.kernel.org/pub/scm/linux...d/core.c#n6594

If you define a preemption model, this is the function that changes the mode and prints the line in the kernel log:

https://git.kernel.org/pub/scm/linux...d/core.c#n6610
 
1 members found this post helpful.
Old 10-20-2021, 08:38 AM   #8703
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
Quote:
Originally Posted by franzen View Post
Happy birthday Pat!


Thanks to Daedra for the preempt links, i've now running a preempt kernel
which i can change at boottime to none/voluntary/full at runtime.
Code:
> uname -a
Linux xxx 5.14.13 #1 SMP PREEMPT Wed Oct 20 06:15:56 CEST
2021 x86_64 Intel(R) Core(TM)2 Duo CPU     T6670  @ 2.20GHz GenuineIntel
GNU/Linux
lilo.conf
Code:
append=" preempt=voluntary "
reboot
Code:
# dmesg | grep Preempt:
[    0.060149] Dynamic Preempt: voluntary
lilo.conf
Code:
append=" preempt=full "
reboot
Code:
# dmesg | grep Preempt:
[    0.059655] Dynamic Preempt: full
If there's no need for preemption, this kernelconfig may be still more
benefitical than the one on -current, e.g. set preempt=none on servers.

Thanks for the config. It's nice to see someone has tested this. I plan on giving it a go this weekend when I have more time.
 
Old 10-20-2021, 08:56 AM   #8704
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
Quote:
Originally Posted by GazL View Post
Which seems at odds with the quote from the help text LC quoted:

... which would imply that if you have (as slackware does)
Code:
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_HAVE_PREEMPT_DYNAMIC=y
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_DRM_I915_PREEMPT_TIMEOUT=640
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
then it would default to voluntary but one can override it.

Much of the reading on this seems unclear and contradictory.
The way I am understanding it is if you set CONFIG_PREEMPT_VOLUNTARY=y then that would be static and voluntary is the only option. In order for dynamic to work the arch has to support dynamic which can be checked in the config, the line would be CONFIG_HAVE_PREEMPT_DYNAMIC. Then you have to change CONFIG_PREEMPT_VOLUNTARY=y to CONFIG_PREEMPT=y for dynamic to even be an option.

Code:
On Mon, Apr 26, 2021 at 3:31 AM Chris Murphy <lists(a)colorremedies.com&gt;
wrote:

...

CONFIG_HAVE_PREEMPT_DYNAMIC only says the architecture supports the
feature. This is hard-coded by arch/x86/Kconfig.
To actually enable the feature, CONFIG_PREEMPT=y would have to be set. The
combination of CONFIG_PREEMPT and CONFIG_HAVE_PREEMPT_DYNAMIC then selects
CONFIG_PREEMPT_DYNAMIC. See kernel/Kconfig.preempt.

Michal

Last edited by Daedra; 10-20-2021 at 08:58 AM.
 
2 members found this post helpful.
Old 10-20-2021, 09:31 AM   #8705
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Yes, you're right daedra. I was under a misconception that CONFIG_DYNAMIC_PREEMPT was a separate option one could select in addition to the 3 normal choices, but that's not how they've done it.
 
Old 10-20-2021, 09:35 AM   #8706
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
I do find it somewhat odd that the kernel devs decided to make full the default if nothing is specified. It seems that voluntary would of been a saner default since its a good one size fits all solution.
 
1 members found this post helpful.
Old 10-20-2021, 12:32 PM   #8707
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,214

Rep: Reputation: 297Reputation: 297Reputation: 297
vte-0.66.0
https://download.gnome.org/sources/v...-0.66.0.tar.xz

Last edited by saxa; 10-20-2021 at 12:33 PM. Reason: Ups, sorry I see its already in.
 
Old 10-20-2021, 01:08 PM   #8708
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
LVM 2.03.14
Code:
Version 2.03.14 - 20th October 2021
===================================
- Device scanning is skipping directories on different filesystems.
- Print info message with too many or too large archived files.
- Reduce metadata readings during scanning phase.
- Optimize computation of crc32 check sum with multiple PVs.
- Enhance recover path on cache creation failure.
- Filter out unsupported MQ/SMQ cache policy setting.
- Fix memleak in mpath filter.
- Support newer location for VDO statistics.
- Add support for VDO async-unsafe write policy.
- Improve lvm_import_vdo script.
- Support VDO LV with lvcreate -ky.
- Fix lvconvert for VDO LV bigger then 2T.
- Create VDO LVs automatically without zeroing.
- Rename vdoimport to lvm_import_vdo.
https://sourceware.org/pub/lvm2/LVM2.2.03.14.tgz
 
Old 10-20-2021, 01:24 PM   #8709
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by Roman Dyaba View Post
i was do build linux-5.14.13-realtime for my system with make CC=clang ,
but developers later let have well through with build linux-5.15 , because it tune for CLANG
compilator, i.e. via NVIDIA and other com yesterday switch to LLVM for crossplatform.
CLang is part of GCC community too.

in morning today i was do build linux-5.14.13-realtime kernel with make CC=clang, and it work fine !
it was use LLVM-13.0, from Slackware-current 64-bit updates, what i see in changelog.

This changes now open to Cross-Platform for standard Slackware.

https://llvm.org
"Clang is clearly doing a *HORRIBLE* job with stack usage." - L. Torvalds - Sept. 2021
 
3 members found this post helpful.
Old 10-20-2021, 03:13 PM   #8710
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,511

Rep: Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475Reputation: 8475
Quote:
Originally Posted by marav View Post
LVM 2.03.14
Code:
Version 2.03.14 - 20th October 2021
===================================
- Device scanning is skipping directories on different filesystems.
- Print info message with too many or too large archived files.
- Reduce metadata readings during scanning phase.
- Optimize computation of crc32 check sum with multiple PVs.
- Enhance recover path on cache creation failure.
- Filter out unsupported MQ/SMQ cache policy setting.
- Fix memleak in mpath filter.
- Support newer location for VDO statistics.
- Add support for VDO async-unsafe write policy.
- Improve lvm_import_vdo script.
- Support VDO LV with lvcreate -ky.
- Fix lvconvert for VDO LV bigger then 2T.
- Create VDO LVs automatically without zeroing.
- Rename vdoimport to lvm_import_vdo.
https://sourceware.org/pub/lvm2/LVM2.2.03.14.tgz
I think they forgot to mention the changes to the udev rules that seem to be trying to call out to systemd-run.
 
6 members found this post helpful.
Old 10-20-2021, 04:01 PM   #8711
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by volkerdi View Post
I think they forgot to mention the changes to the udev rules that seem to be trying to call out to systemd-run.
All part of the game-plan to force the hold-outs to surrender and migrate over I expect.
 
2 members found this post helpful.
Old 10-20-2021, 04:46 PM   #8712
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by volkerdi View Post
I think they forgot to mention the changes to the udev rules that seem to be trying to call out to systemd-run.
Ah, this must be the reason one of my partitions is no longer mounted at boot. I have LVM on top of LUKS on top of a raw partition. After boot I have to manually run
Code:
vgchange -ay --ignorelockingfailure
and then "mount" works.

I separately have a LUKS on top of LVM on top of multiple disks which correctly gets mounted at boot.

Relevant dmesg:
Code:
[   39.637923] udevd[2000]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-fastcryptvg lvm vgchange -aay --nohints fastcryptvg': No such file or directory
I'll try editing /lib/udev/rules.d/69-dm-lvm.rules to remove systemd to see if I can restore previous behavior...
 
Old 10-20-2021, 05:06 PM   #8713
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Changing line 83 of /lib/udev/rules.d/69-dm-lvm.rules from:

Code:
ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="/usr/bin/systemd-run -r --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} lvm vgchange -aay --nohints $env{LVM_VG_NAME_COMPLETE}"
to

Code:
RUN+="/sbin/lvm pvscan --background --cache --activate ay --major $major --minor $minor", ENV{LVM_SCANNED}="1"
Fixes my problem. (That is, my partition is now auto-mounted at boot time again, which stock lvm2-2.03.14 broke.)

These comments from the file (from the previous working version of lvm2) are enlightening:

Code:
# The method for invoking pvscan is selected at build time with the option
# --(enable|disable)-udev-systemd-background-jobs to "configure".
# On modern distributions with recent systemd, it's "systemd_background";
# on others, "direct_pvscan".
GOTO="direct_pvscan"
...
# FIXME: this mode is not used and should be removed.
LABEL="direct_pvscan"
I don't know if my fix is "proper". I just copied the relevant line from the old (lvm2-2.03.13) package.
 
Old 10-20-2021, 05:41 PM   #8714
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
So hold off on updating LVM? Or safe to do so?
 
Old 10-20-2021, 06:26 PM   #8715
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,374

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by volkerdi View Post
I think they forgot to mention the changes to the udev rules that seem to be trying to call out to systemd-run.
it's not the kind of gift you were expecting I guess ...
 
  


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 05:48 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