Editing
Useful Development Info
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Tips for reducing memory and CPU usage == * Reduce the systemd-journald max memory usage by editing <code>/etc/systemd/journald.conf</code>, setting <code>Storage=volatile</code> and <code>RuntimeMaxUse=500K</code>. Without this, it uses around '''5MB''' * Disable <code>systemd-userdbd</code> with <code>systemctl disable --now systemd-userdbd</code>, you probably don't need this. * Switch to an alternative network manager, or none at all if you want an offline experience. While I ship NetworkManager by default, due to it's ease of setup, it is rather bulky, using about '''9MB'''. Alternative networking managers may be more lightweight. * Replace <code>/bin/sh</code>'s symlink to <code>bash</code> with one to <code>dash</code>. Since <code>/bin/sh</code> is meant to be the POSIX conformant shell, applications theoretically shouldn't rely on bashisms to be present. Replacing it with <code>dash</code> should free up a variable amount of RAM, depending on how many shell instances are running. To do this, <code>pacman -S dash</code> to install it, then, as root, <code>ln -sf dash /bin/sh</code> * Tips specific to running a graphical environment ** Disable <code>at-spi-dbus-bus</code>, it's a systemd user service. Unless you're using accessibility features, this is just sitting here sucking up 10MB. Run <code>systemctl --user mask at-spi-dbus-bus</code>. ** Also, set the <code>GTK_ALLY</code> environment variable to <code>none</code>. This depends on how your DE/WM handles environment variables. If running <code>startx</code> from a terminal, where <code>~/.xinitrc</code> is parsed, simply add <code>export GTK_ALLY=none</code> at the top. ** Reboot to apply the changes * If using <code>pipewire</code> + <code>pipewire-pulse</code>, DON'T! They're significantly slower than standard <code>pulseaudio</code>, which works just as well on the Wii. '''Note that these do cause the loss of some important functionality''' * Tips that will break things ** '''If you do this, pipewire will stop working.''' Disable <code>wireplumber</code>, run the following, <code>systemctl --user disable --now wireplumber</code>, and <code>systemctl --user mask wireplumber</code>. Without this, it uses '''10MB'''.
Summary:
Please note that all contributions to Wii-Linux Wiki are considered to be released under the CC BY-SA 4.0 (see
Wii-Linux Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Wii-Linux Discord Server
Installation Guide
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information