From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,91f1f79769aa1f54 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-06-20 20:01:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Falk Hueffner" Newsgroups: comp.os.linux.alpha Subject: Re: gcc scheduler cache latency timings on Alpha. Date: Fri, 20 Jun 2003 12:50:00 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: X-Newsreader: EleBBS/W32 v0.10.rc1 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.os.linux.alpha:7789 (CHARSET: PC-8) (PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From: Falk Hueffner Tavis Ormandy writes: > the gcc scheduler uses memory latency timings to predict optimal > scheduling for memory references, the man page says that gcc knows > typical timings for ev4 and ev5..thats cool, but id like specific > timings for my machines so the scheduler can do the best job possible. > > [...] > > the value for `main` also works (well, 2 cycles out), so apply the same > logic to the Scache, where i have a latency of 65.1 ns > > (65.1/(10^9/533Mhz)) == 34.71 ... > > so where is this 12 cycles figure coming from? id be greatful if > anyone can explain it. The HRM tells: "When idle, Scache arbitration predicts a load miss in E0. If a load actually does miss in E0, it is sent to the Scache immediately. If it hits, and no other event in the Cbox affects the operation, the requested data is available for use in eight cycles. Otherwise, the request takes longer (possibly much longer, depending on the state of the Scache and Cbox)." So if you're lucky, it takes only 8 cycles. 12 is probably a compromise. Not that it matters a lot, anyway. There won't usually be enough instructions that could be scheduled in between, so anything >8 is basically equivalent. -- Falk --- BBBS/NT v4.01 Flag-5 * Origin: TCOB1: A slice of life on your plate (2:263/950) -- This message posted from Shurato's Heavenly Sphere Telnet BBS telnet://shurato.darktech.org for abuse issues, please contact me at shurato@shurato.darktech.org Shurato: Admin of SHS.