Bug 27160 - Processing /etc/profile.d/lang.sh at autologin is time consuming / slow (~10 seconds)
Summary: Processing /etc/profile.d/lang.sh at autologin is time consuming / slow (~10 ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Base system maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-21 13:39 CEST by Shlomi Fish
Modified: 2020-08-24 21:15 CEST (History)
1 user (show)

See Also:
Source RPM: initscripts-9.78-27.mga8.src.rpm
CVE:
Status comment:


Attachments
modified zshrc with profiling logging (2.31 KB, text/plain)
2020-08-21 13:40 CEST, Shlomi Fish
Details

Description Shlomi Fish 2020-08-21 13:39:05 CEST
Description of problem:

Processing /etc/profile.d/lang.sh at autologin is time consuming / slow (~10 seconds) . I profiled it using the attached /etc/zshrc . Using this instead is much faster:

https://github.com/shlomif/shlomif-computer-settings/blob/975559439bf1e24e1feb38b5fa44353cab323a58/shlomif-settings/Bash/bashrc/bashrc.d/my-lang.bash

<<<
eval "$(perl -0777 -pE 's/[\r\n]/ /g;s#\A#export #' < "$HOME/.i18n")"
>>>

I am using this setup for vc autologin:

https://wiki.archlinux.org/index.php/Getty

Note that zsh loads my bashrc.d/*.bash files too.
Comment 1 Shlomi Fish 2020-08-21 13:40:14 CEST
Created attachment 11816 [details]
modified zshrc with profiling logging
Comment 2 Olav Vitters 2020-08-21 13:42:21 CEST
What's the output of the profiling?

CC: (none) => olav

Comment 3 Shlomi Fish 2020-08-21 14:39:00 CEST
(In reply to Olav Vitters from comment #2)
> What's the output of the profiling?

it says that sourcing "/etc/profile.d/lang.sh" takes about 10seconds while all other operations take a few milliseconds at worst.
Comment 4 Lewis Smith 2020-08-23 21:16:00 CEST
Shlomi, can you say whether this has always been the case, or is it new with Mageia 8? Also, does it just happen with autologin, or any login?

Assigning this to basesystem, no evident maintainer.

Assignee: bugsquad => basesystem
CC: (none) => lewyssmith

Comment 5 Shlomi Fish 2020-08-24 09:07:08 CEST
(In reply to Lewis Smith from comment #4)
> Shlomi, can you say whether this has always been the case, or is it new with
> Mageia 8?

I do not recall it happening in mageia 7 or before.

>Also, does it just happen with autologin, or any login?
> 

This will require disabling autologin.

> Assigning this to basesystem, no evident maintainer.
Lewis Smith 2020-08-24 21:15:07 CEST

CC: lewyssmith => (none)


Note You need to log in before you can comment on or make changes to this bug.