* Still bug-hunting
@ 2005-03-05 17:57 Christian Schmid
2005-03-05 18:29 ` David S. Miller
0 siblings, 1 reply; 10+ messages in thread
From: Christian Schmid @ 2005-03-05 17:57 UTC (permalink / raw)
To: netdev
Hello.
I have found out that the slow-down issue with many sockets is a memory problem now. Not that I do
not have enough but the vm isnt able to reclaim fast-enough. Problem temporarily solved by setting
lower_zone_protection to 1024. Still I wonder why /proc/net/sockstat shows this:
sockets: used 1637
TCP: inuse 1761 orphan 179 tw 3743 alloc 1761 mem 54224
The send-buffer is set to 128 and the rcv-buffer to 16 so theoretically it should be 1637*144=235728
so I assume the buffers are allocated dynamically when they are really needed... I suppose the
slow-down wouldnt appear if the buffers are allocated statically. Is there any way to check this?
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 17:57 Still bug-hunting Christian Schmid
@ 2005-03-05 18:29 ` David S. Miller
[not found] ` <4229FC15.3070408@rapidforum.com>
0 siblings, 1 reply; 10+ messages in thread
From: David S. Miller @ 2005-03-05 18:29 UTC (permalink / raw)
To: Christian Schmid; +Cc: netdev
On Sat, 05 Mar 2005 18:57:00 +0100
Christian Schmid <webmaster@rapidforum.com> wrote:
> I have found out that the slow-down issue with many sockets is a memory problem now.
Thanks for the test case we asked for.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
[not found] ` <20050305104854.45106335.davem@davemloft.net>
@ 2005-03-05 18:54 ` Christian Schmid
2005-03-05 18:57 ` David S. Miller
0 siblings, 1 reply; 10+ messages in thread
From: Christian Schmid @ 2005-03-05 18:54 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
You as an expert should know that this is no one-liner. It is a very complex server with
multiplexing and forking like Apache. I dont feel like writing an apache-like program just for
testing. I hope you understand that I prefered investing my time in acutally searching the bug and
now its found. Now I hope that you can fix it or at least tell me your ideas.
David S. Miller wrote:
> On Sat, 05 Mar 2005 19:36:05 +0100
> Christian Schmid <webmaster@rapidforum.com> wrote:
>
>
>>Sorry? What do you mean?
>
>
> I'm being sarcastic in that you didn't provide the test
> case we asked you to provide so we could reproduce the
> many-socket slowdown too and help you figure out what
> was going wrong.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 18:54 ` Christian Schmid
@ 2005-03-05 18:57 ` David S. Miller
2005-03-05 19:07 ` Christian Schmid
0 siblings, 1 reply; 10+ messages in thread
From: David S. Miller @ 2005-03-05 18:57 UTC (permalink / raw)
To: Christian Schmid; +Cc: netdev
On Sat, 05 Mar 2005 19:54:49 +0100
Christian Schmid <webmaster@rapidforum.com> wrote:
> You as an expert should know that this is no one-liner. It is a very complex server with
> multiplexing and forking like Apache. I dont feel like writing an apache-like program just for
> testing. I hope you understand that I prefered investing my time in acutally searching the bug and
> now its found. Now I hope that you can fix it or at least tell me your ideas.
You could give us the program you actually used, no writing
necessary. Obviously you had this program, else you wouldn't
have anything to report at all.
There's nothing "to write", you have it already by implication.
Instead, you told us "do something like this, or that" and lots
of vague statements and brief incomplete code snippets, then
expect us to figure out how the magic beans work and fix your
problem.
And you want respect and help from us? :-)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 18:57 ` David S. Miller
@ 2005-03-05 19:07 ` Christian Schmid
2005-03-05 19:57 ` Thomas Graf
0 siblings, 1 reply; 10+ messages in thread
From: Christian Schmid @ 2005-03-05 19:07 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
Actually we are a company and the big ones decided to buy new servers to work-around this bug. This
is a common technique in companies. I say this sucks and thats why I experienced in our production
system in order to give linux something back by reporting and helping to fix a bug which only
appears on big systems. I do not understand why you start flaming at me.
David S. Miller wrote:
> On Sat, 05 Mar 2005 19:54:49 +0100
> Christian Schmid <webmaster@rapidforum.com> wrote:
>
>
>>You as an expert should know that this is no one-liner. It is a very complex server with
>>multiplexing and forking like Apache. I dont feel like writing an apache-like program just for
>>testing. I hope you understand that I prefered investing my time in acutally searching the bug and
>>now its found. Now I hope that you can fix it or at least tell me your ideas.
>
>
> You could give us the program you actually used, no writing
> necessary. Obviously you had this program, else you wouldn't
> have anything to report at all.
>
> There's nothing "to write", you have it already by implication.
>
> Instead, you told us "do something like this, or that" and lots
> of vague statements and brief incomplete code snippets, then
> expect us to figure out how the magic beans work and fix your
> problem.
>
> And you want respect and help from us? :-)
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 19:07 ` Christian Schmid
@ 2005-03-05 19:57 ` Thomas Graf
2005-03-05 20:04 ` Christian Schmid
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Graf @ 2005-03-05 19:57 UTC (permalink / raw)
To: Christian Schmid; +Cc: David S. Miller, netdev
* Christian Schmid <422A0354.3080800@rapidforum.com> 2005-03-05 20:07
> Actually we are a company and the big ones decided to buy new servers to
> work-around this bug. This is a common technique in companies. I say this
> sucks and thats why I experienced in our production system in order to give
> linux something back by reporting and helping to fix a bug which only
> appears on big systems. I do not understand why you start flaming at me.
It's quite simple, provide a test case and someone will start looking
into the problem (given there is one). The information you provided so far
is quite vague, it would be pure luck to spot the bug. You have do
understand that looking into such a bug may cost dozens of hours or days if
it can't be reproduced by the person. Nobody does this without at least very
strong evidences that the bug actually exists and your appereance so
far didn't help too much I guess.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 19:57 ` Thomas Graf
@ 2005-03-05 20:04 ` Christian Schmid
2005-03-05 20:32 ` Francois Romieu
0 siblings, 1 reply; 10+ messages in thread
From: Christian Schmid @ 2005-03-05 20:04 UTC (permalink / raw)
To: Thomas Graf; +Cc: David S. Miller, netdev
Thomas Graf wrote:
> * Christian Schmid <422A0354.3080800@rapidforum.com> 2005-03-05 20:07
>
>>Actually we are a company and the big ones decided to buy new servers to
>>work-around this bug. This is a common technique in companies. I say this
>>sucks and thats why I experienced in our production system in order to give
>>linux something back by reporting and helping to fix a bug which only
>>appears on big systems. I do not understand why you start flaming at me.
>
>
> It's quite simple, provide a test case and someone will start looking
> into the problem (given there is one). The information you provided so far
> is quite vague, it would be pure luck to spot the bug. You have do
> understand that looking into such a bug may cost dozens of hours or days if
> it can't be reproduced by the person. Nobody does this without at least very
> strong evidences that the bug actually exists and your appereance so
> far didn't help too much I guess.
I just asked for a way how to change the dynamic memory-allocation for buffers to a static one. I
dont think that this is much work and is a quite direct task.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 20:04 ` Christian Schmid
@ 2005-03-05 20:32 ` Francois Romieu
2005-03-05 20:40 ` Christian Schmid
0 siblings, 1 reply; 10+ messages in thread
From: Francois Romieu @ 2005-03-05 20:32 UTC (permalink / raw)
To: Christian Schmid; +Cc: Thomas Graf, David S. Miller, netdev
Christian Schmid <webmaster@rapidforum.com> :
[...]
> I just asked for a way how to change the dynamic memory-allocation for
> buffers to a static one. I dont think that this is much work and is a quite
> direct task.
Simple answer: rewrite alloc_skb and friends.
--
Ueimor
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 20:32 ` Francois Romieu
@ 2005-03-05 20:40 ` Christian Schmid
2005-03-05 21:22 ` Francois Romieu
0 siblings, 1 reply; 10+ messages in thread
From: Christian Schmid @ 2005-03-05 20:40 UTC (permalink / raw)
To: Francois Romieu; +Cc: Thomas Graf, David S. Miller, netdev
In less-rude words: "No, this is not easy. No way, sorry."
Thank you for this information. I have sent very detailed bug-reports to LKML. Maybe you have read
already.
Francois Romieu wrote:
> Christian Schmid <webmaster@rapidforum.com> :
> [...]
>
>>I just asked for a way how to change the dynamic memory-allocation for
>>buffers to a static one. I dont think that this is much work and is a quite
>>direct task.
>
>
> Simple answer: rewrite alloc_skb and friends.
>
> --
> Ueimor
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Still bug-hunting
2005-03-05 20:40 ` Christian Schmid
@ 2005-03-05 21:22 ` Francois Romieu
0 siblings, 0 replies; 10+ messages in thread
From: Francois Romieu @ 2005-03-05 21:22 UTC (permalink / raw)
To: Christian Schmid; +Cc: Thomas Graf, David S. Miller, netdev
Christian Schmid <webmaster@rapidforum.com> :
> In less-rude words: "No, this is not easy. No way, sorry."
If you can not distinguish a factual answer from a flame, it is time
to take a break.
[...]
> Thank you for this information. I have sent very detailed bug-reports to
> LKML. Maybe you have read already.
Just done so but I fail to see if you provided N. Piggin with the data
he requested. Anyway, I can return to more basic issues since he and
the others will do a better job than me.
--
Ueimor
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-03-05 21:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-05 17:57 Still bug-hunting Christian Schmid
2005-03-05 18:29 ` David S. Miller
[not found] ` <4229FC15.3070408@rapidforum.com>
[not found] ` <20050305104854.45106335.davem@davemloft.net>
2005-03-05 18:54 ` Christian Schmid
2005-03-05 18:57 ` David S. Miller
2005-03-05 19:07 ` Christian Schmid
2005-03-05 19:57 ` Thomas Graf
2005-03-05 20:04 ` Christian Schmid
2005-03-05 20:32 ` Francois Romieu
2005-03-05 20:40 ` Christian Schmid
2005-03-05 21:22 ` Francois Romieu
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).