Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: greg@durendal.ml.org (Greg Weeks)
Subject: Re: Unaligned Traps - What are they?
Date: 1998/07/13	[thread overview]
Message-ID: <6obkme$9k5$2@ins8.netins.net> (raw)
In-Reply-To: 6obgg4$iua$1@animal.blarg.net

In article <6obgg4$iua$1@animal.blarg.net>,
	james@animal.blarg.net (James Hillyerd) writes:
> I see a lot of unaligned trap errors messages on my console after
> leaving my alpha on a few a few days.  Most of them are coming from
> PostgreSQL. 
> 
> Can someone tell me what they are, and if they are a bad thing?  I'd
> like to use PostgreSQL on this machine, but I don't want to put data
> in it if it's going to bail on me. 
> 
> I also see these errors every now and then when I exit fdisk.

They aren't REALLY a problem. They do slow things down. The alpha
processor (and most others except x86) require 4 byte load or store to
be 4 byte aligned and an 8 byte load or store to be 8 byte
aligned. When it isn't a trap occurs and the os emulates the
load/store and then restarts at the next instruction. The trap and
emulate takes many times longer than an aligned load or store. The x86
does the emulate of the load or store in hardware and doesn't trap. It
still needs two memory accesses and is slower.

Greg Weeks

-- 
http://weeks.home.ml.org/




  reply	other threads:[~1998-07-13  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-12  4:00 Unaligned Traps - What are they? James Hillyerd
1998-07-13  4:00 ` Greg Weeks [this message]
1998-07-13  4:00   ` HISAX Driver for a Teles 16.0 Andreas Magnus
1998-07-13  4:00     ` Georg Acher
read-only archive

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