From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,8397de2475cf4666 X-Google-Attributes: gid111c93,public From: "Martin Sinot" Subject: Re: True 64 bit mode? Date: 2000/02/25 Message-ID: <895o7b$ddi$1@news.telekabel.nl>#1/1 X-Deja-AN: 589816620 References: <88hn7v$h78$1@amdint2.amd.com> <895620$h2f$1@nntp6.atl.mindspring.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: news.telekabel.nl 951477291 13746 212.142.20.102 (25 Feb 2000 11:14:51 GMT) Organization: SPaSE BV X-MSMail-Priority: Normal NNTP-Posting-Date: 25 Feb 2000 11:14:51 GMT Newsgroups: comp.os.linux.alpha Newton Love wrote in message news:895620$h2f$1@nntp6.atl.mindspring.net... > As I said elswewhere: > Quick method: Code s use an integer to keep track of the offset in > a file. A 32 bit system can't address more than 2^32 bytes offset. > In a 64 bit system, it can address 2^64. So, find yourself a great > big drive, and use cat to make a really huge file. Then use a code to > open it, lseek to the end, and tell you what is the final offset. > > I just finished a sort on a 23 GByte file. Took forever, but it worked. You might also try this one: Create a large file (>4Gb). Memorymap the entire file. Then access byte number somewhere beyond 4Gb. This is physically impossible if you have only 32 bits of address space. A 32-bit system could use 64-bit file pointers (although i386 Linux lseek indeed returns a 32-bit value), but cannot map a >4Gb file as a whole. I tried it on a 5 Gb file. It worked. -- Martin Sinot Nijmegen, Netherlands martin@spase.nl