Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "Martin Sinot" <martin@spase.nl>
Subject: Re: True 64 bit mode?
Date: 2000/02/25	[thread overview]
Message-ID: <895o7b$ddi$1@news.telekabel.nl> (raw)
In-Reply-To: 895620$h2f$1@nntp6.atl.mindspring.net


Newton Love <newtlove@mindspring.com> 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





  reply	other threads:[~2000-02-25  5:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-17  5:00 True 64 bit mode? Travis Wheatley
2000-02-18  5:00 ` Tony Hammitt
2000-02-18  5:00 ` Takeyasu Wakabayashi
2000-02-19  5:00 ` Newton Love
     [not found] ` <q7Pr4.3$at3.662@news.uswest.net>
2000-02-20  5:00   ` Michal Jaegermann
2000-02-20  5:00   ` Roger Dooley
2000-02-21  5:00     ` Ron Farrer
2000-02-21  5:00       ` bmeyer
2000-02-22  5:00         ` Stuart R. Fuller
2000-02-22  5:00           ` Robert G. Lail
2000-02-22  5:00             ` Serguei Patchkovskii
2000-02-23  5:00               ` Robert G. Lail
2000-02-22  5:00 ` Thomas W.
2000-02-24  5:00   ` Roger Hill-Cottingham
2000-02-24  5:00     ` Thomas W.
2000-02-25  5:00   ` Newton Love
2000-02-25  5:00     ` Martin Sinot [this message]
2000-03-01  5:00       ` Newton Love
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox