From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,8c1d1ffdb28bdb34,start X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.volia.net!news.germany.com!newsfeed.stueberl.de!feeder.ecngs.de!ecngs!feeder2.ecngs.de!212.23.6.68.MISMATCH!zen.net.uk!hamilton.zen.co.uk!193.60.199.26.MISMATCH!feed4.jnfs.ja.net!feed3.jnfs.ja.net!jnfs.ja.net!nntp0.brunel.ac.uk!not-for-mail From: "Dr Ivan D. Reid" Newsgroups: comp.os.linux.alpha Subject: g++ optimisations in AlphaLinux Date: Sun, 27 Nov 2005 11:03:46 +0000 (UTC) Organization: Brunel University, West London, UK Message-ID: Reply-To: Ivan.Reid@brunel.ac.uk NNTP-Posting-Host: molnir.brunel.ac.uk X-Trace: mimas.brunel.ac.uk 1133089426 10808 134.83.108.7 (27 Nov 2005 11:03:46 GMT) X-Complaints-To: sysunix@brunel.ac.uk NNTP-Posting-Date: Sun, 27 Nov 2005 11:03:46 +0000 (UTC) User-Agent: slrn/0.9.7.4 (SunOS) Xref: g2news1.google.com comp.os.linux.alpha:567 Now that I have Debian Sarge running on my PWS500a, I've been porting seti@home to the machine. The performance has been disappointing; the standard test work-unit is going to take around 60 hours to complete. boinc benchmarks report: 2005-11-27 11:00:51 [---] Running CPU benchmarks 2005-11-27 11:01:50 [---] Benchmark results: 2005-11-27 11:01:50 [---] Number of CPUs: 1 2005-11-27 11:01:50 [---] 153 double precision MIPS (Whetstone) per CPU 2005-11-27 11:01:50 [---] 555 integer MIPS (Dhrystone) per CPU 2005-11-27 11:01:50 [---] Finished CPU benchmarks I got gprof running and noticed a few things like: o much of the time is spent in calculating log-gamma functions. These do a lot of casting to and from single-precision parameters/results. o the total time that gprof reports is only about 1/3rd the cpu time charged to the programme by top (e.g. a 39618-second run only totalled up 11376 seconds of profile time). Since this is unlikely to be profiler overhead, I'm wondering if it's due to unaligned access or double/float conversion causing execution problems. Can anyone suggest which g++ options [g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)] might improve the performance? I've been looking for flags to control alignment of floats, or promote all floats to doubles, but I haven't found anything yet. Please cross-post this if you know of a better group to ask in. -- Ivan Reid, Electronic & Computer Engineering, ___ CMS Collaboration, Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12, CERN KotPT -- "for stupidity above and beyond the call of duty".