The package rpms/rust-scx_rustland.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_rustland.git/commit/?id=....
Change:
+ExcludeArch: %{ix86}
Thanks.
Full change:
============
commit fd3baef6b2d2235737eeac3e89f0a20c1de535a1
Author: Jordan Rome <jordalgo(a)fedoraproject.org>
Date: Sat Jan 20 18:15:13 2024 -0500
Added sources, spec file, and rust2rpm.toml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cc89407
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/scx_rustland-0.0.2.crate
diff --git a/README.md b/README.md
index ede4810..20320f9 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,47 @@
# rust-scx_rustland
-The rust-scx_rustland 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
+
+scx_rustland is made of a BPF component (dispatcher) that implements the low
+level sched-ext functionalities and a user-space counterpart (scheduler),
+written in Rust, that implements the actual scheduling policy.
+
+The BPF dispatcher is completely agnostic of the particular scheduling policy
+implemented in user-space. For this reason developers that are willing to use
+this scheduler to experiment scheduling policies should be able to simply
+modify the Rust component, without having to deal with any internal kernel /
+BPF details.
+
+## Typical Use Case
+
+scx_rustland is designed to be "easy to read" template that can be used by any
+developer to quickly experiment more complex scheduling policies, that can be
+fully implemented in Rust.
+
+## Production Ready?
+
+Not quite. For production scenarios, other schedulers are likely to exhibit
+better performance, as offloading all scheduling decisions to user-space comes
+with a certain cost.
+
+However, a scheduler entirely implemented in user-space holds the potential for
+seamless integration with sophisticated libraries, tracing tools, external
+services (e.g., AI), etc. Hence, there might be situations where the benefits
+outweigh the overhead, justifying the use of this scheduler in a production
+environment.
+
+## Demo
+
+[scx_rustland-terraria](https://github.com/sched-ext/scx/assets/1051723/42ec3bf2-9f1f-4403-80ab-bf5d66b7c2d5)
+
+For this demo the scheduler includes an extra patch to impose a "time slice
+penalty" on new short-lived tasks. While this approach might not be suitable
+for general usage, it can yield significant advantages in this specific
+scenario.
+
+The key takeaway is to demonstrate the ease and safety of conducting
+experiments like this, as we operate in user-space, and we can accomplish
+everything simply by modifying the Rust code, that is completely abstracted
+from the underlying BPF/kernel internal details.
diff --git a/rust-scx_rustland.spec b/rust-scx_rustland.spec
new file mode 100644
index 0000000..84258da
--- /dev/null
+++ b/rust-scx_rustland.spec
@@ -0,0 +1,78 @@
+# Generated by rust2rpm 25
+%bcond_without check
+
+%global crate scx_rustland
+
+Name: rust-scx_rustland
+Version: 0.0.2
+Release: %autorelease
+Summary: A simple user-space scheduler written in Rust
+
+License: GPL-2.0-only
+URL:
https://crates.io/crates/scx_rustland
+Source: %{crates_source}
+
+BuildRequires: cargo-rpm-macros >= 24
+ExcludeArch: %{ix86}
+
+%global _description %{expand:
+A BPF component (dispatcher) that implements the low level
+sched-ext functionalities and a user-space counterpart (scheduler),
+written in Rust, that implements the actual scheduling policy.
+This is 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_rustland
+
+%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..39ad0d9
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,10 @@
+[package]
+summary = "A simple user-space scheduler written in Rust"
+description = """
+A BPF component (dispatcher) that implements the low level
+sched-ext functionalities and a user-space counterpart (scheduler),
+written in Rust, that implements the actual scheduling policy.
+This is 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..2959fd5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (scx_rustland-0.0.2.crate) =
3cb988dd3a7ee6b5cbed2ce5e0f9d9145dc2636eaebce255b6c4109ce3f74fda230531ceb6175e89876df1f86912d95da73804b50910325675a9b700e9d63830