Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unnecessary kernel modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sun Dec 23, 2018 2:42 pm    Post subject: Unnecessary kernel modules Reply with quote

Here is my lspci -k - https://paste.pound-python.org/show/jVkCPisAxFF2vk3obRfj/

Here is my .config - https://paste.pound-python.org/show/jyLFUMYTyVqLKx26IXM2/

Have I enabled unnecessary modules/drivers? If so, could any kind soul who has the time go through it and tell me what to disable? xD I want my system to be minimal, not having any bloat.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 23, 2018 2:50 pm    Post subject: Reply with quote

Code:
CONFIG_GENTOO_LINUX_INIT_SCRIPT=y
# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set


Didn't you say you run systemd?

For lean kernel there is no easy way. I start with 'make allnoconfig' and then start enabling features and drivers I need. They will tell you do 'make localmodconfig' which probably will help a little but it still will be bloated.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sun Dec 23, 2018 2:58 pm    Post subject: Reply with quote

Jaglover wrote:
Code:
CONFIG_GENTOO_LINUX_INIT_SCRIPT=y
# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set


Didn't you say you run systemd?


Yes I do. I can see it as a flag in emerge --info. I have even been running systemctl successfully.
But it looks like systemd is not enabled in the kernel. Should I recompile it just in case?

Jaglover wrote:
For lean kernel there is no easy way. I start with 'make allnoconfig' and then start enabling features and drivers I need. They will tell you do 'make localmodconfig' which probably will help a little but it still will be bloated.


Oh, I thought doing it with
Code:
genkernel --menuconfig all
might be an option?

Last edited by reikdas on Sun Dec 23, 2018 3:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 23, 2018 3:05 pm    Post subject: Reply with quote

How could your computer possibly know what you have in your mind? For instance networking. Do you want IPv6? Do you want firewall? Do you want bridge? Etc, etc.

You may want to visit our Off The Wall subforum, they will suggest installing a chip in your brain there ... 8)
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Sun Dec 23, 2018 3:08 pm    Post subject: Reply with quote

Jaglover wrote:
How could your computer possibly know what you have in your mind? For instance networking. Do you want IPv6? Do you want firewall? Do you want bridge? Etc, etc.


I said genkernel --menuconfig all with respect to having a base kernel configuration after which I could tweak it with lesser chances of messing stuff up.

Jaglover wrote:
You may want to visit our Off The Wall subforum, they will suggest installing a chip in your brain there ... 8)


I did not suggest that the computer would know what I have in my mind. No need to be rude.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Sun Dec 23, 2018 3:10 pm    Post subject: Reply with quote

Can't take a joke? Lighten up. As I said there is no easy way. You can experiment and keep a backup kernel ready.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44178
Location: 56N 3W

PostPosted: Sun Dec 23, 2018 4:31 pm    Post subject: Reply with quote

reikdas,

You may find kernel configuration file of interest.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14379

PostPosted: Sun Dec 23, 2018 4:50 pm    Post subject: Reply with quote

reikdas wrote:
But it looks like systemd is not enabled in the kernel. Should I recompile it just in case?
systemd is not (yet) a kernel component, though it is many other things. That Kconfig option enables some combination of kernel configuration options (that you could set by hand, if you knew you needed them) and possibly kernel patches (I don't know if this is done, but it could be), both with the intent that systemd work with minimal additional user intervention beyond setting that flag. If there are no kernel patches enabled, then you can ignore that Kconfig option and instead set explicitly all the things that systemd requires. That is more work for you, more work for whoever documents the requirements, and maybe more work for the support organization (forums / IRC) burdened by users who don't set the required flags, then need help fixing the results. Bundling those requirements into a centrally managed Kconfig option is a convenience to users, since now you don't need to track what settings systemd needs, and any future requirements will be picked up automatically when the Gentoo kernel maintainer adjusts the meaning of that flag. If your system works acceptably without that option, then I see no reason for you to build a new kernel just to change that option. You might want to flip that option next time you rebuild for a kernel upgrade, just so that any as yet undiscovered omissions will be corrected.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44178
Location: 56N 3W

PostPosted: Sun Dec 23, 2018 5:00 pm    Post subject: Reply with quote

Team,

Heres what GENTOO_LINUX_INIT_SYSTEMD does.
Notice I have it set off but I'm old and cynical and like to be in control of my kernel.

Code:
  │ Symbol: GENTOO_LINUX_INIT_SYSTEMD [=n]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
  │ Type  : bool   
  │ Prompt: systemd
  │   Location:   
  │ (1) -> Gentoo Linux   
  │       -> Support for init systems, system and service managers   
  │   Defined at distro/Kconfig:94           
  │   Depends on: GENTOO_LINUX [=n] && GENTOO_LINUX_UDEV [=n]     
  │   Selects: AUTOFS4_FS [=n] && BLK_DEV_BSG [=y] && CGROUPS [=y] && CHECKPOINT_RESTORE [=n] && CRYPTO_HMAC [=y] && CRYPTO_SHA256 [=y] && CRYPTO_USER_API_HASH [=n] && DEVPTS_MULTIPLE_INSTANCES && DMIID [=y] && EPOLL [=y] && FANOTIFY [=y] && FHANDLE [=n] && INOTIFY_USER [=y] && IPV6 [=y] && NET [=y] && NET_NS [=y] && PROC_FS [=y] && SECCOMP [=y] && SECCOMP_FILTER [=y] && SIGNALFD [=y] && SYSFS [=y] && TIMERFD [=y] && TMPFS_POSIX_ACL [=y] && TMPFS_XATTR [=y] && ANON_INODES [=y] && BLOCK [=y] && EVENTFD [=y] && FSNOTIFY [=y] && INET [=y] && NLATTR [=y]             │ 
  │   


Its hidden unless the Depends on: is true.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
reikdas
Apprentice
Apprentice


Joined: 27 Nov 2018
Posts: 238

PostPosted: Mon Dec 24, 2018 11:39 am    Post subject: Reply with quote

I noticed that the lm_sensors package checks for certain hardware monitoring drivers using sensors-detect. Would it be safe to assume that those which return no, if enabled on the kernel should(are safe to) be removed?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44178
Location: 56N 3W

PostPosted: Mon Dec 24, 2018 11:42 am    Post subject: Reply with quote

reikdas,

That's correct.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum