Why does 64-bit address space equal 2^64 bytes of RAM?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Uri
Posts: 507
Joined: Thu Dec 27, 2007 9:34 pm

Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Uri »

I read on HowStuffWorks that 64-bit RAM address space equals 2^64 bytes of RAM.

http://computer.howstuffworks.com/microprocessor6.htm

Why is that?
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by bob »

Uri wrote:I read on HowStuffWorks that 64-bit RAM address space equals 2^64 bytes of RAM.

http://computer.howstuffworks.com/microprocessor6.htm

Why is that?
If you use a 64 bit address space (no processor today does this yet) then with 64 bits, you have numbers between 0 and 2^64 - 1, which is a total of 2^64 bytes. Not sure exactly what you are looking for here. Today's 64 bit processors are using a 40 bit physical address space, which is only 1 terabyte of ram. :)
Terry McCracken
Posts: 16465
Joined: Wed Aug 01, 2007 4:16 am
Location: Canada

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Terry McCracken »

bob wrote:
Uri wrote:I read on HowStuffWorks that 64-bit RAM address space equals 2^64 bytes of RAM.

http://computer.howstuffworks.com/microprocessor6.htm

Why is that?
If you use a 64 bit address space (no processor today does this yet) then with 64 bits, you have numbers between 0 and 2^64 - 1, which is a total of 2^64 bytes. Not sure exactly what you are looking for here. Today's 64 bit processors are using a 40 bit physical address space, which is only 1 terabyte of ram. :)
Why don't they create 64bit address space?
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Dirt »

Terry McCracken wrote:
bob wrote:Today's 64 bit processors are using a 40 bit physical address space, which is only 1 terabyte of ram. :)
Why don't they create 64bit address space?
It would cost more, and possibly be a little slower. If almost no one wants to use all the address lines then it's a waste.

A quick search with Google suggests that the AMD Phenom supports 48 bits of physical address. I didn't check the Intel chips.
Yar
Posts: 298
Joined: Wed Mar 08, 2006 9:00 pm
Location: Moscow, Russia

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Yar »

Dirt wrote:
Terry McCracken wrote:
bob wrote:Today's 64 bit processors are using a 40 bit physical address space, which is only 1 terabyte of ram. :)
Why don't they create 64bit address space?
It would cost more, and possibly be a little slower. If almost no one wants to use all the address lines then it's a waste.

A quick search with Google suggests that the AMD Phenom supports 48 bits of physical address. I didn't check the Intel chips.
AMD uses 48 bits only for virtual memory. For physical RAM it uses 40 bits and it could be extended up to 52 bits in the future.
Read section 'Architectural features':
http://en.wikipedia.org/wiki/X86-64

With best regards,
Yar
Uri
Posts: 507
Joined: Thu Dec 27, 2007 9:34 pm

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Uri »

bob wrote:If you use a 64 bit address space (no processor today does this yet) then with 64 bits, you have numbers between 0 and 2^64 - 1, which is a total of 2^64 bytes.
But how did you arrive at 2^64 bytes?
Teemu Pudas
Posts: 88
Joined: Wed Mar 25, 2009 12:49 pm

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Teemu Pudas »

Uri wrote:
bob wrote:If you use a 64 bit address space (no processor today does this yet) then with 64 bits, you have numbers between 0 and 2^64 - 1, which is a total of 2^64 bytes.
But how did you arrive at 2^64 bytes?
You quoted the answer to your own question.
Uri
Posts: 507
Joined: Thu Dec 27, 2007 9:34 pm

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Uri »

Teemu Pudas wrote:You quoted the answer to your own question.
What do you mean?
Teemu Pudas
Posts: 88
Joined: Wed Mar 25, 2009 12:49 pm

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Teemu Pudas »

2^64 addresses = 2^64 bytes can be addressed. 64 bits leads to 2^64 addresses.
Uri
Posts: 507
Joined: Thu Dec 27, 2007 9:34 pm

Re: Why does 64-bit address space equal 2^64 bytes of RAM?

Post by Uri »

Teemu Pudas wrote:2^64 addresses = 2^64 bytes can be addressed. 64 bits leads to 2^64 addresses.
But if 1 byte is 8 bits so shouldn't 2^64 bits equal 2.3 x 10^18 bytes?