Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40964
b: refs/heads/master
c: 52bf376
h: refs/heads/master
v: v3
  • Loading branch information
John Heffner authored and David S. Miller committed Nov 16, 2006
1 parent c603ddf commit e3a2809
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 337dde798dd1f3e4d4df4e684a0b4355dd65103d
refs/heads/master: 52bf376c63eebe72e862a1a6e713976b038c3f50
7 changes: 4 additions & 3 deletions trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2316,9 +2316,10 @@ void __init tcp_init(void)
sysctl_max_syn_backlog = 128;
}

sysctl_tcp_mem[0] = 768 << order;
sysctl_tcp_mem[1] = 1024 << order;
sysctl_tcp_mem[2] = 1536 << order;
/* Allow no more than 3/4 kernel memory (usually less) allocated to TCP */
sysctl_tcp_mem[0] = (1536 / sizeof (struct inet_bind_hashbucket)) << order;
sysctl_tcp_mem[1] = sysctl_tcp_mem[0] * 4 / 3;
sysctl_tcp_mem[2] = sysctl_tcp_mem[0] * 2;

limit = ((unsigned long)sysctl_tcp_mem[1]) << (PAGE_SHIFT - 7);
max_share = min(4UL*1024*1024, limit);
Expand Down

0 comments on commit e3a2809

Please sign in to comment.