All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.4(.16) kernel logs messages in the wrong order
@ 2001-11-27 17:55 Jordan Russell
  2001-11-27 18:53 ` Martin Eriksson
  0 siblings, 1 reply; 2+ messages in thread
From: Jordan Russell @ 2001-11-27 17:55 UTC (permalink / raw)
  To: linux-kernel

Hi,
Here's an excerpt from my /var/log/messages. Notice how messages from two
different times are strangely mixed together. What's going on? Is there some
way to fix it? This does not happen when a 2.2.x kernel is used.

Nov 27 11:38:54 webby sysctl: net.ipv4.conf.default.rp_filter = 1
Nov 27 11:39:15 webby kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Nov 27 11:38:54 webby sysctl: kernel.sysrq = 1
Nov 27 11:39:15 webby kernel: IP Protocols: ICMP, UDP, TCP
Nov 27 11:38:54 webby sysctl: net.ipv4.ip_forward = 1
Nov 27 11:39:15 webby kernel: IP: routing cache hash table of 4096 buckets,
32Kbytes
Nov 27 11:38:54 webby rc.sysinit: Configuring kernel parameters:  succeeded

I'm using Red Hat 7.2 if it matters.

Thanks,

Jordan Russell


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

* Re: 2.4(.16) kernel logs messages in the wrong order
  2001-11-27 17:55 2.4(.16) kernel logs messages in the wrong order Jordan Russell
@ 2001-11-27 18:53 ` Martin Eriksson
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Eriksson @ 2001-11-27 18:53 UTC (permalink / raw)
  To: Jordan Russell, linux-kernel

----- Original Message -----
From: "Jordan Russell" <jr-list-kernel@quo.to>
To: <linux-kernel@vger.kernel.org>
Sent: Tuesday, November 27, 2001 6:55 PM
Subject: 2.4(.16) kernel logs messages in the wrong order


> Hi,
> Here's an excerpt from my /var/log/messages. Notice how messages from two
> different times are strangely mixed together. What's going on? Is there
some
> way to fix it? This does not happen when a 2.2.x kernel is used.
>
> Nov 27 11:38:54 webby sysctl: net.ipv4.conf.default.rp_filter = 1
> Nov 27 11:39:15 webby kernel: NET4: Linux TCP/IP 1.0 for NET4.0
> Nov 27 11:38:54 webby sysctl: kernel.sysrq = 1
> Nov 27 11:39:15 webby kernel: IP Protocols: ICMP, UDP, TCP
> Nov 27 11:38:54 webby sysctl: net.ipv4.ip_forward = 1
> Nov 27 11:39:15 webby kernel: IP: routing cache hash table of 4096
buckets,
> 32Kbytes
> Nov 27 11:38:54 webby rc.sysinit: Configuring kernel parameters:
succeeded
>
> I'm using Red Hat 7.2 if it matters.

Just use "dmesg" instead, that will give you a correct order if you are
looking for bootup messages.

Problem is that /var/log/messages is not ordered according to the time when
messages were contrieved, instead it is ordered in any order depending on
when syslog wants to write the message to the file. The mess you are seeing
propably has something to do with the fact that /var/log/messages isn't
mounted immediately at boot, and thus cannot be written before syslog starts
and has access to the file.

_____________________________________________________
|  Martin Eriksson <nitrax@giron.wox.org>
|  MSc CSE student, department of Computing Science
|  Umeå University, Sweden



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

end of thread, other threads:[~2001-11-27 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-27 17:55 2.4(.16) kernel logs messages in the wrong order Jordan Russell
2001-11-27 18:53 ` Martin Eriksson

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.