From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b0efc8b077039d04 X-Google-Attributes: gid111c93,public From: Peter Boyle Subject: Re: seti@home 2.4 for alpha linux ev5 Date: 2000/04/06 Message-ID: #1/1 X-Deja-AN: 607582594 References: <38d524b3$0$87872@news.voyager.net> <1c2ac8.9sm.ln@snowwhite.dera.gov> <6rlfc8.msq.ln@snowwhite.dera.gov> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: usenet@scotsman.ed.ac.uk X-Trace: scotsman.ed.ac.uk 955033433 29759 129.215.16.14 (6 Apr 2000 15:03:53 GMT) Organization: Edinburgh University Mime-Version: 1.0 NNTP-Posting-Date: 6 Apr 2000 15:03:53 GMT Newsgroups: comp.os.linux.alpha On Wed, 5 Apr 2000, Richard Simpson wrote: > Peter Boyle wrote: > :> who could either give us an idiot's guide or point us to a sensible web > ^^^^^^^ > Sorry!!! > > : i) External Cache thrashing due to virt->real addressing > > : etc > > : Of course, the page table ( cached in the TLB on chip ) translates > : virtual page numbers into physical page numbers, with the offset > : within a page being unchanged. The problem is that the virtual > : addressing gives absolutely no guarantee that the physical > Above paragraph seems to end half way through a sentence? Hi, Apologies, but I did threaten to splurge... I'll *try* and write in something approaching English this time! The external cache is direct mapped and physically addressed (i.e. *physical* address modulo cache size gives location in the external cache ). The problem is that laying out the data sensibly in virtual page numbering gives no guarantee that the physical translation is sensibly laid out. Because the external cache is direct mapped it is possible to read two streams for which data mapping to the same locations in external cache for accesses with short temporal separation. This can cause references to one stream to evict already loaded data which will be needed soon. Note if the Ext cache was 2 or 4 way associative this thrashing wouldn't occur (or at least be as bad) because the eviction would be implemented on an oldest of 2/4 references being evicted policy. Page coloring is a way to detect this combined with dynamic relocation of the cuplrit virtual pages in the physical memory space to prevent such conflicts in future. > > Well, thank you very much for taking the time to explain all of that, but > unfortunately I am an antenna research scientist and it made about as much > sense to me as I suspect that an explanation of radiation resistance would to > you :-). Still, I think that I get the basic gist and I'll try reading it a > couple more times with a damp towel wrapped round my head. > > :> : Have you tried the 2.4.alpha-compaq-T64Uv4.0d version? > : The binary doesn't have controll of the memory map, so should make > : the difference. > > This doesn't appear to be a gramatically complete sentence. The binary doesn't have control of the memory map, so the use of a different binary shouldn't make the difference. > > : If there is a difference running under Linux it is > : probably something like KAP in the compilation. > > KAP??? KAP is a tool used in profile directed optimsation that is partly (largely?) responsible for the big difference in peak and base SPECfp. I guess most of the difference comes from inserting better prefetching on the basis of profile info. > Again, we seem to only have half of a sentence. I am however pleased to > discover that my impericaly derived scheme of rebooting the machine has some > scientific validity. Didn't say that it is scientific. I'm just guessing that after a reboot the system calls to allocate heap is more likely to give contiguous physical blocks. (I have actually bothered to read the source, but doesn't mean I really understand it!) > : Run process as root, and mlock the array's that you > : think are thrashing. One *hopes* a contiguous block of physical > : memory is assigned to the contigous block of virtual space. > > We don't have access to the source code of setathome (and there is basically > zero chance of this changing). Is there any way to achieve the above in > this case? > > Once again, thanks for taking the time to try and educate us. Hmm, hard. Only thing I can think of is pretty dangerous if you want your machine to be usable for general purpose. I would guess a reboot then disable swap (swapoff -a) before running would give the best chance of avoiding thrashing, but there's no guarantee. Would only consider this an interesting experiment rather than a suggested habit. Whoops no subject in the previous sentence :) HTH Peter Boyle pboyle@physics.gla.ac.uk