From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id C79652F0DA for ; Mon, 6 Nov 2000 10:10:17 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eA6FAHq25528 for axp-list@listman.redhat.com; Mon, 6 Nov 2000 10:10:17 -0500 Received: from aftp.pppl.gov (aftp.pppl.gov [192.188.106.99]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eA6FAHD25523 for ; Mon, 6 Nov 2000 10:10:17 -0500 Received: from a.pppl.gov (c.pppl.gov [192.188.106.100]) by aftp.pppl.gov (8.9.2/8.9.2) with SMTP id KAA27146 for ; Mon, 6 Nov 2000 10:10:12 -0500 (EST) Received: from oriole (oriole.pppl.gov [192.55.106.139]) by pppl.gov (8.9.2/8.9.2) with ESMTP id KAA23261 for ; Mon, 6 Nov 2000 10:10:09 -0500 (EST) Message-Id: <4.2.0.58.20001106095341.016c4c10@pop.Pppl.GOV> X-Sender: randerso@pop.Pppl.GOV X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Mon, 06 Nov 2000 10:10:04 -0500 To: axp-list@redhat.com From: Lew Randerson Subject: Turning off 'unaligned trap' logging Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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