Skip to content

Conversation

@llnut
Copy link
Contributor

@llnut llnut commented Jan 5, 2026

This PR integrates DofSlim, a memory optimization tool that leverages LD_PRELOAD hooking to dynamically reduce server memory usage. DofSlim replaces the hardcoded client pool size of 1000 with a runtime-configurable value, significantly lowering memory consumption.

The original df_bridge_r and df_channel_r binaries statically allocate memory for 1000 client objects at startup. Even if your actual concurrent connections are far fewer, the program still reserves 1.3 GB of memory, leading to significant resource waste.

How to upgrade

This PR enhances the init.sh script to automatically detect start_bridge.sh and start_channel.sh during startup. It seamlessly deploys updated launch scripts that enable DofSlim support by default. Users require no manual intervention—the entire process is transparent and zero-touch.

Documentation Updates

  1. Updated README.md to include a Troubleshooting section for DofSlim related issues.
  2. Added 清风1031, DofSlim and Sorahk repository links for quick reference.

llnut and others added 6 commits January 5, 2026 11:32
…rver memory usage

- Added CLIENT_POOL_SIZE environment variable to docker run command
- Fixed spelling error from "登陆器" to "登录器" in documentation
- Added description for CLIENT_POOL_SIZE parameter usage
- Format the community section links and add bridge_hook and channel_hook src link
- Add upgrade guidance link to deployment section
- Add "upgrading from old version" section
Updated project overview, client selection, server deployment instructions, and added links for client and gateway downloads.
@1995chen 1995chen merged commit 8ff383b into 1995chen:main Jan 9, 2026
@1995chen
Copy link
Owner

1995chen commented Jan 9, 2026

many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants