[OS-BUILD PATCH] Redhat: enable Kfence on production servers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Nico Pache <npache@xxxxxxxxxx>

Redhat: enable Kfence on production servers

Kfence allows for a low overhead memory error detection system that can
be deployed in production. By enabling this feature we allow for better
and quicker bug reporting/fixing.

the Kscale team has done some performance testing and have concluded
there is no noticable performance impact.

Enable for ELN and remove the Fedora specific config definition.
We may want to consider enabling CONFIG_KFENCE_DEFERRABLE on fedora...
This config allows the CPU wakup to be deferred, which is more ideal for
power-constrianted systems which is more likely to be the case on Fedora.

Signed-off-by: Nico Pache npache@xxxxxxxxxx

diff --git a/redhat/configs/common/debug/CONFIG_KFENCE b/redhat/configs/common/debug/CONFIG_KFENCE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/debug/CONFIG_KFENCE
@@ -0,0 +1 @@
+# CONFIG_KFENCE is not set
diff --git a/redhat/configs/common/generic/CONFIG_KFENCE b/redhat/configs/common/generic/CONFIG_KFENCE
index blahblah..blahblah 100644
--- a/redhat/configs/common/generic/CONFIG_KFENCE
+++ b/redhat/configs/common/generic/CONFIG_KFENCE
@@ -1 +1 @@
-# CONFIG_KFENCE is not set
+CONFIG_KFENCE=y
diff --git a/redhat/configs/common/generic/CONFIG_KFENCE_DEFERRABLE b/redhat/configs/common/generic/CONFIG_KFENCE_DEFERRABLE
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_KFENCE_DEFERRABLE
@@ -0,0 +1 @@
+# CONFIG_KFENCE_DEFERRABLE is not set
diff --git a/redhat/configs/fedora/generic/CONFIG_KFENCE_NUM_OBJECTS b/redhat/configs/common/generic/CONFIG_KFENCE_NUM_OBJECTS
rename from redhat/configs/fedora/generic/CONFIG_KFENCE_NUM_OBJECTS
rename to redhat/configs/common/generic/CONFIG_KFENCE_NUM_OBJECTS
index blahblah..blahblah 100644
--- a/redhat/configs/fedora/generic/CONFIG_KFENCE_NUM_OBJECTS
+++ b/redhat/configs/common/generic/CONFIG_KFENCE_NUM_OBJECTS
diff --git a/redhat/configs/common/generic/CONFIG_KFENCE_SAMPLE_INTERVAL b/redhat/configs/common/generic/CONFIG_KFENCE_SAMPLE_INTERVAL
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_KFENCE_SAMPLE_INTERVAL
@@ -0,0 +1 @@
+CONFIG_KFENCE_SAMPLE_INTERVAL=100
diff --git a/redhat/configs/common/generic/CONFIG_KFENCE_STATIC_KEYS b/redhat/configs/common/generic/CONFIG_KFENCE_STATIC_KEYS
new file mode 100644
index blahblah..blahblah 100644
--- /dev/null
+++ b/redhat/configs/common/generic/CONFIG_KFENCE_STATIC_KEYS
@@ -0,0 +1 @@
+CONFIG_KFENCE_STATIC_KEYS=y
diff --git a/redhat/configs/fedora/generic/CONFIG_KFENCE b/redhat/configs/fedora/generic/CONFIG_KFENCE
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/CONFIG_KFENCE
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_KFENCE=y
diff --git a/redhat/configs/fedora/generic/CONFIG_KFENCE_SAMPLE_INTERVAL b/redhat/configs/fedora/generic/CONFIG_KFENCE_SAMPLE_INTERVAL
deleted file mode 100644
index blahblah..blahblah 0
--- a/redhat/configs/fedora/generic/CONFIG_KFENCE_SAMPLE_INTERVAL
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_KFENCE_SAMPLE_INTERVAL=0

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1748
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux