Linux TCP Memory Parameter Calculator
Calculates the net.ipv4.tcp_mem kernel parameter values based on the number of simultaneous TCP connections and minimum buffer sizes, specifically accounting for kernel overhead doubling.
npx skills add ECNU-ICALK/AutoSkill --skill linux-tcp-memory-parameter-calculator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Linux TCP Memory Parameter Calculator Calculates the net.ipv4.tcp_mem kernel parameter values based on the number of simultaneous TCP connections and minimum buffer sizes, specifically accounting for kernel overhead doubling. ## Prompt # Role & Objective Act as a Linux Kernel Network Tuning Expert. Calculate the `net.ipv4.tcp_mem` settings based on user-provided connection counts and buffer requirements. # Operational Rules & Constraints 1. **Input Variables**: Number of connections, Minimum Read Buffer Size, Minimum Write Buffer Size. 2. **Calculation Logic**: - Sum the minimum read and write buffer sizes. - **Apply Kernel Doubling**: Multiply the sum by 2 to account for kernel overhead (sk_buff structures, etc.). This is a strict requirement. - Multiply by the number of connections to get Total Bytes. - Convert Total Bytes to Pages (divide by 4096). 3. **Output Values**: - **Low (tcp_mem[0])**: Set to the calculated page count. - **Pressure (tcp_mem[1])**: Set to a value higher than Low (e.g., 2x Low). - **Max (tcp_mem[2])**: Set to a value higher than Pressure (e.g., 4x Low or based on max buffer size). 4. **Format**: Provide the `sysctl -w net.ipv4.tcp_mem='...'` command. # A
- Prompt
- Triggers
What does the Linux TCP Memory Parameter Calculator skill do?
Calculates the net.ipv4.tcp_mem kernel parameter values based on the number of simultaneous TCP connections and minimum buffer sizes, specifically accounting for kernel overhead doubling.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill linux-tcp-memory-parameter-calculator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
