* RE: XP1000 and Linux
@ 1999-03-22 0:21 Stig Telfer
1999-03-22 0:55 ` Greg Lindahl
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Stig Telfer @ 1999-03-22 0:21 UTC (permalink / raw)
To: 'axp-list@redhat.com'
I think the key here is that your gcc output contains no write hints for the
destination. If you're writing a buffer without first reading it, this
instruction is near-essential; otherwise, the CPU will fetch the destination
cacheline from memory before you write all over it. Adding a wh64
instruction (in theory) allocates a 64-byte cache block without filling from
memory. That could explain the 2x shortfall in memory bandwidth you're
seeing.
I was hoping to provide an example to test this, but gnu as doesn't seem to
know the instruction, at least not the version I have (and not with the
mnemonic in the arch handbook). Hand-assembling may do the trick for now.
I wonder how much effort gcc makes to use it?
Regards,
Stig Telfer
> -----Original Message-----
> From: Wes Bauske [mailto:wsb@paralleldata.com]
> Sent: Sunday, March 21, 1999 3:44 PM
> To: axp-list@redhat.com
> Subject: Re: XP1000 and Linux
>
>
> Greg Lindahl wrote:
> >
> > > That would indicate Greg's view that compilers don't
> > > effect streams is significantly off. Also worries me
> > > that this system, with look ahead still is so sensitive
> > > to compilers. I'd bet the DUNIX cc is capable of unrolling
> > > loops to give the processor more things to look at as it
> > > does it's out of order execution... I'll see about hand
> > > unrolling the loops to see how that changes it's performance.
> >
> > Unrolling never does much for STREAM in this day and age -- main
> > memories are very slow compared to processors. Just look at the
> > numbers for how many cycles it takes to refill a L3 cache
> line. It is
> > a bit surprising that lack of any optimization changes the number so
> > dramatically. When I get my boxes I'll report Digital cc and egcs
> > numbers on the same hardware.
> >
>
> That will be useful.
>
> I don't know about you, but 25% better performance is
> nothing to sneeze at according to my tests with unrolling
> the stream loops.
>
> It would be interesting to generate the asm file from an
> ev6 tuned DUNIX cc compile and compare it to what egcs is
> doing.
>
> Tom, if you can, add whatever flag DUNIX cc needs to
> output asm. On gcc, it's -S. Here's the loops with egcs1.0.3
> with -O2:
>
> copy vector
>
> $L24:
> ldt $f1,0($2)
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$4,$1
> stt $f1,0($3)
> addq $3,8,$3
> bne $1,$L24
>
> vector times scalar:
>
> $L29:
> ldt $f1,0($2)
> mult $f2,$f1,$f1
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$4,$1
> stt $f1,0($3)
> addq $3,8,$3
> bne $1,$L29
>
> Add two vectors:
>
> $L34:
> ldt $f1,0($2)
> ldt $f10,0($3)
> addq $3,8,$3
> addt $f1,$f10,$f1
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$5,$1
> stt $f1,0($4)
> addq $4,8,$4
> bne $1,$L34
>
> Vector plus scaled vector:
>
> $L39:
> ldt $f1,0($2)
> mult $f2,$f1,$f1
> ldt $f10,0($3)
> addq $3,8,$3
> addt $f10,$f1,$f10
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$5,$1
> stt $f10,0($4)
> addq $4,8,$4
> bne $1,$L39
>
> Nice clean easy to read asm at least.
>
> If you specify -funroll-all-loops, you get an 8 way
> unroll. Note specifying -funroll-loops does nothing
> to the code. I guess egcs doesn't think simple loops
> need unrolling!! Sure would be interesting to see what
> DUNIX's trick is.
>
>
> Wes
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
^ permalink raw reply [flat|nested] 20+ messages in thread* Re: XP1000 and Linux 1999-03-22 0:21 XP1000 and Linux Stig Telfer @ 1999-03-22 0:55 ` Greg Lindahl 1999-03-22 2:10 ` Richard Henderson 1999-03-22 5:12 ` Wes Bauske 2 siblings, 0 replies; 20+ messages in thread From: Greg Lindahl @ 1999-03-22 0:55 UTC (permalink / raw) To: axp-list > I think the key here is that your gcc output contains no write hints for the > destination. This doesn't make a 2x difference in performance -- if this instruction is actually implemented in the 21264 (I haven't paid attention; the hints didn't do anything in the 21164), not using it would make your copy rate 33% lower than using it. This is known as "write allocate" traffic and the STREAM documentation talks about it. f90 -tune ev6 does generate wh64 instructions... It would probably be really hard to teach gcc how to use this instruction. gcc doesn't know much about vectorization. Of course memcpy() and friends could have this added by hand. -- g ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 0:21 XP1000 and Linux Stig Telfer 1999-03-22 0:55 ` Greg Lindahl @ 1999-03-22 2:10 ` Richard Henderson 1999-03-22 5:12 ` Wes Bauske 2 siblings, 0 replies; 20+ messages in thread From: Richard Henderson @ 1999-03-22 2:10 UTC (permalink / raw) To: axp-list On Sun, Mar 21, 1999 at 07:21:46PM -0500, Stig Telfer wrote: > I was hoping to provide an example to test this, but gnu as doesn't seem to > know the instruction, at least not the version I have (and not with the > mnemonic in the arch handbook). Hand-assembling may do the trick for now. Bother. The opcode table knows it, the tokenizer doesn't. Patch appended. > I wonder how much effort gcc makes to use it? None. Gcc knows nothing about optimizing for the memory heirarchy. r~ Index: config/tc-alpha.c =================================================================== RCS file: /cvs/cvsfiles/devo/gas/config/tc-alpha.c,v retrieving revision 1.76 diff -u -p -d -r1.76 tc-alpha.c --- tc-alpha.c 1999/02/15 00:00:20 1.76 +++ tc-alpha.c 1999/03/22 01:59:58 @@ -819,7 +819,7 @@ md_assemble (str) int ntok, opnamelen, trunclen; /* split off the opcode */ - opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_/48"); + opnamelen = strspn (str, "abcdefghijklmnopqrstuvwxyz_/468"); trunclen = (opnamelen < sizeof (opname) - 1 ? opnamelen : sizeof (opname) - 1); ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 0:21 XP1000 and Linux Stig Telfer 1999-03-22 0:55 ` Greg Lindahl 1999-03-22 2:10 ` Richard Henderson @ 1999-03-22 5:12 ` Wes Bauske 1999-03-22 5:51 ` Wes Bauske 1999-03-22 9:22 ` loop unrolling [Re: XP1000 and Linux] Richard Henderson 2 siblings, 2 replies; 20+ messages in thread From: Wes Bauske @ 1999-03-22 5:12 UTC (permalink / raw) To: axp-list Stig Telfer wrote: > > I think the key here is that your gcc output contains no write hints for the > destination. If you're writing a buffer without first reading it, this > instruction is near-essential; otherwise, the CPU will fetch the destination > cacheline from memory before you write all over it. Adding a wh64 > instruction (in theory) allocates a 64-byte cache block without filling from > memory. That could explain the 2x shortfall in memory bandwidth you're > seeing. > > I was hoping to provide an example to test this, but gnu as doesn't seem to > know the instruction, at least not the version I have (and not with the > mnemonic in the arch handbook). Hand-assembling may do the trick for now. > I wonder how much effort gcc makes to use it? > I patched my gas with Richard's update. It does accept wh64 opcodes now. I'll see about updating the asm with it for the 8 way unrolled case. I do have a comment about how gcc unrolls loops. It may or may not be useful. In general, when I hand code unrolled loops, what I thought was the standard way to do this is apparently NOT how gcc does it. The general form of unrolls I use in C: for(i=0; i < n-unroll+1; i+=unroll) { a[i]=b[i]; . . . a[i+unroll-1]=b[i+unroll-1]; } nleft=n%unroll; if(nleft > 0) for(i=n-nleft; i < n; i++) a[i]=b[i]; It seems gcc inserts compares inside the main loop to see when to leave it after each piece of the unroll which seems like a waste of energy to me. Isn't the above form more efficient cpu-wise?? Seems so since it doesn't waste any cycles checking when to quit in the loop you really care about. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 5:12 ` Wes Bauske @ 1999-03-22 5:51 ` Wes Bauske 1999-03-22 8:41 ` Wes Bauske 1999-03-22 9:22 ` loop unrolling [Re: XP1000 and Linux] Richard Henderson 1 sibling, 1 reply; 20+ messages in thread From: Wes Bauske @ 1999-03-22 5:51 UTC (permalink / raw) To: axp-list Wes Bauske wrote: > > > I patched my gas with Richard's update. It does > accept wh64 opcodes now. I'll see about updating > the asm with it for the 8 way unrolled case. I > do have a comment about how gcc unrolls loops. > It may or may not be useful. In general, when I > hand code unrolled loops, what I thought was the > standard way to do this is apparently NOT how gcc > does it. The general form of unrolls I use in C: > > for(i=0; i < n-unroll+1; i+=unroll) { > a[i]=b[i]; > . > . > . > a[i+unroll-1]=b[i+unroll-1]; > } > > nleft=n%unroll; > if(nleft > 0) > for(i=n-nleft; i < n; i++) a[i]=b[i]; > > It seems gcc inserts compares inside the main loop > to see when to leave it after each piece of the unroll > which seems like a waste of energy to me. > > Isn't the above form more efficient cpu-wise?? > Seems so since it doesn't waste any cycles checking > when to quit in the loop you really care about. > An example of the main loop difference with the above technique vs what gcc generates: gcc: $L24: ldt $f1,0($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,0($3) beq $1,$L22 ldt $f1,8($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,8($3) beq $1,$L22 ldt $f1,16($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,16($3) beq $1,$L22 ldt $f1,24($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,24($3) beq $1,$L22 ldt $f1,32($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,32($3) beq $1,$L22 ldt $f1,40($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,40($3) beq $1,$L22 ldt $f1,48($2) addl $9,1,$9 cmple $9,$4,$1 stt $f1,48($3) beq $1,$L22 ldt $f1,56($2) addq $2,64,$2 addl $9,1,$9 cmple $9,$4,$1 stt $f1,56($3) addq $3,64,$3 bne $1,$L24 My example method: (assume for the example, that the value in $4 is a multiple of 8) $L24: wh64 ($3) ldt $f1,0($2) ldt $f2,8($2) ldt $f3,16($2) ldt $f4,24($2) ldt $f5,32($2) ldt $f6,40($2) ldt $f7,48($2) ldt $f8,56($2) stt $f1,0($3) stt $f2,8($3) stt $f3,16($3) stt $f4,24($3) stt $f5,32($3) stt $f6,40($3) stt $f7,48($3) addq $2,64,$2 addl $9,8,$9 cmple $9,$4,$1 stt $f8,56($3) addq $3,64,$3 bne $1,$L24 Bottom opcodes may have better order. It's basically the bottom of the gcc code. Also, depending on memory latency, you can start the stt's before you get all the ldt's done, assuming you can do both an stt and an ldt in the same cycle. Seems that should perform quite a bit better than the gcc loop. Can gcc be setup to do this?? If you seriously want to use wh64, you need to do a pre-process loop to handle the non-64 byte boundary at the front, and a post-process loop to handle the end. Just some thoughts. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 5:51 ` Wes Bauske @ 1999-03-22 8:41 ` Wes Bauske 1999-03-22 14:38 ` Greg Lindahl 0 siblings, 1 reply; 20+ messages in thread From: Wes Bauske @ 1999-03-22 8:41 UTC (permalink / raw) To: axp-list Wes Bauske wrote: > > Wes Bauske wrote: > > > > > > I patched my gas with Richard's update. It does > > accept wh64 opcodes now. I'll see about updating > > the asm with it for the 8 way unrolled case. I > > do have a comment about how gcc unrolls loops. > > It may or may not be useful. In general, when I > > hand code unrolled loops, what I thought was the > > standard way to do this is apparently NOT how gcc > > does it. The general form of unrolls I use in C: > > > > for(i=0; i < n-unroll+1; i+=unroll) { > > a[i]=b[i]; > > . > > . > > . > > a[i+unroll-1]=b[i+unroll-1]; > > } > > > > nleft=n%unroll; > > if(nleft > 0) > > for(i=n-nleft; i < n; i++) a[i]=b[i]; > > > > It seems gcc inserts compares inside the main loop > > to see when to leave it after each piece of the unroll > > which seems like a waste of energy to me. > > > > Isn't the above form more efficient cpu-wise?? > > Seems so since it doesn't waste any cycles checking > > when to quit in the loop you really care about. > > > > An example of the main loop difference with the above > technique vs what gcc generates: > > gcc: > > $L24: > ldt $f1,0($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,0($3) > beq $1,$L22 > ldt $f1,8($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,8($3) > beq $1,$L22 > ldt $f1,16($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,16($3) > beq $1,$L22 > ldt $f1,24($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,24($3) > beq $1,$L22 > ldt $f1,32($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,32($3) > beq $1,$L22 > ldt $f1,40($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,40($3) > beq $1,$L22 > ldt $f1,48($2) > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,48($3) > beq $1,$L22 > ldt $f1,56($2) > addq $2,64,$2 > addl $9,1,$9 > cmple $9,$4,$1 > stt $f1,56($3) > addq $3,64,$3 > bne $1,$L24 > > My example method: > (assume for the example, that the value in $4 is a multiple of 8) > > $L24: > wh64 ($3) > ldt $f1,0($2) > ldt $f2,8($2) > ldt $f3,16($2) > ldt $f4,24($2) > ldt $f5,32($2) > ldt $f6,40($2) > ldt $f7,48($2) > ldt $f8,56($2) > stt $f1,0($3) > stt $f2,8($3) > stt $f3,16($3) > stt $f4,24($3) > stt $f5,32($3) > stt $f6,40($3) > stt $f7,48($3) > addq $2,64,$2 > addl $9,8,$9 > cmple $9,$4,$1 > stt $f8,56($3) > addq $3,64,$3 > bne $1,$L24 > > Bottom opcodes may have better order. It's basically the > bottom of the gcc code. Also, depending on memory latency, > you can start the stt's before you get all the ldt's > done, assuming you can do both an stt and an ldt in the > same cycle. > > Seems that should perform quite a bit better than the > gcc loop. Can gcc be setup to do this?? > > If you seriously want to use wh64, you need to do a > pre-process loop to handle the non-64 byte boundary > at the front, and a post-process loop to handle the > end. > > Just some thoughts. > > Wes Tom sent me the asm from DUNIX cc. There was very little cleanup code on the end of the loops. Perhaps the compiler knew the loop variable was divisible by four, which is the unroll amount since it was hard coded. Looks like it uses conditionals to decide when to do wh64. Also, the instruction count is similar to the suggested loop style above if you exclude the wh64 stuff. copy vector: L$31: ldl r31, 256(r2) ldt f1, (r2) lda r6, 159(r3) lda r8, -64(sp) ldt f10, 8(r2) ldt f11, 16(r2) cmplt r6, r10, r7 addl j, 4, j # r1, 4, r1 ldt f12, 24(r2) cmoveq r7, r8, r6 cmplt j, r11, r16 # r1, r11, r16 lda r2, 32(r2) lda r3, 32(r3) wh64 (r6) stt f1, -32(r3) unop stt f10, -24(r3) stt f11, -16(r3) unop unop stt f12, -8(r3) bne r16, L$31 vector times scalar: L$33: ldt f1, (r2) ldl r31, 256(r2) lda r7, 159(r3) lda r16, -64(sp) ldt f10, 8(r2) ldt f11, 16(r2) cmplt r7, r4, r8 addl j, 4, j # r1, 4, r1 ldt f12, 24(r2) cmoveq r8, r16, r7 cmplt j, r11, r17 # r1, r11, r17 lda r2, 32(r2) lda r3, 32(r3) mult f1, scalar, f1 # f1, f2, f1 wh64 (r7) mult f10, scalar, f10 # f10, f2, f10 mult f11, scalar, f11 # f11, f2, f11 mult f12, scalar, f12 # f12, f2, f12 stt f1, -32(r3) stt f10, -24(r3) stt f11, -16(r3) stt f12, -8(r3) bne r17, L$33 Vector + Vector: L$35: ldl r31, 256(r2) ldt f1, (r2) lda r8, 159(r4) lda r17, -64(sp) ldt f11, 8(r2) ldt f13, 16(r2) cmplt r8, r10, r16 addl j, 4, j # r1, 4, r1 ldt f10, (r3) ldt f12, 8(r3) cmoveq r16, r17, r8 cmplt j, r11, r18 # r1, r11, r18 ldt f14, 16(r3) ldt f15, 24(r2) lda r2, 32(r2) lda r3, 32(r3) ldt f16, -8(r3) ldl r31, 224(r3) lda r4, 32(r4) wh64 (r8) addt f1, f10, f1 addt f11, f12, f11 addt f13, f14, f13 addt f15, f16, f15 stt f1, -32(r4) stt f11, -24(r4) stt f13, -16(r4) unop stt f15, -8(r4) bne r18, L$35 Vector+scaled vector: L$37: ldt f1, (r3) ldl r31, 256(r3) lda r16, 159(r4) lda r18, -64(sp) ldt f10, 8(r3) ldt f11, 16(r3) cmplt r16, r5, r17 addl j, 4, j # r1, 4, r1 ldt f12, 24(r3) ldt f13, (r2) cmoveq r17, r18, r16 cmplt j, r11, r19 # r1, r11, r19 ldl r31, 256(r2) ldt f14, 8(r2) lda r2, 32(r2) lda r3, 32(r3) mult f1, scalar, f1 # f1, f2, f1 ldt f15, -16(r2) ldt f16, -8(r2) lda r4, 32(r4) mult f10, scalar, f10 # f10, f2, f10 wh64 (r16) mult f11, scalar, f11 # f11, f2, f11 mult f12, scalar, f12 # f12, f2, f12 addt f13, f1, f1 addt f14, f10, f10 addt f15, f11, f11 addt f16, f12, f12 stt f1, -32(r4) stt f10, -24(r4) stt f11, -16(r4) unop stt f12, -8(r4) bne r19, L$37 Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 8:41 ` Wes Bauske @ 1999-03-22 14:38 ` Greg Lindahl 1999-03-22 17:03 ` Wes Bauske 0 siblings, 1 reply; 20+ messages in thread From: Greg Lindahl @ 1999-03-22 14:38 UTC (permalink / raw) To: axp-list > Looks like it uses conditionals to decide when to do wh64. It has to. You don't know the alignment of the variables at the start of the loop, so you'd have to test and have a leader and trailer instead of just a trailer. But if you were writing multiple variables, undoubtedly they'd have different alignment. So the easiest trick is to use 1 conditional for each wh64. I don't know if the 21264's branch prediction is good enough to avoid a bubble for a branch which is taken 1/8 of the time, but avoiding extra main memory traffic is a huge win. We could easily figure out a bit of code that has an if() and one asm() statement that allows us to do this by hand in egcs-compiled codes. In order for egcs to generate this automatically, it would have to know that the loop was big enough to make it worthwhile, and also that the array in question was not read-before-written in the loop. -- g ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: XP1000 and Linux 1999-03-22 14:38 ` Greg Lindahl @ 1999-03-22 17:03 ` Wes Bauske 1999-03-22 19:11 ` Keystroke loggers Aaron 0 siblings, 1 reply; 20+ messages in thread From: Wes Bauske @ 1999-03-22 17:03 UTC (permalink / raw) To: axp-list Greg Lindahl wrote: > > > Looks like it uses conditionals to decide when to do wh64. > > It has to. You don't know the alignment of the variables at the start > of the loop, so you'd have to test and have a leader and trailer > instead of just a trailer. But if you were writing multiple variables, > undoubtedly they'd have different alignment. So the easiest trick is > to use 1 conditional for each wh64. I don't know if the 21264's branch > prediction is good enough to avoid a bubble for a branch which is > taken 1/8 of the time, but avoiding extra main memory traffic is a > huge win. > One would assume so if their compiler uses that style of code. > We could easily figure out a bit of code that has an if() and one > asm() statement that allows us to do this by hand in egcs-compiled > codes. In order for egcs to generate this automatically, it would have > to know that the loop was big enough to make it worthwhile, and also > that the array in question was not read-before-written in the loop. > Figuring out whether the data is read should be easier for simple cases. The harder cases require the compiler to runtime check for array overlap to decide when to use the wh64 opcode. So, then it starts to become clear why they chose the method they did. Their style would allow use of wh64 on any non-overlapped sections of the array. Need to see about cvs access to the latest egcs for the unroll loop stuff Richard mentioned. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Keystroke loggers 1999-03-22 17:03 ` Wes Bauske @ 1999-03-22 19:11 ` Aaron 0 siblings, 0 replies; 20+ messages in thread From: Aaron @ 1999-03-22 19:11 UTC (permalink / raw) To: axp-list I may be forced to record a users keystrokes. The usualy way I would do it is with a sniffer, but with the user using SSH this isn't an option. (or not an easy one) I recall there used to be a program I used years ago call TTYlistn. Anyone know what happened to it?? It did compile on my alpha or does anyone know of some other solution?? \--------------------------------------------------------------------------/ \ Aaron Gee AKA Spdracer / \"Maseratis are more than cars, they are a passion that is understood / \by some, but enjoyed by a very few" / \URL---> http://www.italian-cars.com / \e-mail--> spdracer@america.com Fax-->1 (904) 253 1006 / \--------------------------------------------------------------/ \ | / \_|_/ (---) 0 ^ permalink raw reply [flat|nested] 20+ messages in thread
* loop unrolling [Re: XP1000 and Linux] 1999-03-22 5:12 ` Wes Bauske 1999-03-22 5:51 ` Wes Bauske @ 1999-03-22 9:22 ` Richard Henderson 1999-03-22 17:14 ` Wes Bauske 1 sibling, 1 reply; 20+ messages in thread From: Richard Henderson @ 1999-03-22 9:22 UTC (permalink / raw) To: axp-list On Sun, Mar 21, 1999 at 11:12:49PM -0600, Wes Bauske wrote: > I do have a comment about how gcc unrolls loops.... If you had to force unrolling with -funroll-all-loops, it means gcc got confused about the loop latch. Which entirely explains any losage you see in the unrolling. There have been some bug fixes related to latch detection recently -- some of them stupid. If you're not currently using egcs cvs, give it a shot and see if it does better. r~ ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: loop unrolling [Re: XP1000 and Linux] 1999-03-22 9:22 ` loop unrolling [Re: XP1000 and Linux] Richard Henderson @ 1999-03-22 17:14 ` Wes Bauske 1999-03-23 2:43 ` Richard Henderson 1999-03-24 5:05 ` Wes Bauske 0 siblings, 2 replies; 20+ messages in thread From: Wes Bauske @ 1999-03-22 17:14 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > On Sun, Mar 21, 1999 at 11:12:49PM -0600, Wes Bauske wrote: > > I do have a comment about how gcc unrolls loops.... > > If you had to force unrolling with -funroll-all-loops, > it means gcc got confused about the loop latch. Which > entirely explains any losage you see in the unrolling. > > There have been some bug fixes related to latch detection > recently -- some of them stupid. If you're not currently > using egcs cvs, give it a shot and see if it does better. > Actually, I'd like to get egcs1.1.2 to just build on the XP1000. I'm seeing a timing dependent bug in the build process that can lock the system up. Basically, I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and outright lockups. The lock ups occur during a "rm -f" of the distclean target, but only if I'm running the X server. It could be a HW bug but then why does DUNIX/TRU64 work correctly? So, that leaves some sort of hole in Linux somewhere where an assumption was made about timing/ being preempted during some critical access that the XP1000 manages to slip into. The hang is pretty much repeatable so if anyone has some idea what to do to find the problem, like adding printk's or whatever, let me know and I can cause it at will. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: loop unrolling [Re: XP1000 and Linux] 1999-03-22 17:14 ` Wes Bauske @ 1999-03-23 2:43 ` Richard Henderson 1999-03-23 4:57 ` Wes Bauske 1999-03-23 8:56 ` loop unrolling [Re: XP1000 and Linux] Harvey J. Stein 1999-03-24 5:05 ` Wes Bauske 1 sibling, 2 replies; 20+ messages in thread From: Richard Henderson @ 1999-03-23 2:43 UTC (permalink / raw) To: axp-list On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > Actually, I'd like to get egcs1.1.2 to just build on > the XP1000. I'm seeing a timing dependent bug in the > build process that can lock the system up. Basically, > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > outright lockups. Jay mentioned (and I loosely concur) the possibility of TLB muckups on EV6. One way to test this is to build a generic kernel and in arch/alpha/kernel/machvec.h modify #define DO_EV6_MMU \ max_asn: EV6_MAX_ASN, \ mmu_context_mask: 0xfffffffffful, \ - mv_get_mmu_context: ev5_get_mmu_context, \ - mv_flush_tlb_current: ev5_flush_tlb_current, \ - mv_flush_tlb_other: ev5_flush_tlb_other, \ - mv_flush_tlb_current_page: ev5_flush_tlb_current_page + mv_get_mmu_context: ev4_get_mmu_context, \ + mv_flush_tlb_current: ev4_flush_tlb_current, \ + mv_flush_tlb_other: ev4_flush_tlb_other, \ + mv_flush_tlb_current_page: ev4_flush_tlb_current_page Worth a shot anyway... r~ ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: loop unrolling [Re: XP1000 and Linux] 1999-03-23 2:43 ` Richard Henderson @ 1999-03-23 4:57 ` Wes Bauske 1999-03-22 11:58 ` Newbie Needs Milo Help SteveCraft 1999-03-23 7:05 ` ev6 tlb consistency Richard Henderson 1999-03-23 8:56 ` loop unrolling [Re: XP1000 and Linux] Harvey J. Stein 1 sibling, 2 replies; 20+ messages in thread From: Wes Bauske @ 1999-03-23 4:57 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > > Actually, I'd like to get egcs1.1.2 to just build on > > the XP1000. I'm seeing a timing dependent bug in the > > build process that can lock the system up. Basically, > > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > > outright lockups. > > Jay mentioned (and I loosely concur) the possibility of > TLB muckups on EV6. One way to test this is to build a > generic kernel and in arch/alpha/kernel/machvec.h modify > > #define DO_EV6_MMU \ > max_asn: EV6_MAX_ASN, \ > mmu_context_mask: 0xfffffffffful, \ > - mv_get_mmu_context: ev5_get_mmu_context, \ > - mv_flush_tlb_current: ev5_flush_tlb_current, \ > - mv_flush_tlb_other: ev5_flush_tlb_other, \ > - mv_flush_tlb_current_page: ev5_flush_tlb_current_page > + mv_get_mmu_context: ev4_get_mmu_context, \ > + mv_flush_tlb_current: ev4_flush_tlb_current, \ > + mv_flush_tlb_other: ev4_flush_tlb_other, \ > + mv_flush_tlb_current_page: ev4_flush_tlb_current_page > > Worth a shot anyway... > Good shot. I successfully built egcs1.1.2 with this patch to 2.2.3. I'll do some more tests to see if it continues to behave. Does that tell you what might be going wrong?? Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Newbie Needs Milo Help 1999-03-23 4:57 ` Wes Bauske @ 1999-03-22 11:58 ` SteveCraft 1999-03-23 18:39 ` Ron Farrer 1999-03-23 7:05 ` ev6 tlb consistency Richard Henderson 1 sibling, 1 reply; 20+ messages in thread From: SteveCraft @ 1999-03-22 11:58 UTC (permalink / raw) To: axp-list I am almost there, I think. Here's my setup. I have a 10mb FAT partition and a 1gb NTFS partition, I have NT4 installed. On the Linux side, I have a /, /usr, /tmp, and swap with RH5.2 installed. Currently, to get Linux to start I have to use floppies. I grabbed linload.exe and and the udb-noname.z file from the /images directory from a distro FTP site. I put them both on the 10mb FAT partition and then uncompressed udb-noname.z and renamed it milo. I then set my firmware to boot Linux with linload.exe and milo. Here's what the Multia says now: Linux Loader 1.5 ...copyright... System Partition is OSLOADPARTITION=scsi(0)disk(0)rdisk(0)partition(1) Load File is OSLOADFILENAME=\milo Load Path is scsi(0)disk(0)rdisk(0)partition(1)\milo OSLOADOPTIONS= Opening the file scsi(0)disk(0)rdisk(0)partition(1)\milo ... Loading file at 0x00000000 ... Getting firmware parameters ... ... Memory size is 0x40000000 bytes Setting up arguments for Milo at 0x801FFC00 Setting up memory size for Milo at 0x801FFE00 Setting up memory size for Milo at 0x801FFF00 Swapping to PALcode at 0x0 ... NT firmware monitor Press H for help Q to quit ** Opcode reserved to DEC occurred PC = 0x0000000000000009, VA = 0xffffffff80797de8 > WHat error conditition does this indicate? What else do I need to get Linux to boot automatically? "If it's not elite, Kid - Steve Craft I don't want it" scraft@nothinbut.net -- Me www.nothinbut.net/~scraft ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie Needs Milo Help 1999-03-22 11:58 ` Newbie Needs Milo Help SteveCraft @ 1999-03-23 18:39 ` Ron Farrer 0 siblings, 0 replies; 20+ messages in thread From: Ron Farrer @ 1999-03-23 18:39 UTC (permalink / raw) To: SteveCraft; +Cc: axp-list Take your "milo" floppy (the one with milo and linload.exe) stick it in your floppy drive and from Linux do a 'dd if=/dev/fd0 of=/dev/sda1 bs=1440k' (this assumes fd0 is your floppy drive and sda1 is your FAT parition, otherwise change as necessary). That should do it. But just in case you might want to do a backup, ya never know... ;-) HTH, Ron Farrer -- Universal Computer Technologies -- An Alpha - only OEM! Mail: uct@fidalgo.net Web: http://www.fidalgo.net/~uct/ Check out our March specials, they end soon! On Mon, 22 Mar 1999, SteveCraft wrote: > I am almost there, I think. Here's my setup. I have a 10mb FAT partition > and a 1gb NTFS partition, I have NT4 installed. On the Linux side, I have a > /, /usr, /tmp, and swap with RH5.2 installed. Currently, to get Linux to > start I have to use floppies. > > I grabbed linload.exe and and the udb-noname.z file from the /images > directory from a distro FTP site. I put them both on the 10mb FAT partition > and then uncompressed udb-noname.z and renamed it milo. > > I then set my firmware to boot Linux with linload.exe and milo. Here's what > the Multia says now: > > Linux Loader 1.5 > ...copyright... > System Partition is OSLOADPARTITION=scsi(0)disk(0)rdisk(0)partition(1) > Load File is OSLOADFILENAME=\milo > Load Path is scsi(0)disk(0)rdisk(0)partition(1)\milo > OSLOADOPTIONS= > > Opening the file scsi(0)disk(0)rdisk(0)partition(1)\milo ... > Loading file at 0x00000000 ... > > Getting firmware parameters ... > > ... Memory size is 0x40000000 bytes > > Setting up arguments for Milo at 0x801FFC00 > > Setting up memory size for Milo at 0x801FFE00 > > Setting up memory size for Milo at 0x801FFF00 > > Swapping to PALcode at 0x0 ... > > NT firmware monitor > Press H for help Q to quit > ** Opcode reserved to DEC occurred > PC = 0x0000000000000009, VA = 0xffffffff80797de8 > > > > WHat error conditition does this indicate? What else do I need to get Linux > to boot automatically? > > > "If it's not elite, Kid - Steve Craft > I don't want it" scraft@nothinbut.net > -- Me www.nothinbut.net/~scraft > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > > ^ permalink raw reply [flat|nested] 20+ messages in thread
* ev6 tlb consistency 1999-03-23 4:57 ` Wes Bauske 1999-03-22 11:58 ` Newbie Needs Milo Help SteveCraft @ 1999-03-23 7:05 ` Richard Henderson 1999-03-23 18:22 ` Wes Bauske 1 sibling, 1 reply; 20+ messages in thread From: Richard Henderson @ 1999-03-23 7:05 UTC (permalink / raw) To: axp-list; +Cc: jay.estabrook On Mon, Mar 22, 1999 at 10:57:35PM -0600, Wes Bauske wrote: > > On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > > > Actually, I'd like to get egcs1.1.2 to just build on > > > the XP1000. I'm seeing a timing dependent bug in the > > > build process that can lock the system up. Basically, > > > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > > > outright lockups. > > > > Jay mentioned (and I loosely concur) the possibility of > > TLB muckups on EV6. One way to test this is to build a > > generic kernel and in arch/alpha/kernel/machvec.h modify > > > > #define DO_EV6_MMU \ > > max_asn: EV6_MAX_ASN, \ > > mmu_context_mask: 0xfffffffffful, \ > > - mv_get_mmu_context: ev5_get_mmu_context, \ > > - mv_flush_tlb_current: ev5_flush_tlb_current, \ > > - mv_flush_tlb_other: ev5_flush_tlb_other, \ > > - mv_flush_tlb_current_page: ev5_flush_tlb_current_page > > + mv_get_mmu_context: ev4_get_mmu_context, \ > > + mv_flush_tlb_current: ev4_flush_tlb_current, \ > > + mv_flush_tlb_other: ev4_flush_tlb_other, \ > > + mv_flush_tlb_current_page: ev4_flush_tlb_current_page > > > > Worth a shot anyway... > > > > Good shot. I successfully built egcs1.1.2 with this > patch to 2.2.3. I'll do some more tests to see if it > continues to behave. > > Does that tell you what might be going wrong?? It means that there are invalid TLB entries live when things go south. EV4 has an architecture conformance bug that makes ASNs useless so we are forced to flush the whole TLB when context switching. EV5 gets ASNs correct, so that isn't necessary. Moreover, when we change a process' vm mappings, we can just make the process use a new ASN, which cuts the number of flushes we must do by 128. EV6... I dunno. My HRM appears to be oh so usefully back at the office. r~ PS: One other thing you could try is to go back to using the ev5 tlb flush routines, but only use EV5_MAX_ASN. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: ev6 tlb consistency 1999-03-23 7:05 ` ev6 tlb consistency Richard Henderson @ 1999-03-23 18:22 ` Wes Bauske 1999-03-23 19:38 ` Jay.Estabrook 0 siblings, 1 reply; 20+ messages in thread From: Wes Bauske @ 1999-03-23 18:22 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > On Mon, Mar 22, 1999 at 10:57:35PM -0600, Wes Bauske wrote: > > > On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > > > > Actually, I'd like to get egcs1.1.2 to just build on > > > > the XP1000. I'm seeing a timing dependent bug in the > > > > build process that can lock the system up. Basically, > > > > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > > > > outright lockups. > > > > > > Jay mentioned (and I loosely concur) the possibility of > > > TLB muckups on EV6. One way to test this is to build a > > > generic kernel and in arch/alpha/kernel/machvec.h modify > > > > > > #define DO_EV6_MMU \ > > > max_asn: EV6_MAX_ASN, \ > > > mmu_context_mask: 0xfffffffffful, \ > > > - mv_get_mmu_context: ev5_get_mmu_context, \ > > > - mv_flush_tlb_current: ev5_flush_tlb_current, \ > > > - mv_flush_tlb_other: ev5_flush_tlb_other, \ > > > - mv_flush_tlb_current_page: ev5_flush_tlb_current_page > > > + mv_get_mmu_context: ev4_get_mmu_context, \ > > > + mv_flush_tlb_current: ev4_flush_tlb_current, \ > > > + mv_flush_tlb_other: ev4_flush_tlb_other, \ > > > + mv_flush_tlb_current_page: ev4_flush_tlb_current_page > > > > > > Worth a shot anyway... > > > > > > > Good shot. I successfully built egcs1.1.2 with this > > patch to 2.2.3. I'll do some more tests to see if it > > continues to behave. > > > > Does that tell you what might be going wrong?? > > It means that there are invalid TLB entries live when things go south. > > EV4 has an architecture conformance bug that makes ASNs useless > so we are forced to flush the whole TLB when context switching. > > EV5 gets ASNs correct, so that isn't necessary. Moreover, when we > change a process' vm mappings, we can just make the process use a > new ASN, which cuts the number of flushes we must do by 128. > > EV6... I dunno. My HRM appears to be oh so usefully back at the office. > > r~ > > PS: One other thing you could try is to go back to using the ev5 tlb > flush routines, but only use EV5_MAX_ASN. > I switched to EV5_MAX_ASN and that also allows me to build egcs1.1.2. So, I guess the ASN's are good but just how many there are is wrong.... Thanks, Richard. If you have any other things to try, let me know. Also, I'm looking for a XP1000 reference manual so I can check if there are any jumpers to allow 8 way interleave so if I added more memory things might move along faster. Worth a look to see anyway. I ran my test suite and stream last night with egcs1.1.2. No real changes but I haven't tried the cvs version of egcs yet. I was able to get my DSP correlation routine to do 830MFLOP's, with increased unrolling, by hand. My fastest previous run on PPC630 was 770MFLOPS. In terms of efficiency, the PPC630 is better but not raw performance wise. Hopefully the unroll code will help the other parts of the test. Then it's on to how to get wh64 to work. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: ev6 tlb consistency 1999-03-23 18:22 ` Wes Bauske @ 1999-03-23 19:38 ` Jay.Estabrook 0 siblings, 0 replies; 20+ messages in thread From: Jay.Estabrook @ 1999-03-23 19:38 UTC (permalink / raw) To: axp-list; +Cc: rth, Wes Bauske >>> "Wes Bauske" said: > > I switched to EV5_MAX_ASN and that also allows me to > build egcs1.1.2. So, I guess the ASN's are good but > just how many there are is wrong.... Correct, and here's a patch to the pristine include/asm-alpha/mmu_context.h that ought to do the Right Thing (tm) on any Alpha processor (so far :-)... diff -u mmu_context.h~ mmu_context.h --- mmu_context.h~ Tue Mar 23 13:25:31 1999 +++ mmu_context.h Tue Mar 23 13:50:40 1999 @@ -14,10 +14,10 @@ /* * The maximum ASN's the processor supports. On the EV4 this is 63 * but the PAL-code doesn't actually use this information. On the - * EV5 this is 127. + * EV5 this is 127, and EV6 has 255. * * On the EV4, the ASNs are more-or-less useless anyway, as they are - * only used as an icache tag, not for TB entries. On the EV5 ASN's + * only used as an icache tag, not for TB entries. On the EV5 and EV6, ASN's * also validate the TB entries, and thus make a lot more sense. * * The EV4 ASN's don't even match the architecture manual, ugh. And @@ -73,7 +73,7 @@ extern unsigned long asn_cache; #endif /* __SMP__ */ -#define WIDTH_HARDWARE_ASN 7 +#define WIDTH_HARDWARE_ASN 8 #define ASN_FIRST_VERSION (1UL << (WIDTH_THIS_PROCESSOR + WIDTH_HARDWARE_ASN)) #define HARDWARE_ASN_MASK ((1UL << WIDTH_HARDWARE_ASN) - 1) Thanks to Richard and Wes for narrowing in on the problem... :-) --Jay++ ----------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Motherboards - LINUX Project Compaq Computer Corp. (508) 841-3241 or (DTN) 237-3241 334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com ----------------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: loop unrolling [Re: XP1000 and Linux] 1999-03-23 2:43 ` Richard Henderson 1999-03-23 4:57 ` Wes Bauske @ 1999-03-23 8:56 ` Harvey J. Stein 1 sibling, 0 replies; 20+ messages in thread From: Harvey J. Stein @ 1999-03-23 8:56 UTC (permalink / raw) To: axp-list; +Cc: hjstein, abel Richard Henderson <rth@twiddle.net> writes: > On Mon, Mar 22, 1999 at 11:14:44AM -0600, Wes Bauske wrote: > > Actually, I'd like to get egcs1.1.2 to just build on > > the XP1000. I'm seeing a timing dependent bug in the > > build process that can lock the system up. Basically, > > I get "unable to dup fd xxxxxxxx to fd 0", SEGV's, and > > outright lockups. > > Jay mentioned (and I loosely concur) the possibility of > TLB muckups on EV6. One way to test this is to build a > generic kernel and in arch/alpha/kernel/machvec.h modify > > #define DO_EV6_MMU \ > max_asn: EV6_MAX_ASN, \ > mmu_context_mask: 0xfffffffffful, \ > - mv_get_mmu_context: ev5_get_mmu_context, \ > - mv_flush_tlb_current: ev5_flush_tlb_current, \ > - mv_flush_tlb_other: ev5_flush_tlb_other, \ > - mv_flush_tlb_current_page: ev5_flush_tlb_current_page > + mv_get_mmu_context: ev4_get_mmu_context, \ > + mv_flush_tlb_current: ev4_flush_tlb_current, \ > + mv_flush_tlb_other: ev4_flush_tlb_other, \ > + mv_flush_tlb_current_page: ev4_flush_tlb_current_page There certainly seem to be TLB strangeness on dual processor systems with 21264s. I'm seeing the following in the logs: Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 0 from fffffc0000330940 but lock freed on 0 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 1 from fffffc0000330758 but lock freed on 1 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 1 from fffffc0000330940 but lock freed on 1 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 0 from fffffc0000330758 but lock freed on 0 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 1 from fffffc0000330758 but lock freed on 1 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 0 from fffffc0000330758 but lock freed on 0 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 1 from fffffc0000330758 but lock freed on 1 Mar 22 08:41:48 dp264 kernel: flush_tlb_page: called on 0 from fffffc0000330758 but lock freed on 0 This is with kernel 2.2.1, RH5.2, etc. Here's /proc/cpuinfo, but we're currently running it as a single processor machine with a non-SMP kernel: [root@dp264 log]# cat /proc/cpuinfo cpu : Alpha cpu model : EV6 cpu variation : 7 cpu revision : 0 cpu serial number : system type : Tsunami system variation : DP264 system revision : 0 system serial number : cycle frequency [Hz] : 500000000 timer frequency [Hz] : 1024.00 page size [bytes] : 8192 phys. address bits : 44 max. addr. space # : 255 BogoMIPS : 996.14 kernel unaligned acc : 0 (pc=0,va=0) user unaligned acc : 8 (pc=2000011f670,va=11ff4e2f4) platform string : AlphaPC 264DP 500 MHz -- Harvey J. Stein BFM Financial Research hjstein@bfr.co.il ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: loop unrolling [Re: XP1000 and Linux] 1999-03-22 17:14 ` Wes Bauske 1999-03-23 2:43 ` Richard Henderson @ 1999-03-24 5:05 ` Wes Bauske 1 sibling, 0 replies; 20+ messages in thread From: Wes Bauske @ 1999-03-24 5:05 UTC (permalink / raw) To: axp-list Wes Bauske wrote: > > Richard Henderson wrote: > > > > On Sun, Mar 21, 1999 at 11:12:49PM -0600, Wes Bauske wrote: > > > I do have a comment about how gcc unrolls loops.... > > > > If you had to force unrolling with -funroll-all-loops, > > it means gcc got confused about the loop latch. Which > > entirely explains any losage you see in the unrolling. > > > > There have been some bug fixes related to latch detection > > recently -- some of them stupid. If you're not currently > > using egcs cvs, give it a shot and see if it does better. > > > Now that I have egcs1.1.2 building correctly, I'm back looking at stream_d and loop unrolling issues. I grabbed the 'egcs' tree from anonymous cvs and built it. When I try to do -funroll-loops, it still does nothing to the streams C code. So, the current cvs code, as of this afternoon, still doesn't recognize the stream_d loops as needing to be unrolled. If you use -funroll-all-loops, the code looks the same as egcs1.1.2. Wes ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~1999-03-24 5:21 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1999-03-22 0:21 XP1000 and Linux Stig Telfer 1999-03-22 0:55 ` Greg Lindahl 1999-03-22 2:10 ` Richard Henderson 1999-03-22 5:12 ` Wes Bauske 1999-03-22 5:51 ` Wes Bauske 1999-03-22 8:41 ` Wes Bauske 1999-03-22 14:38 ` Greg Lindahl 1999-03-22 17:03 ` Wes Bauske 1999-03-22 19:11 ` Keystroke loggers Aaron 1999-03-22 9:22 ` loop unrolling [Re: XP1000 and Linux] Richard Henderson 1999-03-22 17:14 ` Wes Bauske 1999-03-23 2:43 ` Richard Henderson 1999-03-23 4:57 ` Wes Bauske 1999-03-22 11:58 ` Newbie Needs Milo Help SteveCraft 1999-03-23 18:39 ` Ron Farrer 1999-03-23 7:05 ` ev6 tlb consistency Richard Henderson 1999-03-23 18:22 ` Wes Bauske 1999-03-23 19:38 ` Jay.Estabrook 1999-03-23 8:56 ` loop unrolling [Re: XP1000 and Linux] Harvey J. Stein 1999-03-24 5:05 ` Wes Bauske
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox