Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Turning off 'unaligned trap' logging
@ 2000-11-06 15:10 Lew Randerson
  2000-11-06 15:28 ` Matt Wilson
  2000-11-09  3:51 ` Turning off 'unaligned trap' logging Jay Estabrook
  0 siblings, 2 replies; 4+ messages in thread
From: Lew Randerson @ 2000-11-06 15:10 UTC (permalink / raw)
  To: axp-list

To all,

How do we turn off printing of the unaligned trap messages to
/var/log/messages? There's an implication in the kernel code
that this is a user option. The alignment problem itself is
probably in our 'mpich-1.2.0' package but until that is resolved
we need to turn of the printing since particularly on our Red Hat
6.2 system it is causing a big load on syslogd.

We are running Red Hat 6.1 and Red Hat 6.2 on ALPHA machines.  The
kernel is  2.2.16-3. The FORTRAN compiler is Compaq Fortran V1.0-920.
The C compiler is egcs-2.91.66.

Here's what the messages look like in /var/log/messages
====================================================================
Jul 15 08:10:23 loki kernel: gotsc(1416): unaligned trap at 
000000012010ad44: 0000000120188ba4 23 0
Jul 15 08:10:23 loki kernel: gotsc(1416): unaligned trap at 
000000012010ad54: 0000000120188ba4 23 1
Jul 15 08:10:23 loki kernel: gotsc(1416): unaligned trap at 
000000012010ad44: 0000000120188ba4 23 0
Jul 15 08:10:23 loki kernel: gotsc(1416): unaligned trap at 
000000012010ad54: 0000000120188ba4 23 1
====================================================================


Here's an excerpt from arch/alpha/kernel/traps.c talking about this.
====================================================================
do_entUnaUser(void * va, unsigned long opcode,
	      unsigned long reg, struct pt_regs *regs)
{
	static int cnt = 0;
	static long last_time = 0;

	unsigned long tmp1, tmp2, tmp3, tmp4;
	unsigned long fake_reg, *reg_addr = &fake_reg;
	unsigned long uac_bits;
	long error;

	/* Check the UAC bits to decide what the user wants us to do
	   with the unaliged access.  */

	uac_bits = (current->tss.flags >> UAC_SHIFT) & UAC_BITMASK;
	if (!(uac_bits & UAC_NOPRINT)) {
		if (cnt >= 5 && jiffies - last_time > 5*HZ) {
			cnt = 0;
		}
		if (++cnt < 5) {
			printk("%s(%d): unaligned trap at %016lx: %p %lx %ld\n",
			       current->comm, current->pid,
			       regs->pc - 4, va, opcode, reg);
		}
		last_time = jiffies;
	}
====================================================================

As an aside. On our Red Hat 6.1 systems, we get two to four messages
about every four minutes. On our only Red Hat 6.2 system with the
same code, we get over 40 per minute.

Thanks for any help, --Lew





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

end of thread, other threads:[~2000-11-09  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-06 15:10 Turning off 'unaligned trap' logging Lew Randerson
2000-11-06 15:28 ` Matt Wilson
2000-11-06 16:12   ` SOCKSify my Services? SteveCraft
2000-11-09  3:51 ` Turning off 'unaligned trap' logging Jay Estabrook

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