The package rpms/rust-scx_layered.git has added or updated architecture specific content
in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-scx_layered.git/commit/?id=e....
Change:
+ExcludeArch: %{ix86}
Thanks.
Full change:
============
commit ebaa89699982d3c5d07ccc569d3653d4ceb6fd07
Author: Jordan Rome <jordalgo(a)fedoraproject.org>
Date: Sat Jan 20 16:26:32 2024 -0500
Added sources, spec file, and rust2rpm.toml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b6acf52
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/scx_layered-0.0.4.crate
diff --git a/README.md b/README.md
index 643396a..36ac215 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,33 @@
# rust-scx_layered
-The rust-scx_layered package
+This is a single user-defined scheduler used within
[
sched_ext](https://github.com/sched-ext/scx/tree/main), which is a Linux kernel feature
which enables implementing kernel thread schedulers in BPF and dynamically loading them.
[Read more about
sched_ext](https://github.com/sched-ext/scx/tree/main).
+
+## Overview
+
+A highly configurable multi-layer BPF / user space hybrid scheduler.
+
+scx_layered allows the user to classify tasks into multiple layers, and apply
+different scheduling policies to those layers. For example, a layer could be
+created of all tasks that are part of the `user.slice` cgroup slice, and a
+policy could be specified that ensures that the layer is given at least 80% CPU
+utilization for some subset of CPUs on the system.
+
+## Typical Use Case
+
+scx_layered is designed to be highly customizable, and can be targeted for
+specific applications. For example, if you had a high-priority service that
+required priority access to all but 1 physical core to ensure acceptable p99
+latencies, you could specify that the service would get priority access to all
+but 1 core on the system. If that service ends up not utilizing all of those
+cores, they could be used by other layers until they're needed.
+
+## Production Ready?
+
+Yes. If tuned correctly, scx_layered should be performant across various CPU
+architectures and workloads.
+
+That said, you may run into an issue with infeasible weights, where a task with
+a very high weight may cause the scheduler to incorrectly leave cores idle
+because it thinks they're necessary to accommodate the compute for a single
+task. This can also happen in CFS, and should soon be addressed for
+scx_layered.
diff --git a/rust-scx_layered.spec b/rust-scx_layered.spec
new file mode 100644
index 0000000..958756a
--- /dev/null
+++ b/rust-scx_layered.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 25
+%bcond_without check
+
+%global crate scx_layered
+
+Name: rust-scx_layered
+Version: 0.0.4
+Release: %autorelease
+Summary: Configurable multi-layer BPF / user space hybrid scheduler
+
+License: GPL-2.0-only
+URL:
https://crates.io/crates/scx_layered
+Source: %{crates_source}
+
+BuildRequires: cargo-rpm-macros >= 24
+ExcludeArch: %{ix86}
+
+%global _description %{expand:
+A highly configurable multi-layer BPF / user space hybrid scheduler
+used within sched_ext, which is a Linux kernel feature which enables
+implementing kernel thread schedulers in BPF and dynamically loading
+them.
https://github.com/sched-ext/scx/tree/main}
+
+%description %{_description}
+
+%package -n %{crate}
+Summary: %{summary}
+# (MIT OR Apache-2.0) AND Unicode-DFS-2016
+# Apache-2.0
+# Apache-2.0 OR BSL-1.0
+# Apache-2.0 OR MIT
+# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
+# BSD-2-Clause
+# BSD-3-Clause
+# BSD-3-Clause OR MIT OR Apache-2.0
+# GPL-2.0-only
+# ISC
+# LGPL-2.1-only OR BSD-2-Clause
+# MIT
+# MIT OR Apache-2.0
+# Unlicense OR MIT
+# Zlib
+License: GPL-2.0-only AND (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Apache-2.0
AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND
BSD-2-Clause AND BSD-3-Clause AND (BSD-3-Clause OR MIT OR Apache-2.0) AND ISC AND
(LGPL-2.1-only OR BSD-2-Clause) AND MIT AND (Unlicense OR MIT) AND Zlib
+# LICENSE.dependencies contains a full license breakdown
+
+%description -n %{crate} %{_description}
+
+%files -n %{crate}
+%license LICENSE
+%license LICENSE.dependencies
+%doc README.md
+%{_bindir}/scx_layered
+
+%prep
+%autosetup -n %{crate}-%{version} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+%{cargo_license_summary}
+%{cargo_license} > LICENSE.dependencies
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..f0cc2ab
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,7 @@
+[package]
+summary = "Configurable multi-layer BPF / user space hybrid scheduler"
+description = """
+A highly configurable multi-layer BPF / user space hybrid scheduler
+used within sched_ext, which is a Linux kernel feature which enables
+implementing kernel thread schedulers in BPF and dynamically loading
+them.
https://github.com/sched-ext/scx/tree/main"""
diff --git a/sources b/sources
new file mode 100644
index 0000000..e2dfcd5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (scx_layered-0.0.4.crate) =
f3dc8b21a996e4f89b51d1b183df559f5c960cd453469eb07fc0b51e0b531b5f85aea8bea80043962c7a8af0859b3f0de08eb7f55799a7dd99ff1dbad91de3f7