From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,5c8b597b77c1b6b7 X-Google-Attributes: gid111c93,public From: greg@durendal.ml.org (Greg Weeks) Subject: Re: Unaligned Traps - What are they? Date: 1998/07/13 Message-ID: <6obkme$9k5$2@ins8.netins.net>#1/1 X-Deja-AN: 370848858 References: <6obgg4$iua$1@animal.blarg.net> Content-Type: text/plain; charset=us-ascii Organization: netINS, Inc. Mime-Version: 1.0 Reply-To: gweeks@geocities.com Newsgroups: comp.os.linux.alpha 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/