* [net-next] net: More verbose message for too-many-orphans.
@ 2010-08-09 19:00 Ben Greear
2010-08-10 8:48 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2010-08-09 19:00 UTC (permalink / raw)
To: netdev; +Cc: Ben Greear
The original message doesn't give much clue as to what
is actually going wrong or how to fix it.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 808bb92... 96a7ec2... M net/ipv4/tcp_timer.c
net/ipv4/tcp_timer.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 808bb92..96a7ec2 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -79,7 +79,11 @@ static int tcp_out_of_resources(struct sock *sk, int do_reset)
if (tcp_too_many_orphans(sk, orphans)) {
if (net_ratelimit())
- printk(KERN_INFO "Out of socket memory\n");
+ printk(KERN_INFO "Out of socket memory, orphans: %d/%d"
+ " tcp_memory_allocated: %d/%d\n",
+ orphans, sysctl_tcp_max_orphans,
+ atomic_read(&tcp_memory_allocated),
+ sysctl_tcp_mem[2]);
/* Catch exceptional cases, when connection requires reset.
* 1. Last segment was sent recently. */
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next] net: More verbose message for too-many-orphans.
2010-08-09 19:00 [net-next] net: More verbose message for too-many-orphans Ben Greear
@ 2010-08-10 8:48 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-08-10 8:48 UTC (permalink / raw)
To: greearb; +Cc: netdev
From: Ben Greear <greearb@candelatech.com>
Date: Mon, 9 Aug 2010 12:00:02 -0700
> The original message doesn't give much clue as to what
> is actually going wrong or how to fix it.
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
Dumping a bunch of values obtainable via sysctl is pointless.
The only non-sysctl value you're dumping is 'orphans' and based upon
the sysctl values you can determine whether it made the check inside
of tcp_too_many_orphans() trigger, and in what way.
I'm not applying this, sorry.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-10 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 19:00 [net-next] net: More verbose message for too-many-orphans Ben Greear
2010-08-10 8:48 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.