* [BUG report] net.core.rmem_default is larger than net.core.rmem_max
@ 2012-04-27 9:31 Shan Wei
2012-06-11 2:06 ` Shan Wei
0 siblings, 1 reply; 2+ messages in thread
From: Shan Wei @ 2012-04-27 9:31 UTC (permalink / raw)
To: Eric Dumazet; +Cc: NetDev
It's unconventional that "default" value is greater than "max". :-(
net.core.rmem_max = 131071
net.core.rmem_default = 229376
net.core.wmem_max = 131071
net.core.wmem_default = 229376
And bisect the code to find the following commit caused this phenomenon.
This patch increase SK_WMEM_MAX and SK_RMEM_MAX which are used to
initialize them.
But rmem_max and wmem_max value are still be covered according the RAM size
in sk_init().
87fb4b7b533073eeeaed0b6bf7c2328995f6c075 is the first bad commit
commit 87fb4b7b533073eeeaed0b6bf7c2328995f6c075
Author: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu Oct 13 07:28:54 2011 +0000
net: more accurate skb truesize
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG report] net.core.rmem_default is larger than net.core.rmem_max
2012-04-27 9:31 [BUG report] net.core.rmem_default is larger than net.core.rmem_max Shan Wei
@ 2012-06-11 2:06 ` Shan Wei
0 siblings, 0 replies; 2+ messages in thread
From: Shan Wei @ 2012-06-11 2:06 UTC (permalink / raw)
To: Eric Dumazet; +Cc: NetDev
Shan Wei said, at 2012/4/27 17:31:
>
> It's unconventional that "default" value is greater than "max". :-(
>
> net.core.rmem_max = 131071
> net.core.rmem_default = 229376
ping......
I have no idea to fix this.
Maybe add rmem_max value to be greater than rmem_default?
Eric, can you look into this?
>
> net.core.wmem_max = 131071
> net.core.wmem_default = 229376
>
>
> And bisect the code to find the following commit caused this phenomenon.
> This patch increase SK_WMEM_MAX and SK_RMEM_MAX which are used to
> initialize them.
> But rmem_max and wmem_max value are still be covered according the RAM size
> in sk_init().
>
> 87fb4b7b533073eeeaed0b6bf7c2328995f6c075 is the first bad commit
> commit 87fb4b7b533073eeeaed0b6bf7c2328995f6c075
> Author: Eric Dumazet <eric.dumazet@gmail.com>
> Date: Thu Oct 13 07:28:54 2011 +0000
>
> net: more accurate skb truesize
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-11 2:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 9:31 [BUG report] net.core.rmem_default is larger than net.core.rmem_max Shan Wei
2012-06-11 2:06 ` Shan Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).