Bug 10991
Summary: | linux 2.6.25 (32 bits): tcp_mem calculation wrong ? | ||
---|---|---|---|
Product: | Networking | Reporter: | Miquel van Smoorenburg (miquels) |
Component: | IPV4 | Assignee: | Stephen Hemminger (stephen) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | bunk |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25.7 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | tcp.c: calculate tcp_mem based on low memory instead of all memory |
Description
Miquel van Smoorenburg
2008-06-26 14:56:23 UTC
Created attachment 16643 [details]
tcp.c: calculate tcp_mem based on low memory instead of all memory
Somwehere between 2.6.11.12 and 2.6.25, the calculation method of
the tcp_mem array was changed. Now 1609344 pages is 6.5 GB,
and that will ofcourse never fit in x86_32's low memory ..
I am not quite sure what the correct solution is here, I think
something like the patch below.
Alternatively we could use the existing calculation but limit 'limit'
to 3/4 of (totalram_pages - totalhigh_pages) if (totalhigh_pages > 0) ?
Patch has been added to -mm |