Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

sys-kernel: enable BPF_JIT, POWER_SUPPLY, overlayfs options#691

Merged
dongsupark merged 3 commits into
mainfrom
dongsu/kernel-configs-20201117
Nov 18, 2020
Merged

sys-kernel: enable BPF_JIT, POWER_SUPPLY, overlayfs options#691
dongsupark merged 3 commits into
mainfrom
dongsu/kernel-configs-20201117

Conversation

@dongsupark
Copy link
Copy Markdown
Contributor

@dongsupark dongsupark commented Nov 17, 2020

Enable the following kernel configs.

CONFIG_BPF_JIT_ALWAYS_ON enables BPF JIT and removes BPF interpreter to avoid speculative execution of BPF instructions by the interpreter.

CONFIG_POWER_SUPPLY enables power supply class used to represent battery, UPS, AC or DC power supply properties to user-space.
It defines core set of attributes, which should be applicable to most power supplies out there.

CONFIG_OVERLAY_FS_METACOPY, metadata only copy up feature in overlayfs. When turned on, overlayfs will only copy up metadata when a metadata specific operation like chown/chmod is performed.
Full file will be copied up later when file is opened for WRITE operation. More or less like delayed data copy up operation.

CONFIG_OVERLAY_FS_REDIRECT_DIR, which is equivalent to "redirect_dir=on" in the kernel command-line.
When turned on, overlayfs will copy up directory first, before the actual contents.

Fixes flatcar/Flatcar#185
Fixes flatcar/Flatcar#215
Fixes flatcar/Flatcar#170

How to use

./build_packages

Testing done

CI passed http://localhost:9091/job/os/job/manifest/1485/cldsv/

Dongsu Park added 3 commits November 17, 2020 15:01
CONFIG_BPF_JIT_ALWAYS_ON enables BPF JIT and removes BPF interpreter
to avoid speculative execution of BPF instructions by the interpreter.

See also flatcar/Flatcar#185.
CONFIG_POWER_SUPPLY enables power supply class used to represent
battery, UPS, AC or DC power supply properties to user-space.
It defines core set of attributes, which should be applicable to
most power supplies out there.

See also flatcar/Flatcar#215.
Enable CONFIG_OVERLAY_FS_METACOPY, metadata only copy up feature
in overlayfs. When turned on, overlayfs will only copy up metadata
when a metadata specific operation like chown/chmod is performed.
Full file will be copied up later when file is opened for WRITE
operation. More or less like delayed data copy up operation.

Enable CONFIG_OVERLAY_FS_REDIRECT_DIR, which is equivalent to
"redirect_dir=on" in the kernel command-line. When turned on, overlayfs
will copy up directory first, before the actual contents.

See also flatcar/Flatcar#170
@dongsupark
Copy link
Copy Markdown
Contributor Author

CI passed

Copy link
Copy Markdown
Contributor

@sayanchowdhury sayanchowdhury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dongsupark dongsupark merged commit 290b921 into main Nov 18, 2020
@dongsupark dongsupark deleted the dongsu/kernel-configs-20201117 branch November 18, 2020 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

alpha enhancement New feature or request main

Projects

None yet

2 participants