Performance Optimizations
MocaccinoOS Performance Optimizations
MocaccinoOS ships with carefully selected system and network optimizations designed for:
- Desktop responsiveness
- Gaming performance
- Low-latency networking
- Efficient filesystem behavior
Most users do not need to change anything.
- Core optimizations are enabled by default.
- Additional examples are provided for advanced tuning.
- Changes in
/usr/lib/sysctl.d/70-mocaccino.confare overwritten on updates. - To make permanent adjustments, create:
/etc/sysctl.d/99-custom.conf
Default Optimizations (Already Enabled)
The following settings are applied by default.
Network Performance Tweaks
FQ (Fair Queuing) — Reduced Bufferbloat
|
|
Improves packet scheduling and reduces latency spikes under load.
BBR Congestion Control — Low Latency + High Throughput
|
|
BBR improves:
- Latency consistency
- Throughput on modern broadband
- Performance during uploads or downloads
Verify:
|
|
Memory Management Optimizations
Reduce Swap Usage (Desktop Responsiveness)
|
|
Lower swappiness:
- Reduces background swapping
- Keeps active applications in RAM
- Improves gaming smoothness
Optimize Disk Writeback (Reduce Micro-Stutters)
|
|
Linux buffers disk writes in memory (“dirty pages”) before flushing them to disk. These settings:
- Start writeback earlier
- Reduce maximum dirty memory
- Smooth disk I/O
- Improve UI responsiveness
Trade-off: slightly reduced peak sequential write throughput.
Reduce VFS Cache Pressure
|
|
Keeps metadata and directory cache longer, benefiting:
- Gaming workloads
- Development environments
- Large source trees
Filesystem & Process Optimizations
Increase inotify Limits (IDEs, Docker, Game Engines)
|
|
Prevents file monitoring limits from being reached in large projects.
Customizing TCP Buffer Sizes
MocaccinoOS provides example profiles for different workloads.
Warning: Only one profile should be used at a time.
Low Latency (Gaming, Voice Chat, Video Calls)
|
|
Optimized for latency stability over maximum throughput.
High Bandwidth (File Transfers, Streaming, NAS)
|
|
Apply permanently by copying the profile into:
/etc/sysctl.d/99-custom.conf
Reload settings:
|
|
Adjusting vm.max_map_count (Advanced Users)
Default:
|
|
Some applications require higher limits:
- Elasticsearch
- Game engines
- AI / ML workloads
- Certain modern games
Example: Increase to 262144
|
|
Recommended Values:
| Use Case | Value |
|---|---|
| Default Linux | 65530 |
| Elasticsearch / Databases | 262144 |
| High-performance workloads | 1048576+ |
The game DayZ requires 10485761.
How to Apply Changes
After modifying /etc/sysctl.d/99-custom.conf:
|
|
Verify any setting:
|
|
Example:
|
|
FAQ
What happens if I edit /usr/lib/sysctl.d/70-mocaccino.conf?
⚠ Do NOT edit this file. It will be overwritten during system updates. Always use /etc/sysctl.d/99-custom.conf.
How do I restore default settings?
Delete your custom file:
|
|
Summary
✔ MocaccinoOS includes performance optimizations by default
✔ Network, memory, and filesystem tuning are preconfigured for desktop use
✔ Advanced users can override settings safely via /etc/sysctl.d/99-custom.conf
✔ Changes in /usr/lib/sysctl.d/ are not persistent across updates
These defaults are designed to balance performance, stability, and responsiveness for modern desktop systems.