From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,a47db4115ccff45c X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2002-03-05 15:21:14 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!209.251.2.12.MISMATCH!news-xfer2.newshosting.com!intgwlon.nntp.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!usenet.net.nz!news.top.net.nz!enterprise!news.comnet.co.nz!not-for-mail From: Manfred Plagmann Newsgroups: comp.os.linux.alpha Subject: Re: Suse v 7.1 for Alpha Date: Wed, 06 Mar 2002 11:37:20 +1300 Organization: ComNet Networks, Industrial Research Ltd Message-ID: References: Reply-To: m.plagmann@irl.cri.nz NNTP-Posting-Host: ch28.irl.cri.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.comnet.co.nz 1015368930 82514 161.65.160.177 (5 Mar 2002 22:55:30 GMT) X-Complaints-To: usenet@news.comnet.co.nz NNTP-Posting-Date: 5 Mar 2002 22:55:30 GMT User-Agent: KNode/0.6.1 Xref: archiver1.google.com comp.os.linux.alpha:5016 Usually the compiler keeps track of alignment and will place short,integers and longs at the right addresses (div 2, div 4 or div 8). At least the Compaq compiler is doing this. If the programmer is, however, reading or writing to a memory segment and is not keeping track of the right alignment a trap will occur (indicating a penalty). This problem is as old as the existance of 16bit cpu's. BTW the code produced by the Compaq compiler is at least twice as fast as the gcc code. That's what I found with my programms. To come back to the original request for help with Suse 7.1: what do you need or what do you expect? Cheers, Manfred Reinhard Eigner wrote: > Well, I got this information from the SuSE Support. > The Tru64 is the best UNIX for this machines. > But I think you are german so I can post the original eMail from suse > > ---- > Diese unaligned traps gibt es auf jeder Architektur, sie ruehren daher, > dass der Speicher 'word-aligned' ist, dh, ein int (32bit) muss an einer > Speicherstelle liegen, die durch 4 (Byte) teilbar ist, waehrend ein char, > da nur ein Byte lang, an jeder Stelle liegen kann. > Das dient zur einfacheren und schnelleren Berechnung von Speicheradressen. > sollte nun so ein Integer an einer nicht durch 4 teilbaren Adresse liegen, > so muss die Adresse gesondert berechnet werden, was zu > Performanceverlusten fuehrt. > Auf I386 Rechnern gibt es das gleiche Problem, nur dass der Prozessor > hier keinen Trap meldet. > Ausserdem sind viele Programme einfach fuer i386 geschrieben, dort fuehrt > wegen der gleichen Laenge von int und long ein cast (Umwandlung) von int > nach long nie zu einem unalignment, waehrend dies auf 64-bit Rechnern > (long = 8 Byte, daher muss Adresse durch 8 teilbar sein) mit einer > statistischen Haeufigkeit von 50% passiert. > ---- > > cheerio > Reinhard > > "Falk Hueffner" schrieb im > Newsbeitrag news:st27kordp9z.fsf@student.uni-tuebingen.de... >> "Reinhard Eigner" writes: >> >> > I have the Suse Linux 7.1 Alpha Edition but I'm not very happy with it. >> > The processor always sends traps. >> > Nov 15 21:08:44 eigner-alpha kernel: X(378): unaligned trap at >> > 00000001204aa470: 000000012092f2d2 28 1 >> > A x86 based computer doesn't have this kind of trap because it has a > 32bit >> > platform. >> >> Actually not because of the word size, but because the bus was >> designed to handle unaligned accesses. >> >> > This error has something to do with the word aligned memory. >> > You will loose your 64bit advantage with this Linux >> >> Well, if these traps occurr not to often (like just a few hundreds per >> second), it is tolerable and you don't loose much speed. Or update >> X. For example, I've had exactly 0 unaligned traps in 15h uptime (on a >> Debian system). >> >> > Better you use Tru64 UNIX from Compaq. There's also a KDE Desktop >> > availiable. >> >> The problem is exactly the same with Tru64, only it doesn't log the >> traps... >> >> Falk >>