Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
book
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
book
Merge requests
!379
Add the "Benchmarks" section on the "Performance" page
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add the "Benchmarks" section on the "Performance" page
add-benchmarks
into
master
Overview
0
Commits
7
Pipelines
7
Changes
1
Merged
Ribbon
requested to merge
add-benchmarks
into
master
6 months ago
Overview
0
Commits
7
Pipelines
7
Changes
1
Expand
The commands were taken from
this
article and adapted to Redox.
0
0
Merge request reports
Compare
version 2
version 6
0fa80628
6 months ago
version 5
2fd0bb8e
6 months ago
version 4
e0d10ff8
6 months ago
version 3
8ee1601c
6 months ago
version 2
0e486b05
6 months ago
version 1
8cf523c5
6 months ago
master (base)
and
version 3
latest version
7aa1dc9c
7 commits,
6 months ago
version 6
0fa80628
6 commits,
6 months ago
version 5
2fd0bb8e
5 commits,
6 months ago
version 4
e0d10ff8
4 commits,
6 months ago
version 3
8ee1601c
3 commits,
6 months ago
version 2
0e486b05
2 commits,
6 months ago
version 1
8cf523c5
1 commit,
6 months ago
Show latest version
1 file
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/ch09-10-performance.md
+
38
−
1
Options
# Performance
-
[
Kernel Profiling
](
#kernel-profiling
)
-
[
Benchmarks
](
#benchmarks
)
## Kernel Profiling
You can create a flamegraph showing the kernel's most frequent operations, using time-based sampling.
@@ -166,8 +169,42 @@ Then view your flamegraph in a browser.
firefox kernel_flamegraph.svg
```
### Real
h
ardware (untested)
### Real
H
ardware (untested)
-
You need to set
`HARDCODED_CPU_COUNT`
to the number of actual CPU cores - 1, and there must be at least 512 MiB reserved per core.
-
Boot the system, and when you're done profiling, kill
`profiled`
and extract
`/root/profiling.txt`
(Details TBD)
## Benchmarks
This section give some commands to benchmark Redox.
<!--
-
CPU benchmark
TODO: port the sha256sum tool to redox
```
sh
dd
bs
=
1M
count
=
1024
if
=
/scheme/zero |
sha256sum
```
-->
-
RAM benchmark
```
sh
dd
bs
=
1M
count
=
1024
if
=
/scheme/zero
of
=
/scheme/null
```
-
Filesystem read speed benchmark
(Add the
`neverball`
recipe on your filesystem image, you can also install it with the
`sudo pkg install neverball`
command)
```
sh
dd
bs
=
1M
count
=
256
if
=
/usr/games/neverball/neverball
of
=
/scheme/null
conv
=
fdatasync
```
-
Filesystem write speed benchmark
(Add the
`neverball`
recipe on your filesystem image, you can also install it with the
`sudo pkg install neverball`
command)
```
sh
dd
bs
=
1M
count
=
256
if
=
/usr/games/neverball/neverball
of
=
fs_write_speed_bench
conv
=
fdatasync
```
Loading