From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,da39df064d0b18d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!18g2000yqa.googlegroups.com!not-for-mail From: jonathan Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Date: Tue, 11 Aug 2009 13:02:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4564d943-9a6a-4112-9ae2-f379b8654669@18g2000yqa.googlegroups.com> References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> <4a7f1fc5$0$31344$9b4e6d93@newsspool4.arcor-online.net> <9adb4985-582c-4cbf-906c-3afa7dcd31f6@g1g2000vbr.googlegroups.com> <4a80ae6e$0$31877$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 143.117.23.233 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1250020950 8880 127.0.0.1 (11 Aug 2009 20:02:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 Aug 2009 20:02:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 18g2000yqa.googlegroups.com; posting-host=143.117.23.233; posting-account=Jzt5lQoAAAB4PhTgRLOPGuTLd_K1LY-C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.12) Gecko/2009072220 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7681 Date: 2009-08-11T13:02:30-07:00 List-Id: On Aug 11, 12:34=A0am, Georg Bauhaus wrote: > Does regexdna-multi.ada work on your system? > > On a dual core system it seems to be shortening > the running time by almost a third. > Yes, regexdna-multi.ada so far works on the compiler and machine combinations I've tried. With Stack_Size : constant Positive :=3D 37; I get 31 second running time on 1-core, 15 second running time on 4-cores. The tasking-free version uses 30.5 seconds on 1-core. This is a 3.2 GHz 4-core machine. Actually, as I was writing that I remembered its really an 8-core machine. SO just for fun I set Max_CPUs : constant :=3D 7; and it ran in 12 seconds. In fact it ran in 12 seconds for 5, 6, 7 and 8 CPU's. Then I couldn't resist. I set it to 15: Max_CPUs : constant :=3D 15; It ran in 9 seconds. I couldn't believe it. I timed it with my watch also. The best time was 8.7 seconds. In fact all settings of Max_CPUs from 9 to 15 ran in 9 seconds. At Max_CPUs =3D 24 it was 9.7 sec. Jonathan