From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b1738035b01d4980 X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,1720d3e3693bee24 X-Google-Attributes: gid102b75,public From: billm@cygnus.com (Bill Moyer) Subject: Re: address spaces Date: 1997/06/19 Message-ID: <5oco0e$pnb$1@andros.cygnus.com>#1/1 X-Deja-AN: 251234596 References: <5mrt16$eo3@percy.cs.bham.ac.uk> <5o8r6m$ner@ktel.osc.edu> <5o9ehl$8np@cocoa.brown.edu> <33A8FFDE.7EE7D057@amcfac.enet.dec.com> Organization: Cygnus Support, Mountain View, CA Newsgroups: comp.sys.dec,comp.arch In article <33A8FFDE.7EE7D057@amcfac.enet.dec.com> "David P. Rabahy" writes: > >A much much larger sparse hierarchical virtual address space could be >highly useful. I'm thinking along the lines of 256 levels, each level >named by a 256 character (maybe that 16-bit international character set >standard) string, specifying a 64-bit byte address range. With my >scheme, the total number of bits required for the longest virtual >address would be 256*256*16*64 = 67,108,864 bits. Today's 64 bit >virtual address spaces pale in comparison. *nod* .. sounds similar to the "scattertree" structure I've used in software design. (Basically the simulation of a hierarchical virtual address space in software which uses arbitrary-sized addresses.) It's very fast -- lookup in an n-element database is O(lg n) with a hidden constant as low (or lower, on some platforms) as a binary search tree and with a much higher logarithmic base (ie, each compare operation results in a branch to between 16 to 64K child nodes). By making the branching factor at a given level dynamic (growing and shrinking when the address space of that level becomes crowded/sparse) and storing the data at the earliest level at which an address is distinguishable from others, you can avoid wasting space with empty address tables and minimize the depth of the search. I've used this thing to implement a bucketsort which keyed on arbitrary-length ascii strings. :-> Of course sorting n elements isn't O(n) like a "real" bucketsort, but it's still extremely fast. >Naturally, fast translation >to a holed flat physical address space is crucial. This is what TLB's are for.. Hardware engineers can cheat that way. :-) Then again, software engineers can cheat in other ways. I doubt it'd be practical to implement a hierarchical virtual ad- dress space with dynamically-resizing address tables in hardware. Hardware support for an arbitrary address length virtual memory would be very nice to have. -- ttk@cygnus.com --