public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks
  2002-03-11 17:58 [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks Denis Vlasenko
@ 2002-03-11 14:03 ` David S. Miller
  2002-03-11 18:56   ` Denis Vlasenko
  2002-03-11 19:43   ` Robert Love
  0 siblings, 2 replies; 4+ messages in thread
From: David S. Miller @ 2002-03-11 14:03 UTC (permalink / raw)
  To: vda; +Cc: alan, linux-kernel, marcelo

   From: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
   Date: Mon, 11 Mar 2002 15:58:15 -0200

   Primary purpose of this patch is to make KERN_WARNING and
   KERN_INFO log levels closer to their original meaning.
   Today they are quite far from what was intended.
   Just look what kernel writes at the WARNING level
   each time you boot your box!

Maybe it is even better idea to change default kernel printk
logging level which is used when no KERN_* is specified, eh?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks
@ 2002-03-11 17:58 Denis Vlasenko
  2002-03-11 14:03 ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Vlasenko @ 2002-03-11 17:58 UTC (permalink / raw)
  To: Alan Cox, David S. Miller; +Cc: linux-kernel, Marcelo Tosatti

Primary purpose of this patch is to make KERN_WARNING and
KERN_INFO log levels closer to their original meaning.
Today they are quite far from what was intended.
Just look what kernel writes at the WARNING level
each time you boot your box!

This patch is for IPv4 IP/TCP hash table size printks

diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/net/ipv4/route.c 
linux-new/net/ipv4/route.c
--- linux-2.4.19-pre2/net/ipv4/route.c	Mon Feb 25 17:38:14 2002
+++ linux-new/net/ipv4/route.c	Mon Mar 11 12:26:37 2002
@@ -2487,9 +2487,10 @@
 	if (!rt_hash_table)
 		panic("Failed to allocate IP route cache hash table\n");

-	printk("IP: routing cache hash table of %u buckets, %ldKbytes\n",
-	       rt_hash_mask,
-	       (long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024);
+	printk(KERN_INFO "IP: routing cache hash table of"
+		" %u buckets, %ldKbytes\n",
+		rt_hash_mask,
+		(long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024);

 	for (rt_hash_log = 0; (1 << rt_hash_log) != rt_hash_mask; rt_hash_log++)
 		/* NOTHING */;
diff -u --recursive -x *.orig -x *.rej linux-2.4.19-pre2/net/ipv4/tcp.c 
linux-new/net/ipv4/tcp.c
--- linux-2.4.19-pre2/net/ipv4/tcp.c	Fri Dec 21 15:42:05 2001
+++ linux-new/net/ipv4/tcp.c	Mon Mar 11 12:28:10 2002
@@ -2552,8 +2552,9 @@
 		sysctl_tcp_rmem[2] = 2*43689;
 	}

-	printk("TCP: Hash tables configured (established %d bind %d)\n",
-	       tcp_ehash_size<<1, tcp_bhash_size);
+	printk(KERN_INFO "TCP: Hash tables configured"
+		" (established %d bind %d)\n",
+	        tcp_ehash_size<<1, tcp_bhash_size);

 	tcpdiag_init();
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks
  2002-03-11 14:03 ` David S. Miller
@ 2002-03-11 18:56   ` Denis Vlasenko
  2002-03-11 19:43   ` Robert Love
  1 sibling, 0 replies; 4+ messages in thread
From: Denis Vlasenko @ 2002-03-11 18:56 UTC (permalink / raw)
  To: David S. Miller; +Cc: alan, linux-kernel, marcelo

On 11 March 2002 12:03, David S. Miller wrote:
>    From: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
>    Date: Mon, 11 Mar 2002 15:58:15 -0200
>
>    Primary purpose of this patch is to make KERN_WARNING and
>    KERN_INFO log levels closer to their original meaning.
>    Today they are quite far from what was intended.
>    Just look what kernel writes at the WARNING level
>    each time you boot your box!
>
> Maybe it is even better idea to change default kernel printk
> logging level which is used when no KERN_* is specified, eh?

Not "eh", "yeah!" instead :-) I like this idea.
But how to convince everybody else?
--
vda

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks
  2002-03-11 14:03 ` David S. Miller
  2002-03-11 18:56   ` Denis Vlasenko
@ 2002-03-11 19:43   ` Robert Love
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Love @ 2002-03-11 19:43 UTC (permalink / raw)
  To: David S. Miller; +Cc: vda, alan, linux-kernel, marcelo

On Mon, 2002-03-11 at 09:03, David S. Miller wrote:

> Maybe it is even better idea to change default kernel printk
> logging level which is used when no KERN_* is specified, eh?

Only if we really consider the printks in question "whatever the default
is."  The default has changed before and may change again (as you are
suggesting).  I have no problem changing the default - I just think if
Denis suggests a printk should be classified as "informative" and we
agree, let's change it.  Although I don't think it would fly with Linus,
any printk we can solidly classify we should, imo.

This doesn't preclude changing the default, as you suggest, especially
if its clearly too high.  But I don't see why we shouldn't be explicit
where possible.  No?

	Robert Love


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-11 19:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-11 17:58 [PATCH] KERN_INFO 2.4.19-pre2 IP/TCP hash table size printks Denis Vlasenko
2002-03-11 14:03 ` David S. Miller
2002-03-11 18:56   ` Denis Vlasenko
2002-03-11 19:43   ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox